Commit 5c6de53d authored by Oleg Korshul's avatar Oleg Korshul

core -> new pro files

parent c4b129c1
...@@ -15,6 +15,7 @@ Common/3dParty/v8/win_32 ...@@ -15,6 +15,7 @@ Common/3dParty/v8/win_32
Common/3dParty/v8/linux_64 Common/3dParty/v8/linux_64
Common/3dParty/v8/linux_32 Common/3dParty/v8/linux_32
Common/3dParty/v8/mac_64 Common/3dParty/v8/mac_64
**/core_build
**/Release **/Release
**/Debug **/Debug
*.user *.user
......
INCLUDEPATH += $$PWD/boost_1_58_0
CORE_BOOST_LIBS = $$PWD/boost_1_58_0/build/$$CORE_BUILDS_PLATFORM_PREFIX/static
core_boost_fpic {
CORE_BOOST_LIBS = $$PWD/boost_1_58_0/build/$$CORE_BUILDS_PLATFORM_PREFIX/static_fpic
}
core_boost_shared {
CORE_BOOST_LIBS = $$PWD/boost_1_58_0/build/$$CORE_BUILDS_PLATFORM_PREFIX/shared
}
core_boost_libs {
core_windows {
core_debug {
LIBS += -L$$CORE_BOOST_LIBS -llibboost_system-vc120-mt-gd-1_58 -llibboost_filesystem-vc120-mt-gd-1_58
}
core_release {
LIBS += -L$$CORE_BOOST_LIBS -llibboost_system-vc120-mt-1_58 -llibboost_filesystem-vc120-mt-1_58
}
} else {
LIBS += -L$$CORE_BOOST_LIBS -lboost_system -lboost_filesystem
}
}
SET SCRIPTPATH=%~dp0 SET SCRIPTPATH=%~dp0
CD /D %~dp0 CD /D %~dp0
SET platform=win_32
if defined ProgramFiles(x86) (
SET platform=win_64
)
SET outputdir=%SCRIPTPATH%boost_1_58_0\build\%platform% SET outputdir=%SCRIPTPATH%boost_1_58_0\build\%platform%
echo "%outputdir%" echo "%outputdir%"
CD "%SCRIPTPATH%\boost_1_58_0" CD "%SCRIPTPATH%\boost_1_58_0"
call .\bootstrap.bat call .\bootstrap.bat
SET folder=build/%platform% if exist "stage" (
RMDIR "stage" /S /Q
)
md build
SET folder=build/win_32
echo "x86..."
if exist "%folder%" (
RMDIR "%folder%" /S /Q
)
md %folder%
md %folder%\static
md %folder%\static_fpic
md %folder%\shared
.\b2.exe --clean
.\bjam.exe link=static --with-filesystem --with-system --with-date_time
XCOPY stage\lib\* "%folder%\static\"
.\b2.exe --clean
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time
XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2.exe --clean
.\bjam.exe link=shared --with-filesystem --with-system --with-date_time
XCOPY stage\lib\* "%folder%\shared\"
SET folder=build/win_64
echo "x64..."
if exist "%folder%" ( if exist "%folder%" (
RMDIR "%folder%" /S /Q RMDIR "%folder%" /S /Q
) )
...@@ -21,21 +47,19 @@ if exist "stage" ( ...@@ -21,21 +47,19 @@ if exist "stage" (
RMDIR "stage" /S /Q RMDIR "stage" /S /Q
) )
md build
md %folder% md %folder%
md %folder%\static md %folder%\static
md %folder%\static_fpic md %folder%\static_fpic
md %folder%\shared md %folder%\shared
.\b2.exe --clean .\b2.exe --clean
.\bjam.exe link=static --with-filesystem --with-system .\bjam.exe link=static --with-filesystem --with-system --with-date_time address-model=64
XCOPY stage\lib\* "%folder%\static\" XCOPY stage\lib\* "%folder%\static\"
.\b2.exe --clean .\b2.exe --clean
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system .\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time address-model=64
XCOPY stage\lib\* "%folder%\static_fpic\" XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2.exe --clean .\b2.exe --clean
.\bjam.exe link=shared --with-filesystem --with-system .\bjam.exe link=shared --with-filesystem --with-system --with-date_time address-model=64
XCOPY stage\lib\* "%folder%\shared\" XCOPY stage\lib\* "%folder%\shared\"
\ No newline at end of file
...@@ -24,7 +24,7 @@ outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch" ...@@ -24,7 +24,7 @@ outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch"
echo $outputdir echo $outputdir
cd "$SCRIPTPATH/boost_1_58_0" cd "$SCRIPTPATH/boost_1_58_0"
./bootstrap.sh --with-libraries=filesystem,system ./bootstrap.sh --with-libraries=filesystem,system,date_time
folder="build/$platform$arch" folder="build/$platform$arch"
if [ -d $folder ]; then if [ -d $folder ]; then
......
CORE_V8_PATH_INCLUDE = $$CORE_ROOT_DIR/Common/3dParty/v8/v8
CORE_V8_PATH_LIBS = $$CORE_ROOT_DIR/Common/3dParty/v8/$$CORE_BUILDS_PLATFORM_PREFIX/$$CORE_BUILDS_CONFIGURATION_PREFIX
INCLUDEPATH += \
$$CORE_V8_PATH_INCLUDE \
$$CORE_V8_PATH_INCLUDE/include
core_windows {
INCLUDEPATH += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/icu/include
}
core_win_64 {
LIBS += -L$$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/icu/lib64 -licuuc
}
core_win_32 {
LIBS += -L$$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/icu/lib -licuuc
}
core_linux {
INCLUDEPATH += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/usr/local/include
LIBS += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/build/libicuuc.so.55
LIBS += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/build/libicudata.so.55
}
core_mac {
INCLUDEPATH += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/icu/source/common
LIBS += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/build/libicuuc.55.1.dylib
LIBS += $$PWD/$$CORE_BUILDS_PLATFORM_PREFIX/build/libicudata.55.1.dylib
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-18T16:30:42
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.3 VERSION = 1.0.0.3
TARGET = DjVuFile TARGET = DjVuFile
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
############### destination path ############### CONFIG += core_static_link_libstd
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 += DJVU_USE_DYNAMIC_LIBRARY
LIBS += -L$$LIBS_DESTDIR_PATH -lPdfWriter
CONFIG += build_all_zlib build_zlib_as_sources DEFINES += DJVU_USE_DYNAMIC_LIBRARY
include(../OfficeUtils/OfficeUtils.pri)
CONFIG += build_cximage_zlib_disable CORE_ROOT_DIR = $$PWD/..
LIB_GRAPHICS_PRI_PATH = ../DesktopEditor PWD_ROOT_DIR = $$PWD
include(../DesktopEditor/Qt_build/graphics/project/graphics.pri) include(../Common/base.pri)
LIB_XML_PRI_PATH = ../DesktopEditor/xml LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPdfWriter
include(../DesktopEditor/xml/build/qt/libxml2.pri)
message(dynamic) CONFIG += build_all_zlib build_zlib_as_sources
include(../OfficeUtils/OfficeUtils.pri)
win32 { CONFIG += build_cximage_zlib_disable
LIBS += -lgdi32 \ include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
-ladvapi32 \ include(../DesktopEditor/xml/build/qt/libxml2.pri)
-luser32 \
-lshell32
TARGET_EXT = .dll core_linux {
}
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += plugin
TARGET_EXT = .so
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
mac {
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
} else {
LIBS += -L$$LIBS_DESTDIR_PATH -llibxml
}
################################################
CONFIG += c++11
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
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \ DEFINES += \
HAVE_UNISTD_H \ HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT \
HAVE_MBSTATE_T \ HAVE_MBSTATE_T \
GCONTAINER_NO_MEMBER_TEMPLATES="1" \ GCONTAINER_NO_MEMBER_TEMPLATES="1" \
HAS_WCHAR \ HAS_WCHAR \
...@@ -131,39 +35,24 @@ linux-g++ | linux-g++-64 | linux-g++-32 { ...@@ -131,39 +35,24 @@ linux-g++ | linux-g++-64 | linux-g++-32 {
HAVE_STDINCLUDES HAVE_STDINCLUDES
} }
mac { core_mac {
DEFINES += \ DEFINES += \
HAVE_UNISTD_H \ HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT \
HAVE_MBSTATE_T \ HAVE_MBSTATE_T \
GCONTAINER_NO_MEMBER_TEMPLATES="1" \ GCONTAINER_NO_MEMBER_TEMPLATES="1" \
HAS_WCHAR \ HAS_WCHAR \
HAVE_WCHAR_H \ HAVE_WCHAR_H \
UNIX \ UNIX \
HAVE_STDINCLUDES \ HAVE_STDINCLUDES
_MAC \
MAC
CONFIG += c++11
message(mac)
} }
win32 { core_windows {
DEFINES += \ LIBS += -lgdi32 \
JAS_WIN_MSVC_BUILD \ -ladvapi32 \
WIN32 \ -luser32 \
NOMINMAX -lshell32
DEFINES -= UNICODE
} }
INCLUDEPATH += \
../DesktopEditor/agg-2.4/include \
../DesktopEditor/freetype-2.5.2/include
SOURCES += DjVu.cpp \ SOURCES += DjVu.cpp \
DjVuFileImplementation.cpp \ DjVuFileImplementation.cpp \
libdjvu/Arrays.cpp \ libdjvu/Arrays.cpp \
...@@ -274,8 +163,3 @@ HEADERS += DjVu.h \ ...@@ -274,8 +163,3 @@ HEADERS += DjVu.h \
libdjvu/XMLParser.h \ libdjvu/XMLParser.h \
libdjvu/XMLTags.h \ libdjvu/XMLTags.h \
libdjvu/ZPCodec.h libdjvu/ZPCodec.h
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-18T16:30:42
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.3 VERSION = 1.0.0.3
TARGET = HtmlFile TARGET = HtmlFile
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
############### destination path ############### CONFIG += core_static_link_libstd
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
}
################################################
DEFINES += HTMLFILE_USE_DYNAMIC_LIBRARY
DEFINES += UNICODECONVERTER_USE_DYNAMIC_LIBRARY DEFINES += UNICODECONVERTER_USE_DYNAMIC_LIBRARY
LIBS += -L$$DESTDIR -lUnicodeConverter
# теперь всегда с libstd
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += static_link_libstd
}
static_link_libstd {
DEFINES += asc_static_link_libstd
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
# DESTDIR_POSTFIX = _static_stdlib
# DESTDIR = $$DESTDIR$$DESTDIR_POSTFIX
message(static_link_libstd)
}
############# dynamic dependencies ############# CORE_ROOT_DIR = $$PWD/..
shared { PWD_ROOT_DIR = $$PWD
DEFINES += HTMLFILE_USE_DYNAMIC_LIBRARY include(../Common/base.pri)
LIB_XML_PRI_PATH = ../DesktopEditor/xml LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lUnicodeConverter
include(../DesktopEditor/xml/build/qt/libxml2.pri)
message(dynamic) include(../DesktopEditor/xml/build/qt/libxml2.pri)
win32 { core_linux {
TARGET_EXT = .dll DEFINES += asc_static_link_libstd
}
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += plugin
TARGET_EXT = .so
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
mac {
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
} }
################################################
CONFIG += c++11 core_windows {
DEFINES += NOMINMAX
DEFINES += \
_QT
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
}
win32 {
DEFINES += \
WIN32 \
NOMINMAX
} }
SOURCES += HtmlFile.cpp SOURCES += HtmlFile.cpp
HEADERS += HtmlFile.h HEADERS += HtmlFile.h
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-01-19T10:22:14
#
#-------------------------------------------------
QT -= core QT -= core
QT -= gui QT -= gui
...@@ -11,131 +5,31 @@ VERSION = 1.0.0.3 ...@@ -11,131 +5,31 @@ VERSION = 1.0.0.3
TARGET = HtmlRenderer TARGET = HtmlRenderer
TEMPLATE = lib TEMPLATE = lib
QMAKE_CXXFLAGS += -std=c++11
CONFIG -= debug_and_release debug_and_release_target
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
############### destination path ############### CONFIG += core_static_link_libstd
DESTINATION_SDK_PATH = $$PWD/../build/lib
# WINDOWS DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY
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):{ CORE_ROOT_DIR = $$PWD/..
DESTDIR = $$DESTINATION_SDK_PATH/linux_64 PWD_ROOT_DIR = $$PWD
} include(../Common/base.pri)
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac { CONFIG += build_all_zlib build_zlib_as_sources
DESTDIR = $$DESTINATION_SDK_PATH/mac_64 include(../OfficeUtils/OfficeUtils.pri)
}
################################################ CONFIG += build_cximage_zlib_disable
include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
include(../DesktopEditor/xml/build/qt/libxml2.pri)
LIBS_DESTDIR_PATH = $$DESTDIR core_windows {
# теперь всегда с libstd LIBS += -lgdi32 \
linux-g++ | linux-g++-64 | linux-g++-32 { -ladvapi32 \
CONFIG += static_link_libstd -luser32 \
} -lshell32
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 += HTMLRENDERER_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)
LIB_XML_PRI_PATH = ../DesktopEditor/xml
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
}
################################################
#################### WINDOWS #####################
win32 {
DEFINES += \
WIN32
}
##################################################
################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
}
mac {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_MAC \
MAC
message(mac)
}
##################################################
INCLUDEPATH += \ INCLUDEPATH += \
../../DesktopEditor/agg-2.4/include \ ../../DesktopEditor/agg-2.4/include \
../../DesktopEditor/freetype-2.5.2/include ../../DesktopEditor/freetype-2.5.2/include
...@@ -158,8 +52,3 @@ HEADERS += \ ...@@ -158,8 +52,3 @@ HEADERS += \
src/Writer.h \ src/Writer.h \
include/HTMLRenderer3.h \ include/HTMLRenderer3.h \
src/Common2.h src/Common2.h
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-15T12:43:02
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.4 VERSION = 1.0.0.4
TARGET = PdfReader TARGET = PdfReader
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden CONFIG += core_static_link_libstd
QMAKE_CFLAGS += -fvisibility=hidden
############### destination path ############### CORE_ROOT_DIR = $$PWD/..
DESTINATION_SDK_PATH = $$PWD/../build/lib PWD_ROOT_DIR = $$PWD
include(../Common/base.pri)
# WINDOWS DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY
win32:contains(QMAKE_TARGET.arch, x86_64):{ DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY
CONFIG(debug, debug|release) { LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lHtmlRenderer
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):{ CONFIG += build_all_zlib build_zlib_as_sources
DESTDIR = $$DESTINATION_SDK_PATH/linux_64 include(../OfficeUtils/OfficeUtils.pri)
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
################################################ CONFIG += build_cximage_zlib_disable
include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
include(../DesktopEditor/xml/build/qt/libxml2.pri)
LIBS_DESTDIR_PATH = $$DESTDIR core_windows {
# теперь всегда с libstd LIBS += -lgdi32 \
linux-g++ | linux-g++-64 | linux-g++-32 { -ladvapi32 \
CONFIG += static_link_libstd -luser32 \
-lshell32
} }
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 += \ SOURCES += \
Src/Annot.cpp \ Src/Annot.cpp \
...@@ -275,8 +141,3 @@ HEADERS +=\ ...@@ -275,8 +141,3 @@ HEADERS +=\
Src/XmlUtils.h \ Src/XmlUtils.h \
Src/XRef.h \ Src/XRef.h \
PdfReader.h PdfReader.h
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-15T12:43:02
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.4 VERSION = 1.0.0.4
TARGET = PdfWriter TARGET = PdfWriter
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
############### destination path ############### CONFIG += core_static_link_libstd
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 += PDFWRITER_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)
message(dynamic) CORE_ROOT_DIR = $$PWD/..
PWD_ROOT_DIR = $$PWD
include(../Common/base.pri)
win32 { DEFINES += PDFWRITER_USE_DYNAMIC_LIBRARY
LIBS += -lgdi32 \
-ladvapi32 \
-luser32 \
-lshell32
TARGET_EXT = .dll CONFIG += build_all_zlib build_zlib_as_sources
} include(../OfficeUtils/OfficeUtils.pri)
linux-g++ | linux-g++-64 | linux-g++-32 { CONFIG += build_cximage_zlib_disable
CONFIG += plugin include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
TARGET_EXT = .so include(../DesktopEditor/xml/build/qt/libxml2.pri)
QMAKE_CXXFLAGS += -fvisibility=hidden core_windows {
QMAKE_CFLAGS += -fvisibility=hidden LIBS += -lgdi32 \
} -ladvapi32 \
-luser32 \
mac { -lshell32
CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
}
}
################################################
CONFIG += c++11
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT
message(linux)
}
mac {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
message(mac)
} }
DEFINES -= UNICODE
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
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
HEADERS += \ HEADERS += \
Src/Annotation.h \ Src/Annotation.h \
Src/Catalog.h \ Src/Catalog.h \
...@@ -199,9 +78,3 @@ SOURCES += \ ...@@ -199,9 +78,3 @@ SOURCES += \
Src/Utils.cpp \ Src/Utils.cpp \
OnlineOfficeBinToPdf.cpp \ OnlineOfficeBinToPdf.cpp \
PdfRenderer.cpp PdfRenderer.cpp
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-15T12:43:02
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.4 VERSION = 1.0.0.4
TARGET = UnicodeConverter TARGET = UnicodeConverter
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += c++11 CONFIG += plugin
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CFLAGS += -fvisibility=hidden
linux-g++ | linux-g++-64 | linux-g++-32 {
QMAKE_LFLAGS += -Wl,--rpath=./
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../build/lib
ICU_BUILDS_PLATFORM = mac
# 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
}
ICU_BUILDS_PLATFORM = 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
}
ICU_BUILDS_PLATFORM = win_32
}
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
ICU_BUILDS_PLATFORM = linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
ICU_BUILDS_PLATFORM = linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
ICU_BUILDS_PLATFORM = mac
}
################################################ CONFIG += core_static_link_libstd
LIBS_DESTDIR_PATH = $$DESTDIR CORE_ROOT_DIR = $$PWD/..
# теперь всегда с libstd PWD_ROOT_DIR = $$PWD
linux-g++ | linux-g++-64 | linux-g++-32 { include(../Common/base.pri)
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 += UNICODECONVERTER_USE_DYNAMIC_LIBRARY
}
################################################
linux-g++ | linux-g++-64 | linux-g++-32 { DEFINES += UNICODECONVERTER_USE_DYNAMIC_LIBRARY
CONFIG += plugin
TARGET_EXT = .so
INCLUDEPATH += /usr/local/include core_linux {
LIBS += /usr/local/lib/libicuuc.so.55 QMAKE_LFLAGS += -Wl,--rpath=./
LIBS += /usr/local/lib/libicudata.so.55
message(linux)
}
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
TARGET_EXT = .dll
INCLUDEPATH += $$PWD/icubuilds/$$ICU_BUILDS_PLATFORM/include
LIBS += -L$$PWD/../build/bin/icu/$$ICU_BUILDS_PLATFORM -licuuc
message(windows)
} }
mac { include(../Common/3dParty/icu/icu.pri)
CONFIG += plugin
INCLUDEPATH += $$PWD/icubuilds/$$ICU_BUILDS_PLATFORM/release-55-1/source/common
LIBS += $$PWD/icubuilds/$$ICU_BUILDS_PLATFORM/release-55-1/source/lib/libicuuc.55.1.dylib
LIBS += $$PWD/icubuilds/$$ICU_BUILDS_PLATFORM/release-55-1/source/lib/libicudata.55.1.dylib
message(mac)
}
SOURCES += \ SOURCES += \
UnicodeConverter.cpp UnicodeConverter.cpp
......
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-15T12:43:02
#
#-------------------------------------------------
QT -= core gui QT -= core gui
VERSION = 1.0.0.3 VERSION = 1.0.0.3
TARGET = XpsFile TARGET = XpsFile
TEMPLATE = lib TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared CONFIG += shared
CONFIG += plugin
############### destination path ############### CONFIG += core_static_link_libstd
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 += XPS_USE_DYNAMIC_LIBRARY
LIBS += -L$$DESTDIR -lPdfWriter
CONFIG += build_all_zlib build_zlib_as_sources
include(../OfficeUtils/OfficeUtils.pri)
CONFIG += build_cximage_zlib_disable CORE_ROOT_DIR = $$PWD/..
LIB_GRAPHICS_PRI_PATH = ../DesktopEditor PWD_ROOT_DIR = $$PWD
include(../DesktopEditor/Qt_build/graphics/project/graphics.pri) include(../Common/base.pri)
LIB_XML_PRI_PATH = ../DesktopEditor/xml DEFINES += XPS_USE_DYNAMIC_LIBRARY
include(../DesktopEditor/xml/build/qt/libxml2.pri) LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPdfWriter
message(dynamic) CONFIG += build_all_zlib build_zlib_as_sources
include(../OfficeUtils/OfficeUtils.pri)
win32 { CONFIG += build_cximage_zlib_disable
LIBS += -lgdi32 \ include(../DesktopEditor/Qt_build/graphics/project/graphics.pri)
-ladvapi32 \ include(../DesktopEditor/xml/build/qt/libxml2.pri)
-luser32 \
-lshell32
TARGET_EXT = .dll core_windows {
} LIBS += -lgdi32 \
-ladvapi32 \
linux-g++ | linux-g++-64 | linux-g++-32 { -luser32 \
CONFIG += plugin -lshell32
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
}
################################################
CONFIG += c++11
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT
message(linux)
} }
mac {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
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
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
HEADERS += \ HEADERS += \
XpsFile.h \ XpsFile.h \
XpsLib/ContextState.h \ XpsLib/ContextState.h \
...@@ -175,7 +49,3 @@ SOURCES += \ ...@@ -175,7 +49,3 @@ SOURCES += \
XpsLib/Utils.cpp \ XpsLib/Utils.cpp \
XpsLib/WString.cpp XpsLib/WString.cpp
unix {
target.path = /usr/lib
INSTALLS += target
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment