aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/chapter-2/lib/lib.qbs
blob: 378d855a697c06088a37ce1c6dc51e73bfbc44f3 (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
//! [0]
StaticLibrary {
    name: "mylib"
    files: [
        "lib.c",
        "lib.h",
    ]
    version: "1.0.0"
    install: true

    //! [1]
    Depends { name: 'cpp' }
    cpp.defines: ['CRUCIAL_DEFINE']
    //! [1]

    //! [2]
    Export {
        Depends { name: "cpp" }
        cpp.includePaths: [exportingProduct.sourceDirectory]
    }
    //! [2]

    //! [3]
    Depends { name: 'bundle' }
    bundle.isBundle: false
    //! [3]
}
//! [0]