summaryrefslogtreecommitdiff
path: root/tests/auto/language/testdata/productconditions.qbs
blob: bc36711345e7f5c6b15b64a2d8e146bccbb7d857 (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
30
31
32
33
34
35
import qbs.Probes

Project {
    Product {
        name: "product_no_condition"
    }
    Product {
        name: "product_true_condition"
        condition: 1 === 1
    }
    Product {
        name: "product_false_condition"
        condition: 1 === 2
    }
    Product {
        name: "product_condition_dependent_of_module"
        condition: qbs.architecture !== (qbs.architecture + "foo")
    }
    Product {
        name: "product_probe_condition_true"
        condition: trueProbe.found
        Probe {
            id: trueProbe
            configure: { found = true; }
        }
    }
    Product {
        name: "product_probe_condition_false"
        condition: falseProbe.found
        Probe {
            id: falseProbe
            configure: { found = false; }
        }
    }
}