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:
Christian Kandeler
2020-04-30 11:41:31 +02:00
parent f11b00af7a
commit f553e3d16a

View File

@@ -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) + '"'
])
} }