mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
173 lines
4.8 KiB
Plaintext
173 lines
4.8 KiB
Plaintext
#-------------------------------------------------
|
|
#
|
|
# Project created by QtCreator 2014-10-03T18:30:31
|
|
#
|
|
#-------------------------------------------------
|
|
|
|
QT -= core
|
|
QT -= gui
|
|
|
|
VERSION = 2.4.468.0
|
|
DEFINES += INTVER=$$VERSION
|
|
|
|
TARGET = x2t
|
|
CORE_ROOT_DIR = $$PWD/../../..
|
|
PWD_ROOT_DIR = $$PWD
|
|
|
|
CONFIG += core_static_link_libstd
|
|
CONFIG += core_x2t
|
|
include(../../../Common/base.pri)
|
|
include(../../../Common/3dParty/icu/icu.pri)
|
|
|
|
core_windows {
|
|
QMAKE_LFLAGS += /INCREMENTAL:NO
|
|
|
|
contains(QMAKE_TARGET.arch, x86_64):{
|
|
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.02
|
|
} else {
|
|
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE,5.01
|
|
}
|
|
|
|
} else {
|
|
QMAKE_CXXFLAGS += -Wall -Wno-ignored-qualifiers
|
|
}
|
|
|
|
#CONFIG += build_for_centos6
|
|
build_for_centos6 {
|
|
core_linux_64 {
|
|
QMAKE_LFLAGS += -Wl,--dynamic-linker=./ld-linux-x86-64.so.2
|
|
} else {
|
|
QMAKE_LFLAGS += -Wl,--dynamic-linker=./ld-linux.so.2
|
|
}
|
|
}
|
|
|
|
DEFINES += UNICODE \
|
|
_UNICODE \
|
|
_USE_LIBXML2_READER_ \
|
|
_USE_XMLLITE_READER_ \
|
|
USE_LITE_READER \
|
|
PPTX_DEF\
|
|
PPT_DEF\
|
|
ENABLE_PPT_TO_PPTX_CONVERT\
|
|
#DISABLE_FILE_DOWNLOADER \
|
|
FILTER_FLATE_DECODE_ENABLED \
|
|
CXIMAGE_DONT_DECLARE_TCHAR \
|
|
DONT_WRITE_EMBEDDED_FONTS \
|
|
AVS_USE_CONVERT_PPTX_TOCUSTOM_VML \
|
|
LIBXML_READER_ENABLED
|
|
|
|
DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY
|
|
DEFINES += PDFWRITER_USE_DYNAMIC_LIBRARY
|
|
DEFINES += XPS_USE_DYNAMIC_LIBRARY
|
|
DEFINES += DJVU_USE_DYNAMIC_LIBRARY
|
|
DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY
|
|
DEFINES += HTMLFILE_USE_DYNAMIC_LIBRARY
|
|
DEFINES += UNICODECONVERTER_USE_DYNAMIC_LIBRARY
|
|
|
|
core_windows {
|
|
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
|
|
}
|
|
core_mac {
|
|
INCLUDEPATH += ../../../OfficeUtils/src/zlib-1.2.3
|
|
}
|
|
|
|
INCLUDEPATH += ../../../DesktopEditor/xml/build/qt
|
|
|
|
|
|
INCLUDEPATH += ../../../DesktopEditor/xml/libxml2/include
|
|
INCLUDEPATH += ../../../DesktopEditor/freetype-2.5.2/include
|
|
INCLUDEPATH += ../../../DesktopEditor/agg-2.4/include
|
|
|
|
INCLUDEPATH += $$PWD/../../../Common/DocxFormat
|
|
DEPENDPATH += $$PWD/../../../Common/DocxFormat
|
|
|
|
INCLUDEPATH += $$PWD/../../../ASCOfficePPTXFile/
|
|
DEPENDPATH += $$PWD/../../../ASCOfficePPTXFile/
|
|
|
|
INCLUDEPATH += $$PWD/../../../ASCOfficePPTXFile/Editor/
|
|
DEPENDPATH += $$PWD/../../../ASCOfficePPTXFile/Editor/
|
|
|
|
INCLUDEPATH += $$PWD/../../../OfficeUtils/src
|
|
DEPENDPATH += $$PWD/../../../OfficeUtils/src
|
|
|
|
INCLUDEPATH += $$PWD/../../../ASCOfficeDocxFile2
|
|
DEPENDPATH += $$PWD/../../../ASCOfficeDocxFile2
|
|
|
|
##############################################################################################################
|
|
|
|
SOURCES += ../../src/cextracttools.cpp \
|
|
../../../Common/OfficeFileFormatChecker2.cpp \
|
|
../../src/ASCConverters.cpp \
|
|
../../../DesktopEditor/xml/src/xmllight.cpp \
|
|
../../../DesktopEditor/xml/src/xmldom.cpp
|
|
HEADERS += ../../src/cextracttools.h \
|
|
../../../Common/OfficeFileFormatChecker.h \
|
|
../../src/ASCConverters.h \
|
|
../../../DesktopEditor/graphics/MetafileToGraphicsRenderer.h
|
|
|
|
|
|
#Xls file
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lXlsFormatLib
|
|
# odf format writer
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOdfFileWriterLib
|
|
# odf format reader
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOdfFileReaderLib
|
|
#doc file
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lDocFormatLib
|
|
# ppt file
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPptFormatLib
|
|
#rtf file
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lRtfFormatLib
|
|
#txt(xml) file
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lTxtXmlFormatLib
|
|
# pdf writer
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPdfWriter
|
|
#docxfile2
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lASCOfficeDocxFile2Lib
|
|
#pptxformat
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lPPTXFormatLib
|
|
#docxformat
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lDocxFormatLib
|
|
#office utils
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lOfficeUtils
|
|
#graphics
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lgraphics
|
|
#doctrenderer
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -ldoctrenderer
|
|
#HtmlRenderer
|
|
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$$CORE_BUILDS_LIBRARIES_PATH -lHtmlFile
|
|
#UnicodeConverter
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lUnicodeConverter
|
|
#Crypto++
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lCryptoPPLib
|
|
|
|
#####################################################
|
|
# внешнее подключение сторонних библиотек
|
|
|
|
#BOOST
|
|
CONFIG += core_boost_regex
|
|
include($$PWD/../../../Common/3dParty/boost/boost.pri)
|
|
|
|
core_windows {
|
|
LIBS += -lurlmon
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxml
|
|
}
|
|
|
|
core_linux {
|
|
LIBS += -lz
|
|
LIBS += -lxml2
|
|
LIBS += -lcurl
|
|
}
|
|
|
|
mac {
|
|
LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -llibxml
|
|
LIBS += -framework AppKit
|
|
}
|
|
########################################################
|
|
|