aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/utils/process/process.qbs
blob: 0ff6e929fcf4e646bf94b6d6217bc2f32d2c40b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import qbs.FileInfo

Project  {
    QtcAutotest {
        name: "Process autotest"

        Depends { name: "Utils" }
        Depends { name: "app_version_header" }

        files: [
            "processtestapp/processtestapp.cpp",
            "processtestapp/processtestapp.h",
            "tst_process.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('PROCESS_TESTAPP="'
                         + FileInfo.joinPaths(destinationDirectory, "processtestapp") + '"');
            return defines;
        }
    }
    references: "processtestapp/processtestapp.qbs"
}