aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/propertiesblocks/hello.qbp
blob: de08cbbec0dfcb0869bedeca4dcba38d0e7140b7 (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
import qbs.base 1.0

Product {
    Depends { name: 'cpp' }

    Properties {
        condition: true
        type: 'application'
        name: 'HelloWorld'
    }

    Properties {
        condition: name == 'HelloWorld'
        cpp.defines: ['SOMETHING']
    }

    Properties {
        condition: qbs.targetOS == "weird"
        cpp.staticLibraries: "abc"
    }

    Group {
       cpp.defines: outer.concat(['HAVE_MAIN_CPP', cpp.debugInformation ? '_DEBUG' : '_RELEASE'])
       files: ['main.cpp']
    }
}