Commit 09ff1087 authored by Eike Ziller's avatar Eike Ziller

Make sdktool default data path overridable at build time

By setting a relative path in SDKTOOL_DATA_PATH

Change-Id: Ib61921f396f4eaf72fa240c3edb3795fda800609
Reviewed-by: Iikka Eklund's avatarIikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 5e4b6d54
......@@ -78,6 +78,10 @@ appversion.output = $$OUT_PWD/app/app_version.h
QMAKE_SUBSTITUTES += appversion
INCLUDEPATH += $$OUT_PWD
macos:DEFINES += $$shell_quote(DATA_PATH=\".\")
else:win32:DEFINES += $$shell_quote(DATA_PATH=\"../share/qtcreator\")
else:DEFINES += $$shell_quote(DATA_PATH=\"../../share/qtcreator\")
isEmpty(SDKTOOL_DATA_PATH) {
macos:DEFINES += $$shell_quote(DATA_PATH=\".\")
else:win32:DEFINES += $$shell_quote(DATA_PATH=\"../share/qtcreator\")
else:DEFINES += $$shell_quote(DATA_PATH=\"../../share/qtcreator\")
} else {
DEFINES += $$shell_quote(DATA_PATH=\"$$SDKTOOL_DATA_PATH\")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment