forked from qt-creator/qt-creator
qbs build: Fix sdktool autotest on Windows
Make sure to fix the path separators for the macro that gets passed on the command line. Change-Id: I444883e6fc5a2b49d73a1fa52aa1ea26b207185c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import qbs
|
import qbs.FileInfo
|
||||||
|
|
||||||
QtcAutotest {
|
QtcAutotest {
|
||||||
name: "sdktool autotest"
|
name: "sdktool autotest"
|
||||||
@@ -8,5 +8,8 @@ QtcAutotest {
|
|||||||
files: "tst_sdktool.cpp"
|
files: "tst_sdktool.cpp"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpp.defines: base.concat(['SDKTOOL_DIR="' + qbs.installRoot + '/' + qtc.ide_libexec_path + '"'])
|
cpp.defines: base.concat([
|
||||||
|
'SDKTOOL_DIR="' + FileInfo.joinPaths(FileInfo.fromNativeSeparators(qbs.installRoot),
|
||||||
|
qtc.ide_libexec_path) + '"'
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user