aboutsummaryrefslogtreecommitdiffstats
path: root/share/share.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-07-01 10:55:06 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-07-02 12:18:03 +0200
commit7cb4115ae738b86802d8bdfd9294e2b436dcf51a (patch)
tree91e53aa405fae394e450bbd3e2cc5bc10b06db3c /share/share.qbs
parentebdcfb051ef86f52fa91f0872bc147cb4319d78b (diff)
Prepare qbs project files for selective inclusion.
Namely: - Move product "share" into its own file. - Move version number definition into its own file. This will make it easier to pull in only parts of the sources in an aggregating project (e.g. an IDE that does not need the executables). Change-Id: I41b724fe8a0b20d957b924fe0a827263add43dce Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/share.qbs')
-rw-r--r--share/share.qbs24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/share.qbs b/share/share.qbs
new file mode 100644
index 000000000..cdd571339
--- /dev/null
+++ b/share/share.qbs
@@ -0,0 +1,24 @@
+import qbs
+
+Product {
+ name: "share"
+ Group {
+ files: ["qbs"]
+ qbs.install: true
+ qbs.installDir: "share"
+ }
+
+ Transformer {
+ inputs: "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;
+ }
+ }
+}