Commit f06d166a authored by Oleg Korshul's avatar Oleg Korshul

use base.pri

parent 4d528b2f
......@@ -10,44 +10,14 @@ TARGET = DocFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CXXFLAGS += /bigobj
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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
}
}
CONFIG += core_x2t
include(../../../Common/base.pri)
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
#BOOST
include($$PWD/../../../Common/3dParty/boost/boost.pri)
DEFINES += UNICODE \
_UNICODE \
......@@ -57,38 +27,11 @@ DEFINES += UNICODE \
_USE_LIBXML2_READER_ \
LIBXML_READER_ENABLED
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
QMAKE_MAC_SDK = macosx10.11
core_mac {
QMAKE_MAC_SDK = macosx10.11
}
#################### LINUX ########################
SOURCES += \
../DocFormatLib.cpp \
......@@ -333,10 +276,3 @@ HEADERS += \
../../../Common/3dParty/pole/pole.h \
../../DocDocxConverter/EncryptionHeader.h \
../../DocDocxConverter/DrawingPrimitives.h
unix {
target.path = /usr/lib
INSTALLS += target
}
#-------------------------------------------------
#
# Project created by QtCreator 2014-10-10T14:24:04
#
#-------------------------------------------------
QT -= core gui
TARGET = ASCOfficeDocxFile2Lib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../build/lib
CORE_ROOT_DIR = $$PWD/../..
PWD_ROOT_DIR = $$PWD
# 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
CONFIG += core_x2t
include(../../Common/base.pri)
DEFINES += UNICODE \
_UNICODE \
......@@ -65,35 +23,9 @@ DEFINES += UNICODE \
LIBXML_READER_ENABLED
INCLUDEPATH += \
../../DesktopEditor/freetype-2.5.2/include
#################### WINDOWS #####################
win32 {
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
../../DesktopEditor/freetype-2.5.2/include \
../../DesktopEditor/xml/libxml2/include \
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
INCLUDEPATH += ../../DesktopEditor/xml/libxml2/include
}
#################### LINUX ########################
SOURCES += ../DocWrapper/DocxSerializer.cpp \
../DocWrapper/FontProcessor.cpp \
......@@ -142,9 +74,3 @@ HEADERS += ../DocWrapper/DocxSerializer.h \
../DocWrapper/ChartWriter.h \
../../OfficeCryptReader/source/ECMACryptReader.h \
../../OfficeCryptReader/source/CryptTransform.h
unix {
target.path = /usr/lib
INSTALLS += target
}
......@@ -10,90 +10,29 @@ TARGET = OdfFileReaderLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CXXFLAGS += /bigobj
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
CONFIG += core_x2t
include(../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
#BOOST
include($$PWD/../../Common/3dParty/boost/boost.pri)
DEFINES += UNICODE \
_UNICODE \
_USE_LIBXML2_READER_ \
_USE_XMLLITE_READER_ \
USE_LITE_READER
USE_LITE_READER \
LIBXML_READER_ENABLED
INCLUDEPATH += ../include
INCLUDEPATH += ../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += ../../DesktopEditor/xml/libxml2/include
CONFIG(debug, debug|release){
DEFINES += _DEBUG
}
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += ../../Common/boost_1_58_0
}
#################### LINUX ########################
build_fast {
SOURCES += \
......@@ -627,7 +566,3 @@ HEADERS += \
../src/odf/table_database_ranges.h \
../src/docx/xlsx_conditionalFormatting.h \
../src/docx/xlsx_dxfs.h
unix {
target.path = /usr/lib
INSTALLS += target
}
......@@ -10,88 +10,26 @@ TARGET = OdfFileWriterLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CXXFLAGS += /bigobj
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
CONFIG += core_x2t
include(../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
#BOOST
include($$PWD/../../Common/3dParty/boost/boost.pri)
DEFINES += UNICODE \
_UNICODE \
_USE_LIBXML2_READER_ \
_USE_XMLLITE_READER_ \
USE_LITE_READER
USE_LITE_READER \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += ../../ASCOfficeOdfFile/include
INCLUDEPATH += ../../ASCOfficeOdfFile/src/odf/datatypes
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += ../../Common/boost_1_58_0
}
#################### LINUX ########################
INCLUDEPATH += ../../DesktopEditor/xml/libxml2/include
CONFIG(debug, debug|release){
DEFINES += _DEBUG
......@@ -246,11 +184,6 @@ HEADERS += \
../source/OdfFormat/odf_settings_context.h \
../source/OdfFormat/office_settings.h
unix {
target.path = /usr/lib
INSTALLS += target
}
SOURCES += \
../source/OdfFormat/odf_settings_context.cpp \
../source/OdfFormat/office_settings.cpp
......@@ -10,46 +10,15 @@ TARGET = PptFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../build/lib
CONFIG += core_x2t
include(../../../Common/base.pri)
# 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
#BOOST
include($$PWD/../../../Common/3dParty/boost/boost.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
DEFINES += UNICODE \
_UNICODE \
USE_ATL_CSTRING \
......@@ -68,43 +37,11 @@ DEFINES += UNICODE \
INCLUDEPATH += \
../../../DesktopEditor/freetype-2.5.2/include
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
}
#################### LINUX ########################
../../../DesktopEditor/freetype-2.5.2/include \
../../../DesktopEditor/xml/libxml2/include
unix {
target.path = /usr/lib
INSTALLS += target
core_windows {
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
}
HEADERS += \
......@@ -255,15 +192,15 @@ SOURCES += \
SOURCES += \
../../../Common/3dParty/pole/pole.cpp
win32 {
core_windows {
SOURCES += \
../../../Common/FileDownloader/FileDownloader_win.cpp
}
linux-g++ | linux-g++-64 | linux-g++-32 {
core_linux {
SOURCES += \
../../../Common/FileDownloader/FileDownloader_curl.cpp
}
mac {
core_mac {
OBJECTIVE_SOURCES += \
../../../Common/FileDownloader/FileDownloader_mac.mm
}
......
......@@ -10,48 +10,18 @@ TARGET = PPTXFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
win32 {
#todo accentbordercallout90type, вернуть inline оптимизацию Ob2
QMAKE_CXXFLAGS_RELEASE += -Ob0
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
CORE_ROOT_DIR = $$PWD/../../../..
PWD_ROOT_DIR = $$PWD
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../../build/lib
CONFIG += core_x2t
include(../../../../Common/base.pri)
# 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
core_windows {
QMAKE_CXXFLAGS_RELEASE += -Ob0
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
#BOOST
include($$PWD/../../../../Common/3dParty/boost/boost.pri)
DEFINES += UNICODE \
_UNICODE \
......@@ -67,46 +37,19 @@ DEFINES += UNICODE \
CXIMAGE_DONT_DECLARE_TCHAR \
BUILD_CONFIG_FULL_VERSION \
DONT_WRITE_EMBEDDED_FONTS \
CXIMAGE_DONT_DECLARE_TCHAR
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../../OfficeUtils/src/zlib-1.2.3
INCLUDEPATH += ../../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
LIBXML_READER_ENABLED
INCLUDEPATH += /usr/include/libxml2/libxml
}
CXIMAGE_DONT_DECLARE_TCHAR \
LIBXML_READER_ENABLED
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
LIBXML_READER_ENABLED \
_MAC \
MAC
core_windows {
INCLUDEPATH += ../../../../OfficeUtils/src/zlib-1.2.3
}
#################### LINUX ########################
INCLUDEPATH += \
../../../../DesktopEditor/freetype-2.5.2/include \
../../../../Common/ASCDocxFormat/Source/Utility \
../../../../Common/ASCDocxFormat/Source/XML \
../../../../Common/ASCDocxFormat/Source \
../../../../Common/DocxFormat/Source/XML/libxml2/XML/include
../../../../DesktopEditor/xml/libxml2/include
SOURCES += pptxformatlib.cpp
......@@ -597,20 +540,15 @@ HEADERS += pptxformatlib.h \
../../../PPTXFormat/ShowPr/SldAll.h \
../../../PPTXFormat/ShowPr/SldRg.h
win32 {
core_windows {
SOURCES += \
../../../../Common/FileDownloader/FileDownloader_win.cpp
}
linux-g++ | linux-g++-64 | linux-g++-32 {
core_linux {
SOURCES += \
../../../../Common/FileDownloader/FileDownloader_curl.cpp
}
mac {
core_mac {
OBJECTIVE_SOURCES += \
../../../../Common/FileDownloader/FileDownloader_mac.mm
}
unix {
target.path = /usr/lib
INSTALLS += target
}
......@@ -10,85 +10,25 @@ TARGET = RtfFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
CONFIG += core_x2t
include(../../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#BOOST
include($$PWD/../../../Common/3dParty/boost/boost.pri)
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER LIBXML_READER_ENABLED
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
mac {
core_mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
LIBXML_READER_ENABLED \
_ASC_USE_UNICODE_CONVERTER_ \
UNICODECONVERTER_USE_DYNAMIC_LIBRARY
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
INCLUDEPATH += ../../../Common/boost_1_58_0
LIBS += $$DESTDIR -lUnicodeConverter
}
#################### LINUX ########################
build_fast {
SOURCES += \
......@@ -209,10 +149,6 @@ HEADERS += \
../source/Writer/OOXThemeWriter.h \
../source/Writer/OOXWriter.h \
../source/Ole1FormatReader.h
unix {
target.path = /usr/lib
INSTALLS += target
}
SOURCES += \
../source/RtfMath.cpp \
......
......@@ -10,45 +10,11 @@ TARGET = TxtXmlFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../build/lib
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
# 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
CONFIG += core_x2t
include(../../../Common/base.pri)
DEFINES += UNICODE \
_UNICODE \
......@@ -56,43 +22,12 @@ DEFINES += UNICODE \
_USE_XMLLITE_READER_ \
USE_LITE_READER \
BUILD_CONFIG_FULL_VERSION \
DONT_WRITE_EMBEDDED_FONTS
DONT_WRITE_EMBEDDED_FONTS \
LIBXML_READER_ENABLED
INCLUDEPATH += \
../../../DesktopEditor/freetype-2.5.2/include
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
}
#################### LINUX ########################
../../../DesktopEditor/freetype-2.5.2/include \
../../../DesktopEditor/xml/libxml2/include
HEADERS += \
../Source/TxtXmlEvent.h \
......@@ -123,8 +58,3 @@ SOURCES += \
../Source/ConvertDocx2Txt.cpp \
../Source/ConvertTxt2Docx.cpp
}
unix {
target.path = /usr/lib
INSTALLS += target
}
......@@ -10,47 +10,17 @@ TARGET = XlsFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CXXFLAGS += /bigobj
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
CONFIG += core_x2t
include(../../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
#BOOST
include($$PWD/../../../Common/3dParty/boost/boost.pri)
DEFINES += UNICODE \
_UNICODE
_UNICODE
CONFIG(debug, debug|release){
......@@ -58,38 +28,15 @@ message(Debug)
DEFINES += _DEBUG
}
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
core_mac {
DEFINES += \
_ASC_USE_UNICODE_CONVERTER_ \
UNICODECONVERTER_USE_DYNAMIC_LIBRARY
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
LIBS += $$DESTDIR -lUnicodeConverter
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
_ASC_USE_UNICODE_CONVERTER_ \
UNICODECONVERTER_USE_DYNAMIC_LIBRARY
INCLUDEPATH += ../../../Common/boost_1_58_0
LIBS += $$DESTDIR -lUnicodeConverter
}
#################### LINUX ########################
INCLUDEPATH += ../../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += ../XlsFormat
INCLUDEPATH += ../Common
......@@ -1777,14 +1724,6 @@ HEADERS += \
../XlsFormat/Logic/Biff_records/IMDATA.h \
../XlsFormat/Logic/Biff_structures/CFDatabar.h
unix {
target.path = /usr/lib
INSTALLS += target
}
SOURCES += \
../XlsFormat/Logic/Biff_unions/IMDATAOBJECT.cpp \
../XlsFormat/Logic/Biff_records/IMDATA.cpp \
......
......@@ -23,3 +23,18 @@ core_release {
}
}
core_boost_regex {
core_windows {
core_debug {
LIBS += -L$$CORE_BOOST_LIBS -llibboost_regex-vc120-mt-gd-1_58
}
core_release {
LIBS += -L$$CORE_BOOST_LIBS -llibboost_regex-vc120-mt-1_58
}
} else {
LIBS += -L$$CORE_BOOST_LIBS -lboost_regex
}
}
......@@ -25,15 +25,15 @@ md %folder%\static_fpic
md %folder%\shared
.\b2.exe --clean
.\bjam.exe link=static --with-filesystem --with-system --with-date_time
.\bjam.exe link=static --with-filesystem --with-system --with-date_time --with-regex
XCOPY stage\lib\* "%folder%\static\"
.\b2.exe --clean
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time --with-regex
XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2.exe --clean
.\bjam.exe link=shared --with-filesystem --with-system --with-date_time
.\bjam.exe link=shared --with-filesystem --with-system --with-date_time --with-regex
XCOPY stage\lib\* "%folder%\shared\"
SET folder=build/win_64
......@@ -53,13 +53,13 @@ md %folder%\static_fpic
md %folder%\shared
.\b2.exe --clean
.\bjam.exe link=static --with-filesystem --with-system --with-date_time address-model=64
.\bjam.exe link=static --with-filesystem --with-system --with-date_time --with-regex address-model=64
XCOPY stage\lib\* "%folder%\static\"
.\b2.exe --clean
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time address-model=64
.\bjam.exe link=static cxxflags=-fPIC --with-filesystem --with-system --with-date_time --with-regex address-model=64
XCOPY stage\lib\* "%folder%\static_fpic\"
.\b2.exe --clean
.\bjam.exe link=shared --with-filesystem --with-system --with-date_time address-model=64
.\bjam.exe link=shared --with-filesystem --with-system --with-date_time --with-regex address-model=64
XCOPY stage\lib\* "%folder%\shared\"
\ No newline at end of file
......@@ -24,7 +24,7 @@ outputdir="$SCRIPTPATH/boost_1_58_0/build/$platform$arch"
echo $outputdir
cd "$SCRIPTPATH/boost_1_58_0"
./bootstrap.sh --with-libraries=filesystem,system,date_time
./bootstrap.sh --with-libraries=filesystem,system,date_time,regex
folder="build/$platform$arch"
if [ -d $folder ]; then
......
#-------------------------------------------------
#
# Project created by QtCreator 2016-07-26T18:24:47
#
#-------------------------------------------------
QT -= core gui
TARGET = CryptoPPLib
......@@ -12,37 +6,16 @@ CONFIG += staticlib
DEFINES += CRYPTOPPLIB_LIBRARY
############### 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
}
}
CORE_ROOT_DIR = $$PWD/../../../..
PWD_ROOT_DIR = $$PWD
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
include(../../../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
core_windows {
DEFINES -= UNICODE
}
############### destination path ###############
DEFINES += CRYPTOPP_DISABLE_ASM
HEADERS += \
../3way.h \
......@@ -320,8 +293,3 @@ SOURCES += \
../zlib.cpp \
../cpu.cpp
unix {
target.path = /usr/lib
INSTALLS += target
}
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
}
......
......@@ -10,82 +10,16 @@ TARGET = DocxFormatLib
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CXXFLAGS += /bigobj
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### 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++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
CONFIG += core_x2t
include(../../../Common/base.pri)
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
############### destination path ###############
DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC
DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER LIBXML_READER_ENABLED
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
DEFINES += \
LIBXML_READER_ENABLED
}
#################### LINUX ########################
build_fast {
SOURCES += \
docxformatlib_logic.cpp \
......@@ -125,7 +59,7 @@ SOURCES += \
../Source/XlsxFormat/FileFactory_Spreadsheet.cpp \
../Source/XlsxFormat/IFileContainer_Spreadsheet.cpp \
win32 {
core_windows {
SOURCES += \
../Source/SystemUtility/FileSystem/Directory.cpp \
../Source/SystemUtility/FileSystem/File.cpp \
......@@ -351,8 +285,3 @@ HEADERS += docxformatlib.h \
../Source/XlsxFormat/ExternalLinks/ExternalLinks.h \
../Source/XlsxFormat/Worksheets/Sparkline.h \
../Source/XlsxFormat/Ole/OleObjects.h
unix {
target.path = /usr/lib
INSTALLS += target
}
......@@ -130,3 +130,15 @@ plugin {
staticlib {
DESTDIR = $$CORE_BUILDS_LIBRARIES_PATH
}
core_x2t {
core_windows {
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += /bigobj
}
} else {
QMAKE_CXXFLAGS += -Wall -Wno-ignored-qualifiers
}
DEFINES += CRYPTOPP_DISABLE_ASM
}
......@@ -10,28 +10,31 @@ QT -= gui
VERSION = 2.0.2.382
DEFINES += INTVER=$$VERSION
mac {
message(64 bit)
TARGET = x2t
} else {
contains(QMAKE_HOST.arch, x86_64):{
#64bit
message(64 bit)
TARGET = x2t
}
!contains(QMAKE_HOST.arch, x86_64):{
#32bit
message(32 bit)
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
TARGET = x2t
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
CONFIG += core_static_link_libstd
CONFIG += core_x2t
include(../../../Common/base.pri)
core_win_32 {
TARGET = x2t32
}
core_linux_32 {
TARGET = x2t32
}
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
#BOOST
CONFIG += core_boost_regex
include($$PWD/../../../Common/3dParty/boost/boost.pri)
win32 {
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
core_windows {
QMAKE_LFLAGS += /INCREMENTAL:NO
contains(QMAKE_TARGET.arch, x86_64):{
......@@ -41,18 +44,7 @@ win32 {
}
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
CONFIG += c++11
# теперь всегда с libstd
linux-g++ | linux-g++-64 | linux-g++-32 {
CONFIG += static_link_libstd
}
static_link_libstd {
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
message(static_link_libstd)
QMAKE_CXXFLAGS += -Wall -Wno-ignored-qualifiers
}
#CONFIG += build_for_centos6
......@@ -74,7 +66,8 @@ DEFINES += UNICODE \
CXIMAGE_DONT_DECLARE_TCHAR \
BUILD_CONFIG_FULL_VERSION \
DONT_WRITE_EMBEDDED_FONTS \
AVS_USE_CONVERT_PPTX_TOCUSTOM_VML
AVS_USE_CONVERT_PPTX_TOCUSTOM_VML \
LIBXML_READER_ENABLED
DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY
DEFINES += PDFWRITER_USE_DYNAMIC_LIBRARY
......@@ -84,42 +77,15 @@ DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY
DEFINES += HTMLFILE_USE_DYNAMIC_LIBRARY
DEFINES += UNICODECONVERTER_USE_DYNAMIC_LIBRARY
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include\
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
core_windows {
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
core_mac {
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
}
mac {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT \
_MAC \
MAC \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include\
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
}
#################### LINUX ########################
INCLUDEPATH += \
../../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
INCLUDEPATH += ../../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += $$PWD/../../../Common/DocxFormat
DEPENDPATH += $$PWD/../../../Common/DocxFormat
......@@ -148,118 +114,72 @@ HEADERS += ../../src/cextracttools.h \
###############################################################################################################
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../build/lib
DESTINATION_BIN_PATH = $$PWD/../../../build/bin
win32:contains(QMAKE_TARGET.arch, x86_64):{
message(win64)
DESTINATION_BIN_PATH = $$DESTINATION_BIN_PATH/windows
CONFIG(debug, debug|release) {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
message(win32)
DESTINATION_BIN_PATH = $$DESTINATION_BIN_PATH/windows
CONFIG(debug, debug|release) {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
message(linuX)
LIBS += $$PWD/../../../Common/3dParty/icu/linux_64/build/libicuuc.so.55
LIBS += $$PWD/../../../Common/3dParty/icu/linux_64/build/libicudata.so.55
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/linux_64
DESTINATION_BIN_PATH = $$DESTINATION_BIN_PATH/linux
DESTDIR = $$PWD/../../../build/bin
core_windows {
DESTDIR = $$DESTDIR/windows
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/linux_32
DESTINATION_BIN_PATH = $$DESTINATION_BIN_PATH/linux
core_linux {
DESTDIR = $$DESTDIR/linux
}
mac {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/mac_64
DESTINATION_BIN_PATH = $$DESTINATION_BIN_PATH/mac
core_mac {
DESTDIR = $$DESTDIR/mac
}
DESTDIR = $$DESTINATION_BIN_PATH
############### destination path ###############
message(destination sdk path = $$DESTINATION_SDK_PATH)
CONFIG(debug, debug|release) {
message(Debug)
BOOST_LIBNAME_POSTFIX = -gd
} else {
message(Release)
}
#Xls file
LIBS += -L$$DESTINATION_SDK_PATH -lXlsFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lXlsFormatLib
# odf format writer
LIBS += -L$$DESTINATION_SDK_PATH -lOdfFileWriterLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOdfFileWriterLib
# odf format reader
LIBS += -L$$DESTINATION_SDK_PATH -lOdfFileReaderLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOdfFileReaderLib
#doc file
LIBS += -L$$DESTINATION_SDK_PATH -lDocFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lDocFormatLib
# ppt file
LIBS += -L$$DESTINATION_SDK_PATH -lPptFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPptFormatLib
#rtf file
LIBS += -L$$DESTINATION_SDK_PATH -lRtfFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lRtfFormatLib
#txt(xml) file
LIBS += -L$$DESTINATION_SDK_PATH -lTxtXmlFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lTxtXmlFormatLib
# pdf writer
LIBS += -L$$DESTINATION_SDK_PATH -lPdfWriter
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPdfWriter
#docxfile2
LIBS += -L$$DESTINATION_SDK_PATH -lASCOfficeDocxFile2Lib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lASCOfficeDocxFile2Lib
#pptxformat
LIBS += -L$$DESTINATION_SDK_PATH -lPPTXFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPPTXFormatLib
#docxformat
LIBS += -L$$DESTINATION_SDK_PATH -lDocxFormatLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lDocxFormatLib
#office utils
LIBS += -L$$DESTINATION_SDK_PATH -lOfficeUtils
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOfficeUtils
#graphics
LIBS += -L$$DESTINATION_SDK_PATH -lgraphics
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lgraphics
#doctrenderer
LIBS += -L$$DESTINATION_SDK_PATH -ldoctrenderer
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -ldoctrenderer
#HtmlRenderer
LIBS += -L$$DESTINATION_SDK_PATH -lHtmlRenderer
LIBS += -L$$DESTINATION_SDK_PATH -lPdfReader
LIBS += -L$$DESTINATION_SDK_PATH -lDjVuFile
LIBS += -L$$DESTINATION_SDK_PATH -lXpsFile
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lHtmlRenderer
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPdfReader
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lDjVuFile
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lXpsFile
#HtmlFile
LIBS += -L$$DESTINATION_SDK_PATH -lHtmlFile
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lHtmlFile
#UnicodeConverter
LIBS += -L$$DESTINATION_SDK_PATH -lUnicodeConverter
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lUnicodeConverter
#Crypto++
LIBS += -L$$DESTINATION_SDK_PATH -lCryptoPPLib
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lCryptoPPLib
#####################################################
# внешнее подключение сторонних библиотек
win32 {
core_windows {
LIBS += -lurlmon
LIBS += -LC:\boost_1_58_0\stage\lib -llibboost_regex-vc120-mt$$BOOST_LIBNAME_POSTFIX-1_58
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxml
}
linux-g++ | linux-g++-64 | linux-g++-32 {
LIBS += -lboost_regex
core_linux {
LIBS += -lz
LIBS += -lxml2
LIBS += -lcurl
}
mac {
LIBS += -L$$PWD/../../../Common/boost_1_58_0/stage/lib -lboost_regex
LIBS += -L$$DESTINATION_SDK_PATH -llibxml
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxml
LIBS += -framework AppKit
}
########################################################
......
TEMPLATE = subdirs
CONFIG -= debug_and_release debug_and_release_target
CORE_ROOT_DIR = $$PWD/../../..
PWD_ROOT_DIR = $$PWD
# важно!!! build directory должна быть на уровне выше, чтобы Makefile и $$PWD были на одном уровне к ServerComponents
include(../../../Common/base.pri)
SUBDIRS = \
OfficeUtils \
graphics \
cryptopp \
DocxFormatLib \
PPTXFormatLib \
ASCOfficeDocxFile2Lib \
......@@ -21,6 +23,7 @@ SUBDIRS = \
OfficeUtils.file = ../../../OfficeUtils/OfficeUtils.pro
graphics.file = ../../../DesktopEditor/Qt_build/graphics/project/graphics.pro
cryptopp.file = ../../../Common/3dParty/cryptopp/project/cryptopp.pro
DocxFormatLib.file = ../../../Common/DocxFormat/DocxFormatLib/DocxFormatLib.pro
PPTXFormatLib.file = ../../../ASCOfficePPTXFile/PPTXLib/Linux/PPTXFormatLib/PPTXFormatLib.pro
......@@ -37,6 +40,7 @@ X2tConverter.file = ./X2tConverter.pro
X2tConverter.depends = \
OfficeUtils \
graphics \
cryptopp \
DocxFormatLib \
PPTXFormatLib \
ASCOfficeDocxFile2Lib \
......@@ -48,40 +52,6 @@ X2tConverter.depends = \
OdfFileWriterLib \
XlsFormatLib
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../build/lib
DESTINATION_ICU = $$PWD/../../../UnicodeConverter/icubuilds
win32:contains(QMAKE_TARGET.arch, x86_64):{
DESTINATION_ICU = $$DESTINATION_ICU/win64/bin
CONFIG(debug, debug|release) {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
DESTINATION_ICU = $$DESTINATION_ICU/win32/bin
CONFIG(debug, debug|release) {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTINATION_ICU = $$DESTINATION_ICU/linux64/usr/local/lib
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTINATION_ICU = $$DESTINATION_ICU/icubuilds/mac/build_release-55-1/lib
DESTINATION_SDK_PATH = $$DESTINATION_SDK_PATH/mac_64
}
LIBS += -L$$DESTINATION_SDK_PATH
LIBS += -L$$DESTINATION_ICU
################################################
# for run in qt from this solution
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH
include(../../../Common/3dParty/icu/icu.pri)
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