Files
core/PdfReader/PdfReader.pro
2016-06-16 18:48:56 +03:00

283 lines
6.3 KiB
Prolog
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#-------------------------------------------------
#
# Project created by QtCreator 2015-05-15T12:43:02
#
#-------------------------------------------------
QT -= core gui
VERSION = 1.0.0.4
TARGET = PdfReader
TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../build/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
################################################
LIBS_DESTDIR_PATH = $$DESTDIR
# теперь всегда с libstd
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += static_link_libstd
}
static_link_libstd {
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
# DESTDIR_POSTFIX = _static_stdlib
# DESTDIR = $$DESTDIR$$DESTDIR_POSTFIX
message(static_link_libstd)
}
############# dynamic dependencies #############
shared {
DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY
CONFIG += build_all_zlib build_zlib_as_sources
include(../OfficeUtils/OfficeUtils.pri)
CONFIG += build_cximage_zlib_disable
LIB_GRAPHICS_PRI_PATH = ../DesktopEditor
include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
#include(../DesktopEditor/xml/build/qt/libxml2.pri)
message(dynamic)
win32 {
LIBS += -lgdi32 \
-ladvapi32 \
-luser32 \
-lshell32
TARGET_EXT = .dll
}
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
TARGET_EXT = .so
}
mac {
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
} else {
#LIBS += -L$$DESTDIR -llibxml
}
################################################
DEFINES += PDFREADER_LIBRARY \
HTMLRENDERER_USE_DYNAMIC_LIBRARY
LIBS += -L$$DESTDIR -lHtmlRenderer
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT
CONFIG += c++11
message(linux)
}
mac {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
CONFIG += c++11
message(mac)
}
DEFINES += \
_QT \
FT2_BUILD_LIBRARY \
EXCLUDE_JPG_SUPPORT \
MNG_SUPPORT_DISPLAY \
MNG_SUPPORT_READ \
MNG_SUPPORT_WRITE \
MNG_ACCESS_CHUNKS \
MNG_STORE_CHUNKS\
MNG_ERROR_TELLTALE
win32 {
DEFINES += \
JAS_WIN_MSVC_BUILD \
WIN32 \
NOMINMAX
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
message(windows)
}
INCLUDEPATH += \
../DesktopEditor/agg-2.4/include \
../DesktopEditor/freetype-2.5.2/include \
../DesktopEditor/cximage/jasper/include \
../DesktopEditor/cximage/jpeg \
../DesktopEditor/cximage/png \
../DesktopEditor/cximage/zlib
SOURCES += \
Src/Annot.cpp \
Src/Array.cpp \
Src/Catalog.cpp \
Src/CharCodeToUnicode.cpp \
Src/CMap.cpp \
Src/Decrypt.cpp \
Src/Dict.cpp \
Src/ExtractImageOutputDev.cpp \
Src/FontFileBase.cpp \
Src/FontFileTrueType.cpp \
Src/FontFileType1.cpp \
Src/FontFileType1C.cpp \
Src/Function.cpp \
Src/GFont.cpp \
Src/GlobalParams.cpp \
Src/Graphics.cpp \
Src/GState.cpp \
Src/Hash.cpp \
Src/JArithmeticDecoder.cpp \
Src/JBIG2Stream.cpp \
Src/JPXStream.cpp \
Src/Lexer.cpp \
Src/Link.cpp \
Src/List.cpp \
Src/NameToCharCode.cpp \
Src/Object.cpp \
Src/Outline.cpp \
Src/OutputDevice.cpp \
Src/Page.cpp \
Src/Parser.cpp \
Src/PDFDoc.cpp \
Src/PSLexer.cpp \
Src/RendererOutputDev.cpp \
Src/SecurityHandler.cpp \
Src/Stream.cpp \
Src/StringExt.cpp \
Src/UnicodeMap.cpp \
Src/XRef.cpp \
PdfReader.cpp
HEADERS +=\
Resources/Fontd050000l.h \
Resources/Fontn019003l.h \
Resources/Fontn019004l.h \
Resources/Fontn019023l.h \
Resources/Fontn019024l.h \
Resources/Fontn021003l.h \
Resources/Fontn021004l.h \
Resources/Fontn021023l.h \
Resources/Fontn021024l.h \
Resources/Fontn022003l.h \
Resources/Fontn022004l.h \
Resources/Fontn022023l.h \
Resources/Fontn022024l.h \
Resources/Fonts050000l.h \
Src/Annot.h \
Src/Array.h \
Src/BuiltinFont.h \
Src/BuiltinFontTables.h \
Src/Catalog.h \
Src/CCITT-Tables.h \
Src/CharCodeToUnicode.h \
Src/CharTypes.h \
Src/CMap.h \
Src/Constants.h \
Src/Decrypt.h \
Src/Dict.h \
Src/EncodingTables.h \
Src/ErrorConstants.h \
Src/ExtractImageOutputDev.h \
Src/File.h \
Src/FontFileBase.h \
Src/FontFileEncodings.h \
Src/FontFileTrueType.h \
Src/FontFileType1.h \
Src/FontFileType1C.h \
Src/Function.h \
Src/GFont.h \
Src/GlobalParams.h \
Src/Graphics.h \
Src/GState.h \
Src/Hash.h \
Src/JArithmeticDecoder.h \
Src/JBIG2Stream.h \
Src/JPXStream.h \
Src/Lexer.h \
Src/Link.h \
Src/List.h \
Src/MemoryUtils.h \
Src/NameToCharCode.h \
Src/NameToUnicodeTable.h \
Src/Object.h \
Src/Outline.h \
Src/OutputDevice.h \
Src/Page.h \
Src/Parser.h \
Src/PDFDoc.h \
Src/PDFDocEncoding.h \
Src/PSLexer.h \
Src/RendererOutputDev.h \
Src/SecurityHandler.h \
Src/Stream.h \
Src/StringExt.h \
Src/UnicodeMap.h \
Src/UnicodeMapTables.h \
Src/UTF8.h \
Src/XmlUtils.h \
Src/XRef.h \
PdfReader.h
unix {
target.path = /usr/lib
INSTALLS += target
}