aboutsummaryrefslogtreecommitdiffstats
path: root/share/share.qbs
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-04-26 16:29:13 -0700
committerJake Petroules <jake.petroules@qt.io>2017-05-29 08:56:47 +0000
commit035979a5eb56726001aca6d65757595139324f91 (patch)
tree184459f5dc26211952151fa8483b324ad7d2000c /share/share.qbs
parent2185e6b7e2b2518740ac14268d2bc6b190e30d5c (diff)
Add some third party Python modules for use in dmg module
They are all MIT or BSD 3-clause licensed. They will be used in a followup commit in order to aid in the creation of DMG files on macOS. Change-Id: Icdca2bc8604ee058ea807e9570a3ac9fb6d903d9 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/share.qbs')
-rw-r--r--share/share.qbs26
1 files changed, 23 insertions, 3 deletions
diff --git a/share/share.qbs b/share/share.qbs
index 8f1aa673f..f5d68a265 100644
--- a/share/share.qbs
+++ b/share/share.qbs
@@ -17,6 +17,24 @@ Product {
}
Group {
+ name: "Python executables"
+ files: ["../src/3rdparty/python/bin/dmgbuild"]
+ fileTags: []
+ qbs.install: true
+ qbs.installDir: qbsbuildconfig.libexecInstallDir
+ }
+
+ Group {
+ name: "Python packages"
+ prefix: "../src/3rdparty/python/**/"
+ files: ["*.py"]
+ fileTags: ["qbs resources"]
+ qbs.install: true
+ qbs.installDir: qbsbuildconfig.resourcesInstallDir + "/share/qbs/python"
+ qbs.installSourceBase: "../src/3rdparty/python/lib/python2.7/site-packages"
+ }
+
+ Group {
name: "Modules and imports"
files: ["qbs/**/*"]
fileTags: ["qbs resources"]
@@ -37,9 +55,11 @@ Product {
Rule {
inputs: ["qbs resources"]
Artifact {
- filePath: FileInfo.joinPaths(project.buildDirectory,
- product.moduleProperty("qbsbuildconfig", "resourcesInstallDir"),
- "share", FileInfo.relativePath(product.sourceDirectory, input.filePath))
+ filePath: FileInfo.joinPaths(
+ project.buildDirectory,
+ input.moduleProperty("qbs", "installDir"),
+ FileInfo.relativePath(input.moduleProperty("qbs", "installSourceBase"),
+ input.filePath))
fileTags: ["copied qbs resources"]
}
prepare: {