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 /src/plugins/plugins.pri | |
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 'src/plugins/plugins.pri')
-rw-r--r-- | src/plugins/plugins.pri | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/plugins.pri b/src/plugins/plugins.pri new file mode 100644 index 000000000..b103d069f --- /dev/null +++ b/src/plugins/plugins.pri @@ -0,0 +1,20 @@ +!isEmpty(QBS_RESOURCES_BUILD_DIR) { + destdirPrefix = $${QBS_RESOURCES_BUILD_DIR} +} else { + greaterThan(QT_MAJOR_VERSION, 4): \ + destdirPrefix = $$shadowed($$PWD)/../.. + else: \ + destdirPrefix = ../../../.. # Note: Will break if pri file is included from some other place +} +DESTDIR = $${destdirPrefix}/plugins +TEMPLATE = lib + +CONFIG += depend_includepath +unix: CONFIG += plugin + +!isEmpty(QBS_RESOURCES_INSTALL_DIR): \ + installPrefix = $${QBS_RESOURCES_INSTALL_DIR} +else: \ + installPrefix = $${QBS_INSTALL_PREFIX} +target.path = $${installPrefix}/plugins +INSTALLS += target |