2018-03-09 20:33:59 +03:00
|
|
|
#TARGET = limereport
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
TARGET = limereportd
|
|
|
|
} else {
|
|
|
|
TARGET = limereport
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
TEMPLATE = lib
|
2016-02-17 10:11:00 +03:00
|
|
|
|
2017-06-16 03:06:09 +03:00
|
|
|
contains(CONFIG, static_build){
|
|
|
|
CONFIG += staticlib
|
|
|
|
}
|
|
|
|
|
|
|
|
!contains(CONFIG, staticlib){
|
|
|
|
CONFIG += lib
|
|
|
|
CONFIG += dll
|
|
|
|
}
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
CONFIG += create_prl
|
|
|
|
CONFIG += link_prl
|
2016-03-24 17:10:44 +03:00
|
|
|
|
|
|
|
macx{
|
|
|
|
CONFIG -= dll
|
|
|
|
CONFIG += lib_bundle
|
2016-03-31 03:55:27 +03:00
|
|
|
CONFIG += plugin
|
2016-03-24 17:10:44 +03:00
|
|
|
}
|
2016-03-21 04:12:30 +03:00
|
|
|
|
|
|
|
DEFINES += LIMEREPORT_EXPORTS
|
|
|
|
|
2017-06-14 12:07:02 +03:00
|
|
|
contains(CONFIG, staticlib){
|
2017-06-12 13:11:00 +03:00
|
|
|
DEFINES += HAVE_STATIC_BUILD
|
|
|
|
message(STATIC_BUILD)
|
2017-06-14 12:07:02 +03:00
|
|
|
DEFINES -= LIMEREPORT_EXPORTS
|
2017-06-12 13:11:00 +03:00
|
|
|
}
|
2016-03-21 04:12:30 +03:00
|
|
|
|
|
|
|
EXTRA_FILES += \
|
|
|
|
$$PWD/lrglobal.cpp \
|
|
|
|
$$PWD/lrglobal.h \
|
|
|
|
$$PWD/lrdatasourcemanagerintf.h \
|
|
|
|
$$PWD/lrreportengine.h \
|
|
|
|
$$PWD/lrscriptenginemanagerintf.h \
|
2016-03-31 04:10:04 +03:00
|
|
|
$$PWD/lrcallbackdatasourceintf.h \
|
|
|
|
$$PWD/lrpreviewreportwidget.h
|
2016-03-21 04:12:30 +03:00
|
|
|
|
2016-03-24 17:10:44 +03:00
|
|
|
include(limereport.pri)
|
|
|
|
|
2016-03-31 16:42:08 +03:00
|
|
|
unix:{
|
2016-04-03 16:33:41 +03:00
|
|
|
DESTDIR = $${DEST_LIBS}
|
2016-03-31 16:15:55 +03:00
|
|
|
linux{
|
2016-03-31 16:42:08 +03:00
|
|
|
QMAKE_POST_LINK += mkdir -p $$quote($${DEST_INCLUDE_DIR}) $$escape_expand(\\n\\t) # qmake need make mkdir -p on subdirs more than root/
|
2016-03-31 16:15:55 +03:00
|
|
|
for(FILE,EXTRA_FILES){
|
2016-03-31 16:42:08 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${DEST_INCLUDE_DIR}) $$escape_expand(\\n\\t) # inside of libs make /include/files
|
2016-03-31 16:15:55 +03:00
|
|
|
}
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
2016-03-31 16:15:55 +03:00
|
|
|
macx{
|
|
|
|
for(FILE,EXTRA_FILES){
|
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($${DEST_INCLUDE_DIR}) $$escape_expand(\\n\\t)
|
|
|
|
}
|
|
|
|
QMAKE_POST_LINK += mkdir -p $$quote($${DESTDIR}/include) $$escape_expand(\\n\\t)
|
|
|
|
}
|
2016-04-02 06:03:11 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($${DEST_INCLUDE_DIR}) $$quote($${DESTDIR})
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
EXTRA_FILES ~= s,/,\\,g
|
2016-03-24 17:10:44 +03:00
|
|
|
BUILD_DIR ~= s,/,\\,g
|
2016-04-03 16:33:41 +03:00
|
|
|
DESTDIR = $${DEST_LIBS}
|
2016-04-02 05:05:41 +03:00
|
|
|
DEST_DIR = $$DESTDIR/include
|
2016-03-30 23:26:05 +03:00
|
|
|
DEST_DIR ~= s,/,\\,g
|
2016-03-31 02:42:12 +03:00
|
|
|
DEST_INCLUDE_DIR ~= s,/,\\,g
|
2016-03-24 17:10:44 +03:00
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
for(FILE,EXTRA_FILES){
|
2016-05-20 18:13:14 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY \"$$FILE\" \"$${DEST_INCLUDE_DIR}\" $$escape_expand(\\n\\t)
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
2016-05-20 18:13:14 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR \"$${DEST_INCLUDE_DIR}\" \"$${DEST_DIR}\"
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
2016-02-17 10:11:00 +03:00
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
contains(CONFIG,zint){
|
2016-03-22 15:55:02 +03:00
|
|
|
message(zint)
|
|
|
|
INCLUDEPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4
|
|
|
|
DEPENDPATH += $$ZINT_PATH/backend $$ZINT_PATH/backend_qt4
|
2018-03-09 20:33:59 +03:00
|
|
|
LIBS += -L$${DEST_LIBS}
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -lQtZintd
|
|
|
|
} else {
|
|
|
|
LIBS += -lQtZint
|
|
|
|
}
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
2016-02-17 10:11:00 +03:00
|
|
|
|
2016-03-22 15:55:02 +03:00
|
|
|
#######
|
|
|
|
####Automatically build required translation files (*.qm)
|
2016-03-19 13:48:18 +03:00
|
|
|
|
2016-03-22 22:58:18 +03:00
|
|
|
contains(CONFIG,build_translations){
|
2018-02-25 08:33:17 +03:00
|
|
|
LANGUAGES = ru es_ES ar fr zh
|
2016-02-17 10:11:00 +03:00
|
|
|
|
2016-03-22 22:58:18 +03:00
|
|
|
defineReplace(prependAll) {
|
|
|
|
for(a,$$1):result += $$2$${a}$$3
|
|
|
|
return($$result)
|
|
|
|
}
|
2016-03-19 13:48:18 +03:00
|
|
|
|
2016-03-22 22:58:18 +03:00
|
|
|
TRANSLATIONS = $$prependAll(LANGUAGES, $$TRANSLATIONS_PATH/limereport_,.ts)
|
2016-03-24 17:10:44 +03:00
|
|
|
|
2016-03-22 22:58:18 +03:00
|
|
|
qtPrepareTool(LUPDATE, lupdate)
|
|
|
|
ts.commands = $$LUPDATE $$PWD -ts $$TRANSLATIONS
|
|
|
|
|
|
|
|
TRANSLATIONS_FILES =
|
|
|
|
qtPrepareTool(LRELEASE, lrelease)
|
|
|
|
for(tsfile, TRANSLATIONS) {
|
|
|
|
qmfile = $$tsfile
|
|
|
|
qmfile ~= s,.ts$,.qm,
|
|
|
|
qm.commands += $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
|
|
|
|
tmp_command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile $$escape_expand(\\n\\t)
|
|
|
|
TRANSLATIONS_FILES += $$qmfile
|
|
|
|
}
|
|
|
|
qm.depends = ts
|
2016-03-27 22:02:58 +03:00
|
|
|
OTHER_FILES += $$TRANSLATIONS
|
2016-03-22 22:58:18 +03:00
|
|
|
QMAKE_EXTRA_TARGETS += qm ts
|
|
|
|
POST_TARGETDEPS += qm
|
|
|
|
}
|
2016-03-19 13:48:18 +03:00
|
|
|
|
|
|
|
#### EN AUTOMATIC TRANSLATIONS
|
2016-03-21 04:12:30 +03:00
|
|
|
|
2016-03-22 15:55:02 +03:00
|
|
|
|