0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 16:44:39 +03:00

If compiling in debug mode append a "d" to the Target and also link to that files

This commit is contained in:
Spiek 2017-07-18 18:09:28 +02:00
parent 4e1a680e09
commit 6b0195cb89
5 changed files with 52 additions and 9 deletions

View File

@ -26,7 +26,11 @@ unix{
INCLUDEPATH += $$PWD/../backend INCLUDEPATH += $$PWD/../backend
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\" DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$VERSION\\\"
TARGET = QtZint contains(CONFIG,release) {
TARGET = QtZint
} else {
TARGET = QtZintd
}
!contains(DEFINES, NO_PNG) { !contains(DEFINES, NO_PNG) {
SOURCES += $$PWD/../backend/png.c SOURCES += $$PWD/../backend/png.c

View File

@ -1,7 +1,12 @@
include(../common.pri) include(../common.pri)
QT += core gui QT += core gui
TARGET = LRDemo_r1 contains(CONFIG,release) {
TARGET = LRDemo_r1
} else {
TARGET = LRDemo_r1d
}
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp\ SOURCES += main.cpp\
@ -60,7 +65,12 @@ win32 {
LIBS += -L$${DEST_LIBS} -lQtZint LIBS += -L$${DEST_LIBS} -lQtZint
} }
} }
LIBS += -L$${DEST_LIBS} -llimereport LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -llimereport
} else {
LIBS += -llimereportd
}
} }

View File

@ -1,7 +1,12 @@
include(../common.pri) include(../common.pri)
QT += core gui QT += core gui
TARGET = LRDemo_r2 contains(CONFIG,release) {
TARGET = LRDemo_r2
} else {
TARGET = LRDemo_r2d
}
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp\ SOURCES += main.cpp\
@ -57,7 +62,12 @@ win32 {
LIBS += -L$${DEST_LIBS} -lQtZint LIBS += -L$${DEST_LIBS} -lQtZint
} }
} }
LIBS += -L$${DEST_LIBS} -llimereport LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -llimereport
} else {
LIBS += -llimereportd
}
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$shell_quote($$EXTRA_DIR\\*) $$shell_quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t) QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$shell_quote($$EXTRA_DIR\\*) $$shell_quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
} }

View File

@ -1,7 +1,11 @@
include(../common.pri) include(../common.pri)
QT += core gui QT += core gui
TARGET = LRDesigner contains(CONFIG,release) {
TARGET = LRDesigner
} else {
TARGET = LRDesignerd
}
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp SOURCES += main.cpp
@ -47,6 +51,11 @@ win32 {
LIBS += -L$${DEST_LIBS} -lQtZint LIBS += -L$${DEST_LIBS} -lQtZint
} }
} }
LIBS += -L$${DEST_LIBS} -llimereport LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -llimereport
} else {
LIBS += -llimereportd
}
} }

View File

@ -1,4 +1,9 @@
TARGET = limereport contains(CONFIG,release) {
TARGET = limereport
} else {
TARGET = limereportd
}
TEMPLATE = lib TEMPLATE = lib
contains(CONFIG, static_build){ contains(CONFIG, static_build){
@ -73,7 +78,12 @@ contains(CONFIG,zint){
message(zint) message(zint)
INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4 INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4
DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4 DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4
LIBS += -L$${DEST_LIBS} -lQtZint LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -lQtZint
} else {
LIBS += -lQtZintd
}
} }
####### #######