This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
mellowplayer.qbs
54 lines (48 loc) · 1.49 KB
/
mellowplayer.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
49
50
51
52
53
54
import qbs
import qbs.Environment
Project {
// Build options
property string defaultTheme: "Adaptive"
property string libDir: "lib"
property bool buildTests: false
property bool enableCoverage: false
// set this to true when building an appimage
property bool staticLibCpp: false
// Version info
property int versionMajor: 3
property int versionMinor: 4
property int versionPatch: 0
property int buildNumber: {
var ciBuildNumber = Environment.getEnv("TRAVIS_BUILD_NUMBER");
if (!ciBuildNumber) {
ciBuildNumber = Environment.getEnv("APPVEYOR_BUILD_NUMBER");
if (!ciBuildNumber)
ciBuildNumber = "0";
}
return parseInt(ciBuildNumber);
}
property string buildDate: {
function zeroPad(number, size) {
var s = String(number)
while (s.length < (size || 2))
{
s = "0" + s;
}
return s;
}
var d = new Date();
return d.getFullYear() + "-" + zeroPad(d.getMonth() + 1) + "-" + zeroPad(d.getDate());
}
property string version: versionMajor + "." + versionMinor + "." + versionPatch
// Utils
property string thridPartyIncludePath: sourceDirectory + "/3rdparty"
name: "MellowPlayer"
qbsSearchPaths: "qbs"
references: [
"3rdparty/3rdparty.qbs",
"docs/docs.qbs",
"src/src.qbs",
"tests/tests.qbs",
"scripts/packaging/packaging.qbs"
]
}