0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00
LimeReport/demo_r1/demo_r1.pro

78 lines
1.7 KiB
Prolog
Raw Normal View History

2016-03-22 23:12:25 +03:00
include(../common.pri)
QT += core gui
CONFIG(release, debug|release) {
2021-08-18 20:14:37 +03:00
TARGET = LRDemo_r1
} else {
2021-08-18 20:14:37 +03:00
TARGET = LRDemo_r1d
}
2016-03-21 04:12:30 +03:00
TEMPLATE = app
2021-08-18 20:14:37 +03:00
SOURCES += main.cpp \
mainwindow.cpp
2016-03-21 04:12:30 +03:00
2021-08-18 20:14:37 +03:00
HEADERS += mainwindow.h
2016-03-21 04:12:30 +03:00
2021-08-18 20:14:37 +03:00
FORMS += mainwindow.ui
2016-03-21 04:12:30 +03:00
INCLUDEPATH += $$PWD/../include
DEPENDPATH += $$PWD/../include
RESOURCES += \
2021-08-18 20:14:37 +03:00
r1.qrc
2016-03-21 04:12:30 +03:00
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{
2021-08-18 20:14:37 +03:00
CONFIG += app_bundle
2016-04-02 06:03:11 +03:00
}
2016-03-21 04:12:30 +03:00
2016-03-31 03:55:27 +03:00
unix:{
2021-08-18 20:14:37 +03:00
DESTDIR = $$DEST_DIR
# QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) |
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t)
2021-08-18 20:14:37 +03:00
linux{
#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
}
target.path = $${DEST_DIR}
INSTALLS = target
2016-03-21 04:12:30 +03:00
}
win32 {
DESTDIR = $$DEST_DIR
2021-08-18 20:14:37 +03:00
contains(QMAKE_HOST.os, Linux) {
2020-05-12 14:11:58 +03:00
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\" $$escape_expand(\n\t)
2018-10-30 00:16:07 +03:00
} else {
2021-08-18 20:14:37 +03:00
EXTRA_DIR ~= s,/,\\,g
2018-10-30 00:16:07 +03:00
DEST_DIR ~= s,/,\\,g
REPORTS_DIR ~= s,/,\\,g
RC_FILE += mainicon.rc
2020-03-02 18:25:55 +03:00
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$$EXTRA_DIR\" \"$$REPORTS_DIR\\demo_reports\" $$escape_expand(\\n\\t)
2016-04-01 18:46:42 +03:00
}
2016-03-21 04:12:30 +03:00
}
2016-04-02 06:03:11 +03:00
2018-10-30 00:16:07 +03:00
LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release) {
LIBS += -llimereportd
} else {
LIBS += -llimereport
2016-03-21 04:12:30 +03:00
}
message($$LIBS)
2016-04-02 06:03:11 +03:00
2021-08-18 20:14:37 +03:00
!CONFIG(static_build) : CONFIG(zint) {
LIBS += -L$${DEST_LIBS}
CONFIG(debug, debug|release) {
LIBS += -lQtZintd
} else {
LIBS += -lQtZint
}
2018-10-30 00:16:07 +03:00
}