mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-01 11:31:10 +03:00
Simplify .pro/.pri
This commit is contained in:
112
common.pri
112
common.pri
@@ -1,66 +1,76 @@
|
||||
# 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
|
||||
|
||||
isEmpty(BINARY_RESULT_DIR) {
|
||||
BINARY_RESULT_DIR = $${PWD}
|
||||
}
|
||||
|
||||
!contains(CONFIG, no_build_translations){
|
||||
CONFIG += build_translations
|
||||
!CONFIG(no_build_translations) {
|
||||
CONFIG *= build_translations
|
||||
}
|
||||
#CONFIG *= easy_profiler
|
||||
|
||||
!contains(CONFIG, no_zint){
|
||||
!CONFIG(no_zint) {
|
||||
CONFIG *= zint
|
||||
}
|
||||
|
||||
!contains(CONFIG, no_svg) {
|
||||
!CONFIG(no_svg) {
|
||||
QT *= svg
|
||||
CONFIG *= svg
|
||||
DEFINES += HAVE_SVG
|
||||
DEFINES *= HAVE_SVG
|
||||
}
|
||||
|
||||
INCLUDEPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
||||
DEPENDPATH += $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
||||
|
||||
contains(CONFIG, easy_profiler){
|
||||
CONFIG(easy_profiler) {
|
||||
message(EasyProfiler)
|
||||
unix|win32: LIBS += -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
|
||||
greaterThan(QT_MAJOR_VERSION, 4){
|
||||
DEFINES += BUILD_WITH_EASY_PROFILER
|
||||
INCLUDEPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
||||
DEPENDPATH *= $$PWD/3rdparty/easyprofiler/easy_profiler_core/include
|
||||
unix|win32: LIBS *= -L$$PWD/3rdparty/easyprofiler/build/bin/ -leasy_profiler
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
DEFINES *= BUILD_WITH_EASY_PROFILER
|
||||
}
|
||||
}
|
||||
|
||||
!contains(CONFIG, qtscriptengine){
|
||||
greaterThan(QT_MAJOR_VERSION, 4){
|
||||
greaterThan(QT_MINOR_VERSION, 5){
|
||||
CONFIG *= qjsengine
|
||||
}
|
||||
lessThan(QT_MINOR_VERSION, 6){
|
||||
CONFIG *= qtscriptengine
|
||||
}
|
||||
}
|
||||
lessThan(QT_MAJOR_VERSION, 5){
|
||||
CONFIG *= qtscriptengine
|
||||
}
|
||||
!CONFIG(qtscriptengine) {
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
greaterThan(QT_MINOR_VERSION, 5) {
|
||||
CONFIG *= qjsengine
|
||||
}
|
||||
lessThan(QT_MINOR_VERSION, 6) {
|
||||
CONFIG *= qtscriptengine
|
||||
}
|
||||
}
|
||||
lessThan(QT_MAJOR_VERSION, 5) {
|
||||
CONFIG *= qtscriptengine
|
||||
}
|
||||
}
|
||||
|
||||
contains(CONFIG, qtscriptengine){
|
||||
CONFIG(qtscriptengine) {
|
||||
CONFIG -= qjsengine
|
||||
QT *= script
|
||||
DEFINES *= USE_QTSCRIPTENGINE
|
||||
message(qtscriptengine)
|
||||
}
|
||||
|
||||
!contains(CONFIG, no_formdesigner){
|
||||
!CONFIG(no_formdesigner) {
|
||||
CONFIG *= dialogdesigner
|
||||
}
|
||||
|
||||
!contains(CONFIG, no_embedded_designer){
|
||||
!CONFIG(no_embedded_designer) {
|
||||
CONFIG *= embedded_designer
|
||||
DEFINES += HAVE_REPORT_DESIGNER
|
||||
DEFINES *= HAVE_REPORT_DESIGNER
|
||||
message(embedded designer)
|
||||
}
|
||||
|
||||
ZINT_PATH = $$PWD/3rdparty/zint-2.6.1
|
||||
contains(CONFIG,zint){
|
||||
CONFIG(zint) {
|
||||
DEFINES *= HAVE_ZINT
|
||||
}
|
||||
|
||||
@@ -68,11 +78,11 @@ greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
QT *= uitools
|
||||
}
|
||||
|
||||
lessThan(QT_MAJOR_VERSION, 5){
|
||||
lessThan(QT_MAJOR_VERSION, 5) {
|
||||
CONFIG *= uitools
|
||||
}
|
||||
|
||||
CONFIG(release, debug|release){
|
||||
CONFIG(release, debug|release) {
|
||||
message(Release)
|
||||
BUILD_TYPE = release
|
||||
}else{
|
||||
@@ -83,39 +93,43 @@ CONFIG(release, debug|release){
|
||||
BUILD_DIR = $${BINARY_RESULT_DIR}/build/$${QT_VERSION}
|
||||
|
||||
DEST_INCLUDE_DIR = $$PWD/include
|
||||
|
||||
unix{
|
||||
ARCH_DIR = $${OUT_PWD}/unix
|
||||
ARCH_TYPE = unix
|
||||
|
||||
macx{
|
||||
ARCH_DIR = $${OUT_PWD}/macx
|
||||
ARCH_TYPE = macx
|
||||
ARCH_DIR = $${OUT_PWD}/macx
|
||||
ARCH_TYPE = macx
|
||||
}
|
||||
|
||||
linux{
|
||||
!contains(QT_ARCH, x86_64){
|
||||
!contains(QT_ARCH, x86_64) {
|
||||
message("Compiling for 32bit system")
|
||||
ARCH_DIR = $${OUT_PWD}/linux32
|
||||
ARCH_TYPE = linux32
|
||||
ARCH_DIR = $${OUT_PWD}/linux32
|
||||
ARCH_TYPE = linux32
|
||||
}else{
|
||||
message("Compiling for 64bit system")
|
||||
ARCH_DIR = $${OUT_PWD}/linux64
|
||||
ARCH_TYPE = linux64
|
||||
ARCH_DIR = $${OUT_PWD}/linux64
|
||||
ARCH_TYPE = linux64
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
win32 {
|
||||
!contains(QT_ARCH, x86_64) {
|
||||
message("Compiling for 32bit system")
|
||||
ARCH_DIR = $${OUT_PWD}/win32
|
||||
ARCH_TYPE = win32
|
||||
ARCH_DIR = $${OUT_PWD}/win32
|
||||
ARCH_TYPE = win32
|
||||
} else {
|
||||
message("Compiling for 64bit system")
|
||||
ARCH_DIR = $${OUT_PWD}/win64
|
||||
ARCH_TYPE = win64
|
||||
ARCH_DIR = $${OUT_PWD}/win64
|
||||
ARCH_TYPE = win64
|
||||
}
|
||||
}
|
||||
|
||||
DEST_LIBS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib
|
||||
DEST_BINS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/$${TARGET}
|
||||
DEST_LIBS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib
|
||||
DEST_BINS = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/$${TARGET}
|
||||
|
||||
MOC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/moc
|
||||
UI_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/ui
|
||||
@@ -139,20 +153,20 @@ TRANSLATIONS_PATH = $$PWD/translations
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
DEFINES *= HAVE_QT5
|
||||
QT *= printsupport widgets
|
||||
contains(QT,uitools){
|
||||
contains(QT, uitools) {
|
||||
message(uitools)
|
||||
DEFINES *= HAVE_UI_LOADER
|
||||
}
|
||||
contains(CONFIG, qjsengine){
|
||||
CONFIG(qjsengine) {
|
||||
message(qjsengine)
|
||||
DEFINES *= USE_QJSENGINE
|
||||
QT *= qml
|
||||
}
|
||||
}
|
||||
|
||||
lessThan(QT_MAJOR_VERSION, 5){
|
||||
lessThan(QT_MAJOR_VERSION, 5) {
|
||||
DEFINES *= HAVE_QT4
|
||||
CONFIG(uitools){
|
||||
CONFIG(uitools) {
|
||||
message(uitools)
|
||||
DEFINES *= HAVE_UI_LOADER
|
||||
}
|
||||
|
Reference in New Issue
Block a user