mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
1acaa431c4
unix{ ARCH_DIR = $${OUT_PWD}/unix ARCH_TYPE = unix macx{ ARCH_DIR = $${OUT_PWD}/macx ARCH_TYPE = macx } linux{ !contains(QT_ARCH, x86_64){ message("Compiling for 32bit system") ARCH_DIR = $${OUT_PWD}/linux32 ARCH_TYPE = linux32 }else{ message("Compiling for 64bit system") ARCH_DIR = $${OUT_PWD}/linux64 ARCH_TYPE = linux64 } } } win32 { ARCH_DIR = $${OUT_PWD}/win32 ARCH_TYPE = win32 } DESTDIR = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib LIBS += -L$${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib
63 lines
1.5 KiB
Prolog
63 lines
1.5 KiB
Prolog
include(../common.pri)
|
|
QT += core gui
|
|
|
|
TARGET = LRDemo
|
|
TEMPLATE = app
|
|
|
|
SOURCES += main.cpp\
|
|
mainwindow.cpp
|
|
|
|
HEADERS += mainwindow.h
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
INCLUDEPATH += $$PWD/../include
|
|
DEPENDPATH += $$PWD/../include
|
|
|
|
RESOURCES += \
|
|
demo_r2.qrc
|
|
|
|
EXTRA_DIR += $$PWD/demo_reports
|
|
DEST_DIR = $${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/demo_r2
|
|
REPORTS_DIR = $${DEST_DIR}
|
|
|
|
macx{
|
|
CONFIG += app_bundle
|
|
}
|
|
|
|
unix:{
|
|
LIBS += -L$${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib -llimereport
|
|
contains(CONFIG,zint){
|
|
LIBS += -L$${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib -lQtZint
|
|
}
|
|
DESTDIR = $$DEST_DIR
|
|
# 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{
|
|
#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
|
|
}
|
|
|
|
win32 {
|
|
EXTRA_DIR ~= s,/,\\,g
|
|
DEST_DIR ~= s,/,\\,g
|
|
REPORTS_DIR ~= s,/,\\,g
|
|
|
|
DESTDIR = $$DEST_DIR
|
|
RC_FILE += mainicon.rc
|
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR\\*) $$quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
|
|
contains(CONFIG,zint){
|
|
LIBS += -L$${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib -lQtZint
|
|
}
|
|
LIBS += -L$${BUILD_DIR}/$${ARCH_TYPE}/$${BUILD_TYPE}/lib -llimereport
|
|
}
|
|
|
|
|