LimeReport/demo_r1/demo_r1.pro

82 lines
1.8 KiB
Prolog
Raw Normal View History

2016-03-22 23:12:25 +03:00
include(../common.pri)
QT += core gui
contains(CONFIG,release) {
TARGET = LRDemo_r1
} else {
TARGET = LRDemo_r1d
}
2016-03-21 04:12:30 +03:00
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
INCLUDEPATH += $$PWD/../include
DEPENDPATH += $$PWD/../include
RESOURCES += \
r1.qrc
EXTRA_DIR += $$PWD/demo_reports
2016-04-03 16:33:41 +03:00
DEST_DIR = $${DEST_BINS}
2016-04-02 06:03:11 +03:00
REPORTS_DIR = $${DEST_DIR}
macx{
CONFIG += app_bundle
}
2016-03-21 04:12:30 +03:00
2016-03-31 03:55:27 +03:00
unix:{
2016-04-03 16:33:41 +03:00
LIBS += -L$${DEST_LIBS} -llimereport
!contains(CONFIG, static_build){
contains(CONFIG,zint){
LIBS += -L$${DEST_LIBS} -lQtZint
}
2016-03-27 22:02:58 +03:00
}
2016-03-21 04:12:30 +03:00
DESTDIR = $$DEST_DIR
2016-04-02 06:03:11 +03:00
# QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) |
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
linux{
2016-03-27 22:02:58 +03:00
#Link share lib to ../lib rpath
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/lib
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/../lib
QMAKE_LFLAGS_RPATH += #. .. ./libs
2016-03-31 03:55:27 +03:00
}
2016-03-21 04:12:30 +03:00
target.path = $${DEST_DIR}
2016-03-27 22:02:58 +03:00
INSTALLS = target
2016-03-21 04:12:30 +03:00
}
win32 {
EXTRA_DIR ~= s,/,\\,g
2016-03-24 17:10:44 +03:00
DEST_DIR ~= s,/,\\,g
REPORTS_DIR ~= s,/,\\,g
2016-03-21 04:12:30 +03:00
DESTDIR = $$DEST_DIR
RC_FILE += mainicon.rc
2017-10-26 12:24:06 +03:00
greaterThan(QT_MAJOR_VERSION, 4) {
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$shell_quote($$EXTRA_DIR\\*) $$shell_quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
}
lessThan(QT_MAJOR_VERSION, 5){
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR\\*) $$quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
}
!contains(CONFIG, static_build){
contains(CONFIG,zint){
LIBS += -L$${DEST_LIBS} -lQtZint
}
2016-04-01 18:46:42 +03:00
}
LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -llimereport
} else {
LIBS += -llimereportd
}
2016-03-21 04:12:30 +03:00
}
2016-04-02 06:03:11 +03:00