aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2019-10-21 17:08:18 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2019-10-23 13:43:16 +0000
commit4aa176129105a16b9a0e3775e84829eaad6bd140 (patch)
tree648f216f398eae9e30076ea9653fb43e9333d0e5
parentf9f71436818a5c2e18eab6de9117c6a611eb6ecc (diff)
add prefix support for non-package build
- use qmake INSTALL_PREFIX=/opt/neptune3 com.luxoft.alexa.pro to use with "make install" to required folder Change-Id: Ia6e780cebe1cbef4d42b592cee81b51168288afc Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--app/app.pro8
-rw-r--r--plugins/alexaauth/alexaauth.pro2
-rw-r--r--plugins/alexainterface/alexainterface.pro4
3 files changed, 7 insertions, 7 deletions
diff --git a/app/app.pro b/app/app.pro
index 7926e13..c777cf8 100644
--- a/app/app.pro
+++ b/app/app.pro
@@ -16,16 +16,16 @@ FILES += info.yaml \
AuthWebPageInteraction.qml
app.files = $$FILES
-app.path = /apps/com.luxoft.alexa
+app.path = $$INSTALL_PREFIX/apps/com.luxoft.alexa
assets.files = ./../gfx/*.png
-assets.path = /apps/com.luxoft.alexa/assets
+assets.path = $$INSTALL_PREFIX/apps/com.luxoft.alexa/assets
conf.files = ./../conf/AlexaClientSDKConfig.json
-conf.path = /apps/com.luxoft.alexa/conf
+conf.path = $$INSTALL_PREFIX/apps/com.luxoft.alexa/conf
database.files = ./../database
-database.path = /apps/com.luxoft.alexa
+database.path = $$INSTALL_PREFIX/apps/com.luxoft.alexa
INSTALLS += app assets conf database
diff --git a/plugins/alexaauth/alexaauth.pro b/plugins/alexaauth/alexaauth.pro
index f075d0f..508e6bd 100644
--- a/plugins/alexaauth/alexaauth.pro
+++ b/plugins/alexaauth/alexaauth.pro
@@ -23,7 +23,7 @@ DISTFILES = qmldir
qmldir.files = qmldir
unix {
- installPath = /apps/com.luxoft.alexa/imports/alexaauth
+ installPath = $$INSTALL_PREFIX/apps/com.luxoft.alexa/imports/alexaauth
qmldir.path = $$installPath
target.path = $$installPath
diff --git a/plugins/alexainterface/alexainterface.pro b/plugins/alexainterface/alexainterface.pro
index 54ae525..9788238 100644
--- a/plugins/alexainterface/alexainterface.pro
+++ b/plugins/alexainterface/alexainterface.pro
@@ -86,14 +86,14 @@ qmldir.files = qmldir
unix {
DEFINES += GSTREAMER_MEDIA_PLAYER
- installPath = /apps/com.luxoft.alexa/imports/alexainterface
+ installPath = $$INSTALL_PREFIX/apps/com.luxoft.alexa/imports/alexainterface
qmldir.path = $$installPath
target.path = $$installPath
kwd.files += ./../../kwd/alexa.umdl \
./../../kwd/common.res
- kwd.path = /apps/com.luxoft.alexa/kwd
+ kwd.path = $$INSTALL_PREFIX/apps/com.luxoft.alexa/kwd
INSTALLS += target qmldir kwd
}