diff options
author | Laszlo Papp <lpapp@kde.org> | 2012-04-04 18:51:54 +0300 |
---|---|---|
committer | Denis Shienkov <scapig@yandex.ru> | 2012-04-04 19:10:24 +0200 |
commit | 1ba2004b9333d3f308de896aa2a0d10222f73287 (patch) | |
tree | de7f3cffb4063e3863062641a7b9b8c6f8cc6e94 /src/src.pro | |
parent | 2ad7517afe054149472f4bb595c78e140ea02707 (diff) | |
download | qtserialport-1ba2004b9333d3f308de896aa2a0d10222f73287.tar.gz |
Add a helper script for installing the project header files with Qt4
Add a simple include helper .pri file for "generating" (copying) the public
header files into the projectroot/include folder. In addition, this helper
script takes care of the creation of that folder. Furthermore it sets up the
install target so that the "make install" execution will install the required
header files smoothly.
This is mostly done by the syncqt for the qt4 and qt5 codebases, but we cannot
expect people having any of those cloned. Moreover, it is a huge beast written
in perl. :-) Meaning that it is hard to adopt and make custom modifications,
aka. maintaining.
Change-Id: I19c0705c99600bfb8bb32d5755ddbe0b381be8d0
Reviewed-by: Denis Shienkov <scapig@yandex.ru>
Diffstat (limited to 'src/src.pro')
-rw-r--r-- | src/src.pro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src.pro b/src/src.pro index ec5551e..05dc36c 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,9 +1,12 @@ +include($$PWD/src-lib.pri) + greaterThan(QT_MAJOR_VERSION, 4) { load(qt_module) load(qt_module_config) QT += core-private } else { include($$PWD/../modules/qt_serialport.pri) + include($$PWD/qt4support/include-helper.pri) } TEMPLATE = lib @@ -17,8 +20,6 @@ DEFINES += QT_ADDON_SERIALPORT_LIB CONFIG += module create_prl MODULE_PRI = ../modules/qt_serialport.pri -include($$PWD/src-lib.pri) - mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$QT.serialport.name |