-
Notifications
You must be signed in to change notification settings - Fork 1
/
ireen.qbs
90 lines (79 loc) · 2.03 KB
/
ireen.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Product {
name: "ireen"
property bool useThirdPartyHmac: true
property bool sslSupport: true
property string versionMajor: '0'
property string versionMinor: '1'
property string versionRelease: '0'
property string version: versionMajor+'.'+versionMinor+'.'+versionRelease
destination: "lib"
type: ["dynamiclibrary", "installed_content"]
Depends { name: "cpp" }
Depends { name: "Qt.core" }
Depends { name: "Qt.network" }
Depends { name: "Qt.gui" }
Depends { name: "k8json"}
Depends { name: "qca"; condition: !useThirdPartyHmac}
Depends { name: "hmac"; condition: useThirdPartyHmac }
Depends { name: "windows.ws2_32" }
//cpp.warningLevel: "all"
cpp.includePaths: [
".",
"core",
"metainfo",
"3rdparty"
]
cpp.defines: ["IREEN_BUILD_LIBRARY"]
cpp.positionIndependentCode: true
cpp.visibility: 'hidden'
Properties {
condition: !useThirdPartyHmac
cpp.defines: outer.concat("OSCAR_USE_QCA2")
}
Properties {
condition: sslSupport
cpp.defines: outer.concat("IREEN_SSL_SUPPORT")
}
files: [
"*.h",
"*.cpp",
"metainfo/*.h",
"metainfo/*.cpp",
"core/*.h",
"core/*.cpp"
]
//Group {
// //sslSupport
// condition: sslSupport
// files: [
// "oscarauth.h",
// "oscarauth.cpp",
// ]
//}
Group {
//install headers
qbs.installDir: "include/ireen"
fileTags: ["install"]
files: [
"*[^_][a-z].h",
]
}
Group {
qbs.installDir: "include/ireen/core"
fileTags: ["install"]
files: [
"core/*[^_][a-z].h",
]
}
Group {
qbs.installDir: "include/ireen/metainfo"
fileTags: ["install"]
files: [
"metainfo/*[^_][a-z].h",
]
}
ProductModule {
Depends { name: "cpp" }
cpp.includePaths: product.buildDirectory + "/include/ireen"
}
}