aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-02-24 14:00:55 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2017-02-27 12:59:29 +0000
commit7d865406d6ccc538f9fd658a0d2b557e115d6919 (patch)
tree8af370be6e1333e0a62073ac533cd44109226a98 /plugins
parentb95ad0c7d56580a6d9b1a5a29e8f0362e172486c (diff)
Use the INSTALL_PREFIX config variable for selecting the install location
Install all qml files as well as qml plugins into the location defined by INSTALL_PREFIX into an neptune folder. If no INSTALL_PREFIX is set it will fall back to /opt Task-number: QTAUTO-276 Change-Id: Iea762c8ff87a1b0ef53aa71bf7ca51e9cddcc0e0 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/comtqci18ndemo/comtqci18ndemo.pro6
-rw-r--r--plugins/datasource/datasource.pro6
-rw-r--r--plugins/screenmanager/screenmanager.pro6
3 files changed, 14 insertions, 4 deletions
diff --git a/plugins/comtqci18ndemo/comtqci18ndemo.pro b/plugins/comtqci18ndemo/comtqci18ndemo.pro
index bc692c0..c29a44d 100644
--- a/plugins/comtqci18ndemo/comtqci18ndemo.pro
+++ b/plugins/comtqci18ndemo/comtqci18ndemo.pro
@@ -23,8 +23,12 @@ OTHER_FILES = qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
+isEmpty(INSTALL_PREFIX) {
+ INSTALL_PREFIX=/opt
+}
+
qmldir.files = qmldir
-installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
+installPath = $$INSTALL_PREFIX/neptune/imports/shared/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
diff --git a/plugins/datasource/datasource.pro b/plugins/datasource/datasource.pro
index 0877426..2db0949 100644
--- a/plugins/datasource/datasource.pro
+++ b/plugins/datasource/datasource.pro
@@ -23,7 +23,9 @@ HEADERS += \
OTHER_FILES = qmldir
-
+isEmpty(INSTALL_PREFIX) {
+ INSTALL_PREFIX=/opt
+}
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$OUT_PWD/qmldir
@@ -34,7 +36,7 @@ OTHER_FILES = qmldir
}
qmldir.files = qmldir
-installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
+installPath = $$INSTALL_PREFIX/neptune/imports/shared/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
diff --git a/plugins/screenmanager/screenmanager.pro b/plugins/screenmanager/screenmanager.pro
index 2681be6..00073fc 100644
--- a/plugins/screenmanager/screenmanager.pro
+++ b/plugins/screenmanager/screenmanager.pro
@@ -23,8 +23,12 @@ OTHER_FILES = qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
+isEmpty(INSTALL_PREFIX) {
+ INSTALL_PREFIX=/opt
+}
+
qmldir.files = qmldir
-installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
+installPath = $$INSTALL_PREFIX/neptune/imports/shared/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir