aboutsummaryrefslogtreecommitdiffstats
path: root/src/share
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-07-08 16:56:26 +0800
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-07-26 11:45:54 +0200
commit98cdfc30cdb199c3bd3d386040c97fbb407442da (patch)
treea53e8573a20389ecb9545d53c811d4b8a1697fca /src/share
parent33fce5cfa8bbfd305c73f6beeb15c9148cf70e92 (diff)
qbs files: Install conditionally shared content
Change-Id: I2f5e946fff7e57760a90eac57d1a1437f1b8b76f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/share')
-rw-r--r--src/share/share.qbs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/share/share.qbs b/src/share/share.qbs
new file mode 100644
index 0000000000..3f2d437be1
--- /dev/null
+++ b/src/share/share.qbs
@@ -0,0 +1,40 @@
+import qbs.base 1.0
+
+Product {
+ type: ["installed_content"]
+ name: "SharedConditionally"
+
+ Group {
+ qbs.installDir: "share/qtcreator/externaltools"
+ fileTags: ["install"]
+ prefix: "qtcreator/externaltools/"
+ files: [
+ "lrelease.xml",
+ "lupdate.xml",
+ "qmlviewer.xml",
+ "sort.xml",
+ ]
+ }
+
+ Group {
+ condition: qbs.targetOS == "linux"
+ qbs.installDir: "share/qtcreator/externaltools"
+ fileTags: ["install"]
+ files: ["qtcreator/externaltools/vi.xml"]
+ }
+
+ Group {
+ condition: qbs.targetOS == "mac"
+ qbs.installDir: "share/qtcreator/externaltools"
+ fileTags: ["install"]
+ files: ["qtcreator/externaltools/vi_mac.xml"]
+ }
+
+ Group {
+ condition: qbs.targetOS == "windows"
+ qbs.installDir: "share/qtcreator/externaltools"
+ fileTags: ["install"]
+ files: ["qtcreator/externaltools/notepad_win.xml"]
+ }
+}
+