forked from euroelessar/qutim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qutim.qbs
68 lines (58 loc) · 2 KB
/
qutim.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
55
56
57
58
59
60
61
62
63
64
65
66
67
import qbs.base 1.0
Project {
name: "qutIM"
property string qutim_version_major: '0'
property string qutim_version_minor: '4'
property string qutim_version_release: '0'
property string qutim_version_patch: '0'
property string qutim_version: qutim_version_major + '.' + qutim_version_minor + '.' + qutim_version_release + '.' + qutim_version_patch
property bool declarativeUi: false
property var additionalCppDefines: []
property string shareDir: qutim_share_path
property string qutim_qml_path: "bin"
property string qutim_plugin_path: {
if (qbs.targetOS.contains('osx'))
return "bin/qutim.app/Contents/PlugIns";
else if (qbs.targetOS.contains('windows'))
return "bin/plugins"
else
return "lib/qutim/plugins";
}
property string qutim_bin_path: "bin"
property string qutim_lib_path: "lib"
property string qutim_libexec_path: {
if (qbs.targetOS.contains('windows'))
return "bin";
else
return "lib";
}
property string qutim_share_path: {
if (qbs.targetOS.contains("osx"))
return "bin/qutim.app/Contents/Resources/share";
else if (qbs.targetOS.contains("linux"))
return "share/apps/qutim";
else
return "share";
}
property string bin_path: qutim_bin_path
property string lib_path: qutim_libexec_path
property string qml_path: qutim_share_path + '/qml'
property var pluginTags: {
var tags = [ "desktop", "core" ];
return tags.concat(qbs.targetOS);
}
property bool singleProfile: true
Properties {
condition: qbs.targetOS.contains("osx")
qutim_qml_path: "bin/qutim.app/Contents/MacOs/qml"
}
qbsSearchPaths: "."
references: [
"core/3rdparty/3rdparty.qbs",
"core/core.qbs",
"qml/qutimplugin.qbs",
"core/src/corelayers/corelayers.qbs",
"plugins/plugins.qbs",
"protocols/protocols.qbs"
]
}