2021-08-18 20:14:37 +03:00
|
|
|
# uncomment to disable translations
|
|
|
|
#CONFIG += no_build_translations
|
|
|
|
|
|
|
|
# uncomment to disable zint
|
|
|
|
#CONFIG += no_zint
|
|
|
|
|
|
|
|
# uncomment to disable svg
|
|
|
|
#CONFIG += no_svg
|
|
|
|
|
|
|
|
# uncomment to enable easy_profiler
|
|
|
|
#CONFIG *= easy_profiler
|
|
|
|
|
2018-11-10 23:48:03 +03:00
|
|
|
isEmpty(BINARY_RESULT_DIR) {
|
|
|
|
BINARY_RESULT_DIR = $${PWD}
|
2018-08-10 02:26:06 +03:00
|
|
|
}
|
2018-08-04 19:22:43 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(no_build_translations) {
|
|
|
|
CONFIG *= build_translations
|
2018-08-04 19:22:43 +03:00
|
|
|
}
|
2017-06-16 03:06:09 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(no_zint) {
|
2017-09-10 06:47:53 +03:00
|
|
|
CONFIG *= zint
|
2017-06-16 03:06:09 +03:00
|
|
|
}
|
2016-09-05 19:52:15 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(no_svg) {
|
2020-03-18 13:34:11 +03:00
|
|
|
QT *= svg
|
|
|
|
CONFIG *= svg
|
2021-08-18 20:14:37 +03:00
|
|
|
DEFINES *= HAVE_SVG
|
2020-03-18 13:34:11 +03:00
|
|
|
}
|
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG(easy_profiler) {
|
2018-02-28 23:19:04 +03:00
|
|
|
message(EasyProfiler)
|
2021-08-18 20:14:37 +03:00
|
|
|
INCLUDEPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
|
|
|
DEPENDPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
2021-08-20 19:50:06 +03:00
|
|
|
unix|win32: LIBS *= -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
|
|
|
|
equals(QT_MAJOR_VERSION, 5) | equals(QT_MAJOR_VERSION, 6) {
|
2021-08-18 20:14:37 +03:00
|
|
|
DEFINES *= BUILD_WITH_EASY_PROFILER
|
2018-05-07 22:52:28 +03:00
|
|
|
}
|
2018-02-28 23:19:04 +03:00
|
|
|
}
|
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(qtscriptengine) {
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 4) {
|
|
|
|
CONFIG *= qtscriptengine
|
2021-08-18 20:14:37 +03:00
|
|
|
}
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 6) {
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG *= qtscriptengine
|
|
|
|
}
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 5) : greaterThan(QT_MINOR_VERSION, 5) {
|
|
|
|
CONFIG *= qjsengine
|
|
|
|
}
|
|
|
|
equals(QT_MAJOR_VERSION, 6) {
|
|
|
|
CONFIG *= qjsengine
|
|
|
|
}
|
2018-03-22 02:38:42 +03:00
|
|
|
}
|
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG(qtscriptengine) {
|
2018-03-22 02:38:42 +03:00
|
|
|
CONFIG -= qjsengine
|
|
|
|
QT *= script
|
2019-02-19 02:23:53 +03:00
|
|
|
DEFINES *= USE_QTSCRIPTENGINE
|
2018-03-22 02:38:42 +03:00
|
|
|
message(qtscriptengine)
|
|
|
|
}
|
2017-09-08 06:30:38 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(no_formdesigner) {
|
2017-09-10 06:47:53 +03:00
|
|
|
CONFIG *= dialogdesigner
|
2017-06-16 03:17:17 +03:00
|
|
|
}
|
2017-04-07 21:01:51 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
!CONFIG(no_embedded_designer) {
|
2017-11-27 23:14:05 +03:00
|
|
|
CONFIG *= embedded_designer
|
2021-08-18 20:14:37 +03:00
|
|
|
DEFINES *= HAVE_REPORT_DESIGNER
|
2021-04-14 21:21:38 +03:00
|
|
|
message(embedded designer)
|
2017-11-27 23:14:05 +03:00
|
|
|
}
|
|
|
|
|
2022-01-26 15:16:57 +03:00
|
|
|
ZINT_PATH = $$PWD/3rdparty/zint-2.10.0
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG(zint) {
|
2017-09-10 06:47:53 +03:00
|
|
|
DEFINES *= HAVE_ZINT
|
2017-06-12 13:11:00 +03:00
|
|
|
}
|
|
|
|
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 4) {
|
|
|
|
CONFIG *= uitools
|
2017-03-01 00:40:36 +03:00
|
|
|
}
|
2018-02-28 23:19:04 +03:00
|
|
|
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 5) | equals(QT_MAJOR_VERSION, 6) {
|
|
|
|
QT *= uitools
|
2017-03-01 00:40:36 +03:00
|
|
|
}
|
2016-09-05 19:52:15 +03:00
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG(release, debug|release) {
|
2016-03-27 22:02:58 +03:00
|
|
|
message(Release)
|
|
|
|
BUILD_TYPE = release
|
|
|
|
}else{
|
|
|
|
message(Debug)
|
|
|
|
BUILD_TYPE = debug
|
|
|
|
}
|
|
|
|
|
2018-11-10 23:48:03 +03:00
|
|
|
BUILD_DIR = $${BINARY_RESULT_DIR}/build/$${QT_VERSION}
|
2018-08-04 18:23:56 +03:00
|
|
|
|
2016-03-31 16:42:08 +03:00
|
|
|
DEST_INCLUDE_DIR = $$PWD/include
|
2021-08-18 20:14:37 +03:00
|
|
|
|
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
|
2021-08-18 20:14:37 +03:00
|
|
|
|
2016-04-03 16:08:17 +03:00
|
|
|
macx{
|
2021-08-18 20:14:37 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/macx
|
|
|
|
ARCH_TYPE = macx
|
2016-04-03 16:08:17 +03:00
|
|
|
}
|
2021-08-18 20:14:37 +03:00
|
|
|
|
2016-04-03 16:08:17 +03:00
|
|
|
linux{
|
2021-08-18 20:14:37 +03:00
|
|
|
!contains(QT_ARCH, x86_64) {
|
2016-04-03 16:08:17 +03:00
|
|
|
message("Compiling for 32bit system")
|
2021-08-18 20:14:37 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/linux32
|
|
|
|
ARCH_TYPE = linux32
|
2016-04-03 16:08:17 +03:00
|
|
|
}else{
|
|
|
|
message("Compiling for 64bit system")
|
2021-08-18 20:14:37 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/linux64
|
|
|
|
ARCH_TYPE = linux64
|
2016-04-03 16:08:17 +03:00
|
|
|
}
|
|
|
|
}
|
2016-03-27 22:02:58 +03:00
|
|
|
}
|
2021-08-18 20:14:37 +03:00
|
|
|
|
2016-03-27 22:02:58 +03:00
|
|
|
win32 {
|
2019-05-30 20:05:43 +03:00
|
|
|
!contains(QT_ARCH, x86_64) {
|
|
|
|
message("Compiling for 32bit system")
|
2021-08-18 20:14:37 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/win32
|
|
|
|
ARCH_TYPE = win32
|
2019-05-30 20:05:43 +03:00
|
|
|
} else {
|
|
|
|
message("Compiling for 64bit system")
|
2021-08-18 20:14:37 +03:00
|
|
|
ARCH_DIR = $${OUT_PWD}/win64
|
|
|
|
ARCH_TYPE = win64
|
2019-05-30 20:05:43 +03:00
|
|
|
}
|
2016-03-27 22:02:58 +03:00
|
|
|
}
|
|
|
|
|
2021-08-18 20:14:37 +03:00
|
|
|
DEST_LIBS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib
|
|
|
|
DEST_BINS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/$${TARGET}
|
2016-04-03 16:33:41 +03:00
|
|
|
|
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
|
2023-08-29 20:31:07 +03:00
|
|
|
LIMEREPORT_VERSION_MINOR = 7
|
2024-07-18 21:46:54 +03:00
|
|
|
LIMEREPORT_VERSION_RELEASE = 9
|
2016-03-22 15:55:02 +03:00
|
|
|
|
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}\\\"
|
2016-03-22 15:55:02 +03:00
|
|
|
|
2018-03-22 02:38:42 +03:00
|
|
|
QT *= xml sql
|
2016-03-22 15:55:02 +03:00
|
|
|
|
|
|
|
REPORT_PATH = $$PWD/limereport
|
2016-03-22 22:58:18 +03:00
|
|
|
TRANSLATIONS_PATH = $$PWD/translations
|
2016-03-22 15:55:02 +03:00
|
|
|
|
2021-08-20 19:50:06 +03:00
|
|
|
equals(QT_MAJOR_VERSION, 4) {
|
|
|
|
DEFINES *= HAVE_QT4
|
|
|
|
CONFIG(uitools) {
|
|
|
|
message(uitools)
|
|
|
|
DEFINES *= HAVE_UI_LOADER
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
equals(QT_MAJOR_VERSION, 5) | equals(QT_MAJOR_VERSION, 6) {
|
2017-09-10 06:47:53 +03:00
|
|
|
DEFINES *= HAVE_QT5
|
2019-02-28 12:28:38 +03:00
|
|
|
QT *= printsupport widgets
|
2021-08-18 20:14:37 +03:00
|
|
|
contains(QT, uitools) {
|
2016-03-22 15:55:02 +03:00
|
|
|
message(uitools)
|
2017-09-10 06:47:53 +03:00
|
|
|
DEFINES *= HAVE_UI_LOADER
|
2016-03-22 15:55:02 +03:00
|
|
|
}
|
2021-08-18 20:14:37 +03:00
|
|
|
CONFIG(qjsengine) {
|
2016-11-01 20:42:45 +03:00
|
|
|
message(qjsengine)
|
2017-09-10 06:47:53 +03:00
|
|
|
DEFINES *= USE_QJSENGINE
|
2019-02-28 12:28:38 +03:00
|
|
|
QT *= qml
|
2016-03-22 15:55:02 +03:00
|
|
|
}
|
|
|
|
}
|