aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/probeProperties/probeProperties.qbs
blob: 9846eacef900a8bb5e886bdfc754a23c6aac72e9 (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.Probes

CppApplication {
    Probes.PathProbe {
        id: probe1
        names: ["bin/tool"]
        platformSearchPaths: [product.sourceDirectory]
    }

    Probes.PathProbe {
        id: probe2
        names: ["tool"]
        platformSearchPaths: [product.sourceDirectory + "/bin"]
    }

    targetName: {
        console.info("probe1.fileName=" + probe1.fileName);
        console.info("probe1.path=" + probe1.path);
        console.info("probe1.filePath=" + probe1.filePath);

        console.info("probe2.fileName=" + probe2.fileName);
        console.info("probe2.path=" + probe2.path);
        console.info("probe2.filePath=" + probe2.filePath);

        return name;
    }

    files: ["main.c"]
}