From 169c8bbf9c45c2b41bf89d6c3b3c5ab9d4e73bf5 Mon Sep 17 00:00:00 2001 From: frostasm Date: Sat, 4 Aug 2018 19:03:48 +0300 Subject: [PATCH] Install binary and header files to Qt installation dir --- limereport/limereport.prf | 22 ++++++++++++++++++++++ limereport/limereport.pro | 15 ++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 limereport/limereport.prf diff --git a/limereport/limereport.prf b/limereport/limereport.prf new file mode 100644 index 0000000..98acf6c --- /dev/null +++ b/limereport/limereport.prf @@ -0,0 +1,22 @@ +QT += xml sql script + +greaterThan(QT_MAJOR_VERSION, 4) { +QT += widgets printsupport +} + +INCLUDEPATH += $$[QT_INSTALL_HEADERS]/LimeReport + +CONFIG(debug, debug|release) { +LIB_NAME = limereportd +} else { +LIB_NAME = limereport +} + +greaterThan(QT_MAJOR_VERSION, 4) { + LIBS += -l$${LIB_NAME} +} else { + qtAddLibrary($${LIB_NAME}) +} + +DEFINES += LIMEREPORT +DEFINES -= NO_LIMEREPORT diff --git a/limereport/limereport.pro b/limereport/limereport.pro index b05ac00..dff9004 100644 --- a/limereport/limereport.pro +++ b/limereport/limereport.pro @@ -37,7 +37,6 @@ contains(CONFIG, staticlib){ } EXTRA_FILES += \ - $$PWD/lrglobal.cpp \ $$PWD/lrglobal.h \ $$PWD/lrdatasourcemanagerintf.h \ $$PWD/lrreportengine.h \ @@ -92,6 +91,20 @@ contains(CONFIG,zint){ } + +#### Install mkspecs, headers and libs to QT_INSTALL_DIR + +headerFiles.path = $$[QT_INSTALL_HEADERS]/LimeReport/ +headerFiles.files = $${DEST_INCLUDE_DIR}/* +INSTALLS += headerFiles + +mkspecs.path = $$[QT_INSTALL_DATA]/mkspecs/features +mkspecs.files = limereport.prf +INSTALLS += mkspecs + +target.path = $$[QT_INSTALL_LIBS] +INSTALLS += target + ####### ####Automatically build required translation files (*.qm)