aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/proper quoting/proper quoting.qbs
blob: cf1fabf24a734c4c8620901e53cb31664ac86bbe (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
36
37
38
39
40
41
42
43
44
45
46
import qbs 1.0

Project {
    Product {
        condition: {
            var result = qbs.targetPlatform === qbs.hostPlatform;
            if (!result)
                console.info("targetPlatform differs from hostPlatform");
            return result;
        }
        type: "application"
        consoleApplication: true
        name: "Hello World"
        files : [ "main.cpp" ]
        Depends { name: "cpp" }
        Depends { name: "my static lib" }
        cpp.defines: [
            'DEFINE="whitespaceless"',
            'DEFINEWITHSPACE="contains space"',
            'DEFINEWITHTAB="contains\ttab"',
            'DEFINEWITHBACKSLASH="backslash\\\\"',
        ]
    }

    Product {
        type: "staticlibrary"
        name : "my static lib"
        files : [ "my static lib.cpp" ]
        Depends { name: "cpp" }
        Depends { name: "helper lib" }
    }

    Product {
        type: "staticlibrary"
        name : "helper lib"
        files : [
            "some helper/some helper.h",
            "some helper/some helper.cpp"
        ]
        Depends { name: "cpp" }
        Export {
            Depends { name: "cpp" }
            cpp.includePaths: [product.sourceDirectory + '/some helper']
        }
    }
}