aboutsummaryrefslogtreecommitdiffstats
path: root/share/share.qbs
blob: c00674e81426ca3cfcac68f959e182f25d304b85 (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
import qbs
import qbs.File

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

    Group {
        files: "../examples"
        qbs.install: true
        qbs.installDir: project.resourcesInstallDir + "/share/qbs"
    }

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