summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.qmake.conf2
-rw-r--r--features/custominstall.prf10
2 files changed, 11 insertions, 1 deletions
diff --git a/.qmake.conf b/.qmake.conf
index 4580e6c..4d5f549 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -1,6 +1,6 @@
load(qt_build_config)
-CONFIG += warning_clean
+CONFIG += warning_clean custominstall
DEFINES += QT_NO_FOREACH
MODULE_VERSION = 2.3.0
diff --git a/features/custominstall.prf b/features/custominstall.prf
new file mode 100644
index 0000000..835b3f9
--- /dev/null
+++ b/features/custominstall.prf
@@ -0,0 +1,10 @@
+# Fixes all INSTALLS paths so that QT_INSTALL_PREFIX is replaced by the value of
+# the environment variable QT3DS_CUSTOM_INSTALL_PATH
+
+QT3DS_CUSTOM_INSTALL_PATH = $$clean_path($$(QT3DS_CUSTOM_INSTALL_PATH))
+!isEmpty(QT3DS_CUSTOM_INSTALL_PATH) {
+ for (install, INSTALLS) {
+ CUR_PATH = $$eval($${install}.path)
+ $${install}.path = $$replace(CUR_PATH, $$[QT_INSTALL_PREFIX], $$QT3DS_CUSTOM_INSTALL_PATH)
+ }
+}