diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/comtqci18ndemo/comtqci18ndemo.pro | 6 | ||||
-rw-r--r-- | plugins/datasource/datasource.pro | 6 | ||||
-rw-r--r-- | plugins/screenmanager/screenmanager.pro | 6 |
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 |