2018-09-22 12:34:48 +03:00
|
|
|
isEmpty(TOP_BUILD_DIR) {
|
2018-08-10 02:26:06 +03:00
|
|
|
TOP_BUILD_DIR = $${PWD}
|
|
|
|
}
|
2018-08-04 19:22:43 +03:00
|
|
|
|
2018-09-22 12:34:48 +03:00
|
|
|
message(TOP_BUILD_DIR: $$TOP_BUILD_DIR)
|
|
|
|
|
|
|
|
#!contains(CONFIG, config_build_dir){
|
|
|
|
# TOP_BUILD_DIR = $${PWD}
|
|
|
|
#}
|
|
|
|
|
2018-08-04 19:22:43 +03:00
|
|
|
!contains(CONFIG, no_build_translations){
|
|
|
|
CONFIG += build_translations
|
|
|
|
}
|
2017-06-16 03:06:09 +03:00
|
|
|
|
|
|
|
!contains(CONFIG, no_zint){
|
|
|
|
CONFIG += zint
|
|
|
|
}
|
2016-09-05 19:52:15 +03:00
|
|
|
|
2017-06-12 13:11:00 +03:00
|
|
|
ZINT_PATH = $$PWD/3rdparty/zint-2.4.4
|
|
|
|
contains(CONFIG,zint){
|
|
|
|
DEFINES += HAVE_ZINT
|
|
|
|
}
|
|
|
|
|
2017-03-01 00:40:36 +03:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
QT += uitools
|
|
|
|
}
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5){
|
|
|
|
CONFIG += uitools
|
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
|
2018-08-04 18:23:56 +03:00
|
|
|
BUILD_DIR = $${TOP_BUILD_DIR}/build/$${QT_VERSION}
|
|
|
|
|
2016-03-31 16:42:08 +03:00
|
|
|
DEST_INCLUDE_DIR = $$PWD/include
|
2016-04-03 16:08:17 +03:00
|
|
|
unix{
|
2016-03-27 22:02:58 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/unix
|
2016-04-03 16:08:17 +03:00
|
|
|
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
|
2016-04-03 16:08:17 +03:00
|
|
|
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
|
|
|
|
|
2016-03-22 15:55:02 +03:00
|
|
|
LIMEREPORT_VERSION_MAJOR = 1
|
2016-11-17 00:50:36 +03:00
|
|
|
LIMEREPORT_VERSION_MINOR = 4
|
2018-10-30 00:16:07 +03:00
|
|
|
LIMEREPORT_VERSION_RELEASE = 105
|
2016-03-22 15:55:02 +03:00
|
|
|
|
|
|
|
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
|
|
|
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
|
|
|
DEFINES += LIMEREPORT_VERSION=$${LIMEREPORT_VERSION}
|
|
|
|
|
|
|
|
QT += script xml sql
|
|
|
|
REPORT_PATH = $$PWD/limereport
|
2016-03-22 22:58:18 +03:00
|
|
|
TRANSLATIONS_PATH = $$PWD/translations
|
2016-03-22 15:55:02 +03:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
DEFINES+=HAVE_QT5
|
|
|
|
QT+= printsupport widgets
|
|
|
|
contains(QT,uitools){
|
|
|
|
message(uitools)
|
|
|
|
DEFINES += HAVE_UI_LOADER
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5){
|
2016-07-07 23:48:03 +03:00
|
|
|
DEFINES+=HAVE_QT4
|
2016-03-22 15:55:02 +03:00
|
|
|
CONFIG(uitools){
|
|
|
|
message(uitools)
|
|
|
|
DEFINES += HAVE_UI_LOADER
|
|
|
|
}
|
|
|
|
}
|
2017-06-12 13:11:00 +03:00
|
|
|
|
|
|
|
|