forked from qt-creator/qt-creator
The TaskTree class is responsible for running async task tree structure defined in a declarative way. Change-Id: Ieaf706c7d2efdc8b431a17b2db8b28bf4b7c38e5 Reviewed-by: hjk <hjk@qt.io>
28 lines
933 B
QML
28 lines
933 B
QML
import qbs.FileInfo
|
|
|
|
Project {
|
|
QtcAutotest {
|
|
name: "TaskTree autotest"
|
|
|
|
Depends { name: "Utils" }
|
|
Depends { name: "app_version_header" }
|
|
|
|
files: [
|
|
"tst_tasktree.cpp",
|
|
]
|
|
cpp.defines: {
|
|
var defines = base;
|
|
if (qbs.targetOS === "windows")
|
|
defines.push("_CRT_SECURE_NO_WARNINGS");
|
|
var absLibExecPath = FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix,
|
|
qtc.ide_libexec_path);
|
|
var relLibExecPath = FileInfo.relativePath(destinationDirectory, absLibExecPath);
|
|
defines.push('TEST_RELATIVE_LIBEXEC_PATH="' + relLibExecPath + '"');
|
|
defines.push('TESTAPP_PATH="'
|
|
+ FileInfo.joinPaths(destinationDirectory, "testapp") + '"');
|
|
return defines;
|
|
}
|
|
}
|
|
references: "testapp/testapp.qbs"
|
|
}
|