2016-07-21 12:46:05 +03:00
|
|
|
include(../common.pri)
|
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
TARGET = LRDesigner
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
SOURCES += main.cpp
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../include
|
|
|
|
DEPENDPATH += $$PWD/../include
|
|
|
|
|
|
|
|
DEST_DIR = $${DEST_BINS}
|
|
|
|
REPORTS_DIR = $${DEST_DIR}
|
|
|
|
|
|
|
|
macx{
|
|
|
|
CONFIG += app_bundle
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:{
|
2018-03-09 20:33:59 +03:00
|
|
|
LIBS += -L$${DEST_LIBS}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -llimereportd
|
|
|
|
} else {
|
|
|
|
LIBS += -llimereport
|
|
|
|
}
|
2018-03-09 21:01:07 +03:00
|
|
|
!contains(CONFIG, static_build){
|
|
|
|
contains(CONFIG,zint){
|
|
|
|
LIBS += -L$${DEST_LIBS}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -lQtZintd
|
|
|
|
} else {
|
|
|
|
LIBS += -lQtZint
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-07-21 12:46:05 +03:00
|
|
|
DESTDIR = $$DEST_DIR
|
|
|
|
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
|
2017-06-16 03:06:09 +03:00
|
|
|
!contains(CONFIG, static_build){
|
2018-03-09 21:01:07 +03:00
|
|
|
contains(CONFIG,zint){
|
|
|
|
LIBS += -L$${DEST_LIBS}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -lQtZintd
|
|
|
|
} else {
|
|
|
|
LIBS += -lQtZint
|
|
|
|
}
|
|
|
|
}
|
2018-03-09 20:33:59 +03:00
|
|
|
}
|
2018-03-09 21:01:07 +03:00
|
|
|
|
2018-03-09 20:33:59 +03:00
|
|
|
LIBS += -L$${DEST_LIBS}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -llimereportd
|
|
|
|
} else {
|
|
|
|
LIBS += -llimereport
|
2016-07-21 12:46:05 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|