aboutsummaryrefslogtreecommitdiffstats
path: root/qbs
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2016-11-02 11:51:19 +0100
committerEike Ziller <eike.ziller@qt.io>2016-12-01 14:24:53 +0000
commit36b443dfba3c5cb29b343249810d4513b66fa4b3 (patch)
tree979b6c7b1411841264952e87857824bc2643a7b6 /qbs
parentb3a9031b9fd97907fdad2c36e5a78c531607ac4e (diff)
Add defines for relative data paths
Derive the relative paths used in code from the paths used by the build system. Change-Id: I208ee55d3c1ee76921734f5c1c6c40d3fcb9724c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'qbs')
-rw-r--r--qbs/modules/qtc/qtc.qbs8
1 files changed, 8 insertions, 0 deletions
diff --git a/qbs/modules/qtc/qtc.qbs b/qbs/modules/qtc/qtc.qbs
index 9fc7d0a4d3..cf6a3e9fcf 100644
--- a/qbs/modules/qtc/qtc.qbs
+++ b/qbs/modules/qtc/qtc.qbs
@@ -1,5 +1,6 @@
import qbs
import qbs.Environment
+import qbs.FileInfo
import "qtc.js" as HelperFunctions
Module {
@@ -62,6 +63,13 @@ Module {
property stringList generalDefines: [
"QT_CREATOR",
'IDE_LIBRARY_BASENAME="' + libDirName + '"',
+ 'RELATIVE_PLUGIN_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
+ '/' + ide_plugin_path) + '"',
+ 'RELATIVE_LIBEXEC_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
+ '/' + ide_libexec_path) + '"',
+ 'RELATIVE_DATA_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
+ '/' + ide_data_path) + '"',
+ 'RELATIVE_DOC_PATH="' + FileInfo.relativePath('/' + ide_bin_path, '/' + ide_doc_path) + '"',
"QT_NO_CAST_TO_ASCII",
"QT_RESTRICTED_CAST_FROM_ASCII",
"QT_DISABLE_DEPRECATED_BEFORE=0x050600",