aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/plugins.pri
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-03-12 16:28:09 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2013-03-13 14:46:51 +0100
commit3014544e541836cf6ff13c08f6c863e7c643d05e (patch)
tree1491d373bf03689110427afcfc0d87da74df6c1e /src/plugins/plugins.pri
parent78d9c6ac5247edbbf2738b8c45c10ad714422641 (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.pri20
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