summaryrefslogtreecommitdiff
path: root/src/shared/proparser/proparser.qbs
blob: 680a1753795b4c07d0395bc7a84885494eeb3cdf (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
47
48
import qbs

QtcDevHeaders {
    name: "ProParser"
    condition: true
    type: ["qtc.dev-headers", "qtc.dev-module"]
    productName: name
    property string fileName: "proparser.qbs"

    Group {
        fileTagsFilter: ["qtc.dev-module"]
        qbs.install: true
        qbs.installDir: qtc.ide_qbs_modules_path + '/' + product.name
    }

    // TODO: Remove when qbs 1.6 is out.
    FileTagger {
        patterns: ["*.h"]
        fileTags: ["qtc.dev-headers-input"]
    }

    Rule {
        inputs: ["qtc.dev-headers-input"]
        multiplex: true
        Artifact {
            filePath: "dummy"
            fileTags: ["qtc.dev-headers"]
        }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.silent = true;
            cmd.sourceCode = function() { };
            return [cmd];
        }
    }

    Export {
        Depends { name: "cpp" }
        cpp.defines: base.concat([
            "QMAKE_AS_LIBRARY",
            "PROPARSER_THREAD_SAFE",
            "PROEVALUATOR_THREAD_SAFE",
            "PROEVALUATOR_CUMULATIVE",
            "PROEVALUATOR_SETENV",
        ])
        cpp.includePaths: base.concat([product.sourceDirectory + "/.."])
    }
}