diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-03-12 16:28:09 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-03-13 14:46:51 +0100 |
commit | 3014544e541836cf6ff13c08f6c863e7c643d05e (patch) | |
tree | 1491d373bf03689110427afcfc0d87da74df6c1e /static.pro | |
parent | 78d9c6ac5247edbbf2738b8c45c10ad714422641 (diff) |
Allow fine-grained tuning of installation.
- Potentially different prefixes for libs and plugins/modules.
- Make it possible to disable installation of development files
(headers, qbscore.lib on Windows).
Change-Id: Ia153d17835f9f1b8d802b23c3689a2f72f656e50
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'static.pro')
-rw-r--r-- | static.pro | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/static.pro b/static.pro index 48cb70039..ea1988df5 100644 --- a/static.pro +++ b/static.pro @@ -67,7 +67,10 @@ OTHER_FILES += $$FILES !isEqual(PWD, $$OUT_PWD) { copy2build.input = FILES - copy2build.output = ${QMAKE_FUNC_FILE_IN_stripSrcDir} + !isEmpty(QBS_RESOURCES_BUILD_DIR): \ + copy2build.output = $${QBS_RESOURCES_BUILD_DIR}/${QMAKE_FUNC_FILE_IN_stripSrcDir} + else: \ + copy2build.output = ${QMAKE_FUNC_FILE_IN_stripSrcDir} isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\" unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} @@ -77,5 +80,9 @@ OTHER_FILES += $$FILES } share.files = share/qbs -share.path = /share +!isEmpty(QBS_RESOURCES_INSTALL_DIR): \ + installPrefix = $${QBS_RESOURCES_INSTALL_DIR} +else: \ + installPrefix = $${QBS_INSTALL_PREFIX} +share.path = $${installPrefix}/share INSTALLS += share |