2021-08-13 13:30:43 +02:00
|
|
|
import qbs.FileInfo
|
2013-08-26 17:50:02 +02:00
|
|
|
|
2022-04-01 14:15:30 +02:00
|
|
|
Project {
|
|
|
|
|
QtcAutotest {
|
2023-05-04 17:20:29 +02:00
|
|
|
name: "Process autotest"
|
2022-03-09 16:18:59 +01:00
|
|
|
|
2022-04-01 14:15:30 +02:00
|
|
|
Depends { name: "Utils" }
|
|
|
|
|
Depends { name: "app_version_header" }
|
|
|
|
|
|
|
|
|
|
files: [
|
|
|
|
|
"processtestapp/processtestapp.cpp",
|
|
|
|
|
"processtestapp/processtestapp.h",
|
2023-05-04 17:20:29 +02:00
|
|
|
"tst_process.cpp",
|
2022-04-01 14:15:30 +02:00
|
|
|
]
|
|
|
|
|
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('PROCESS_TESTAPP="'
|
|
|
|
|
+ FileInfo.joinPaths(destinationDirectory, "processtestapp") + '"');
|
|
|
|
|
return defines;
|
|
|
|
|
}
|
2013-08-26 17:50:02 +02:00
|
|
|
}
|
2022-04-01 14:15:30 +02:00
|
|
|
references: "processtestapp/processtestapp.qbs"
|
2013-08-26 17:50:02 +02:00
|
|
|
}
|