aboutsummaryrefslogtreecommitdiffstats
path: root/qbs.qbs
blob: e183f63ef4f3d3106a7d147379f2b8608db6ba4a (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 1.0

Project {
    property string version: "1.0.1"
    property bool enableUnitTests: false

    references: [
        "src/src.qbs",
        "doc/doc.qbs",
        "tests/auto/auto.qbs"
    ]

    Product {
        name: "share"
        Group {
            files: ["share/qbs"]
            qbs.install: true
            qbs.installDir: "share"
        }

        Transformer {
            inputs: "share/qbs"
            Artifact {
                fileName: "share/qbs"
            }
            prepare: {
                var cmd = new JavaScriptCommand();
                cmd.description = "Copying share/qbs to build directory.";
                cmd.highlight = "codegen";
                cmd.sourceCode = function() { File.copy(input.fileName, output.fileName); }
                return cmd;
            }
        }
    }
}