forked from liri-archive/qbs-shared
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqbs-shared.qbs
48 lines (38 loc) · 1.23 KB
/
qbs-shared.qbs
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
36
37
38
39
40
41
42
43
44
45
46
47
48
import qbs 1.0
Project {
name: "QbsShared"
readonly property string version: "1.4.0"
readonly property var versionParts: version.split('.').map(function(part) { return parseInt(part); })
property string prefix: "/usr/local"
property string qbsImportsDir: prefix + "/share/qbs/imports"
property string qbsModulesDir: prefix + "/share/qbs/modules"
//minimumQbsVersion: "1.11.0"
minimumQbsVersion: "1.10.0"
Product {
name: "Installation"
Group {
name: "Imports"
qbs.install: true
qbs.installDir: project.qbsImportsDir
qbs.installSourceBase: "imports/"
files: "imports/**"
excludeFiles: ["imports/**/*.py"]
}
Group {
name: "Modules"
qbs.install: true
qbs.installDir: project.qbsModulesDir
qbs.installSourceBase: "modules/"
files: "modules/**"
excludeFiles: ["modules/**/*.py"]
}
}
InstallPackage {
name: "qbs-shared-artifacts"
targetName: name
builtByDefault: false
archiver.type: "tar"
archiver.outputDirectory: project.buildDirectory
Depends { name: "Installation" }
}
}