0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00
LimeReport/common.pri

151 lines
3.4 KiB
Plaintext
Raw Normal View History

!contains(CONFIG, config_build_dir){
TOP_BUILD_DIR = $${PWD}
}
!contains(CONFIG, no_build_translations){
CONFIG += build_translations
}
2018-02-28 23:19:04 +03:00
#CONFIG *= easy_profiler
!contains(CONFIG, no_zint){
2017-09-10 06:47:53 +03:00
CONFIG *= zint
}
2016-09-05 19:52:15 +03:00
2018-02-28 23:19:04 +03:00
INCLUDEPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
DEPENDPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
contains(CONFIG, easy_profiler){
message(EasyProfiler)
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
2018-05-07 22:52:28 +03:00
greaterThan(QT_MAJOR_VERSION, 4){
DEFINES += BUILD_WITH_EASY_PROFILER
}
2018-02-28 23:19:04 +03:00
}
2018-03-22 02:38:42 +03:00
!contains(CONFIG, qtscriptengine){
greaterThan(QT_MAJOR_VERSION, 4){
2017-09-10 06:47:53 +03:00
CONFIG *= qjsengine
2018-05-08 10:53:27 +03:00
#greaterThan(QT_MINOR_VERSION, 5){
# CONFIG *= qjsengine
#}
#lessThan(QT_MINOR_VERSION, 6){
# CONFIG *= qtscriptengine
#}
2018-05-07 22:52:28 +03:00
}
2018-03-22 23:00:51 +03:00
lessThan(QT_MAJOR_VERSION, 5){
CONFIG *= qtscriptengine
2018-03-22 02:38:42 +03:00
}
}
contains(CONFIG, qtscriptengine){
CONFIG -= qjsengine
QT *= script
message(qtscriptengine)
}
2017-09-08 06:30:38 +03:00
!contains(CONFIG, no_formdesigner){
2017-09-10 06:47:53 +03:00
CONFIG *= dialogdesigner
}
2017-11-27 23:14:05 +03:00
!contains(CONFIG, no_embedded_designer){
CONFIG *= embedded_designer
DEFINES += HAVE_REPORT_DESIGNER
}
2017-09-04 06:44:16 +03:00
ZINT_PATH = $$PWD/3rdparty/zint-2.6.1
2017-06-12 13:11:00 +03:00
contains(CONFIG,zint){
2017-09-10 06:47:53 +03:00
DEFINES *= HAVE_ZINT
2017-06-12 13:11:00 +03:00
}
2016-11-02 14:54:36 +03:00
greaterThan(QT_MAJOR_VERSION, 4) {
2017-09-10 06:47:53 +03:00
QT *= uitools
2016-11-02 14:54:36 +03:00
}
2018-02-28 23:19:04 +03:00
2016-11-02 14:54:36 +03:00
lessThan(QT_MAJOR_VERSION, 5){
2017-09-10 06:47:53 +03:00
CONFIG *= uitools
2016-11-02 14:54:36 +03:00
}
2016-09-05 19:52:15 +03:00
2016-03-27 22:02:58 +03:00
CONFIG(release, debug|release){
message(Release)
BUILD_TYPE = release
}else{
message(Debug)
BUILD_TYPE = debug
}
#isEmpty(TOP_BUILD_DIR) {
# BUILD_DIR = $${OUT_PWD}/build/$${QT_VERSION}
#}else{
# BUILD_DIR = $${TOP_BUILD_DIR}/build/$${QT_VERSION}
#}
BUILD_DIR = $${TOP_BUILD_DIR}/build/$${QT_VERSION}
DEST_INCLUDE_DIR = $$PWD/include
unix{
2016-03-27 22:02:58 +03:00
ARCH_DIR = $${OUT_PWD}/unix
ARCH_TYPE = unix
macx{
ARCH_DIR = $${OUT_PWD}/macx
ARCH_TYPE = macx
}
linux{
!contains(QT_ARCH, x86_64){
message("Compiling for 32bit system")
ARCH_DIR = $${OUT_PWD}/linux32
ARCH_TYPE = linux32
}else{
message("Compiling for 64bit system")
ARCH_DIR = $${OUT_PWD}/linux64
ARCH_TYPE = linux64
}
}
2016-03-27 22:02:58 +03:00
}
win32 {
ARCH_DIR = $${OUT_PWD}/win32
ARCH_TYPE = win32
2016-03-27 22:02:58 +03:00
}
2016-04-03 16:33:41 +03:00
DEST_LIBS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib
DEST_BINS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/$${TARGET}
2016-03-27 22:02:58 +03:00
MOC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/moc
UI_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/ui
UI_HEADERS_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/ui
UI_SOURCES_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/ui
OBJECTS_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/obj
RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1
2016-11-17 00:50:36 +03:00
LIMEREPORT_VERSION_MINOR = 4
LIMEREPORT_VERSION_RELEASE = 99
2017-09-10 06:45:56 +03:00
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
2017-09-10 06:47:53 +03:00
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
2018-03-22 02:38:42 +03:00
QT *= xml sql
REPORT_PATH = $$PWD/limereport
2016-03-22 22:58:18 +03:00
TRANSLATIONS_PATH = $$PWD/translations
greaterThan(QT_MAJOR_VERSION, 4) {
2017-09-10 06:47:53 +03:00
DEFINES *= HAVE_QT5
QT *= printsupport widgets qml
contains(QT,uitools){
message(uitools)
2017-09-10 06:47:53 +03:00
DEFINES *= HAVE_UI_LOADER
}
2016-11-01 20:42:45 +03:00
contains(CONFIG, qjsengine){
message(qjsengine)
2017-09-10 06:47:53 +03:00
DEFINES *= USE_QJSENGINE
2016-11-01 20:42:45 +03:00
}
}
lessThan(QT_MAJOR_VERSION, 5){
2017-09-10 06:47:53 +03:00
DEFINES *= HAVE_QT4
CONFIG(uitools){
message(uitools)
2017-09-10 06:47:53 +03:00
DEFINES *= HAVE_UI_LOADER
}
}