-
Notifications
You must be signed in to change notification settings - Fork 4
/
qremoteobject.qbs
61 lines (57 loc) · 1.82 KB
/
qremoteobject.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
import qbs
import qbs.File
Product{
name:"qremoteobject"
id:qremoteObject
type:"staticlibrary"
property string libName:
qremoteObject.type == "dynamiclibrary"?
(qbs.targetOS.contains("windows") ? "":"lib") + name + (qbs.targetOS.contains("windows") ? ".dll":".so"):
(qbs.targetOS.contains("windows") ? "":"lib") + name + (qbs.targetOS.contains("windows") ? ".lib":".a")
Depends{name:'cpp'}
cpp.cxxLanguageVersion: "c++11"
Depends{name: "Qt"; submodules:["core","core-private"]}
Export{
Depends {name: "cpp"}
cpp.cxxLanguageVersion: "c++11"
// Depends{name: "Qt"; submodules:["core","core-private"]}
cpp.includePaths:[qbs.installRoot +installPathExt + "/include/qtremoteobject"];
cpp.libraryPaths:[qbs.installRoot +installPathExt + "/lib" ];
cpp.dynamicLibraries:[qbs.installRoot + installPathExt + "/lib/" + qremoteObject.libName ]
}
cpp.defines:['QREMOTEOBJECT_LIBRARY']
Group {
qbs.install: true
fileTagsFilter: qremoteObject.type
qbs.installDir: "/lib"
}
Group {
name: "headers"
files: [
"src/qobject_serial.h",
"src/qremoteobject.h",
"src/qremoteservice.h",
]
qbs.installDir: "/include/qtremoteobject/"
qbs.install: true
}
Group {
name: "private"
files: [
"src/private/qremoteobject_p.h",
"src/private/qremoteservice_p.h",
"src/private/qremoteobject_p.cpp",
]
qbs.installDir:"/include/qtremoteobject/private"
qbs.install: true
}
Group{
name:"source"
files:[
"src/qobject_serial.cpp",
"src/qremoteobject.cpp",
"src/qremoteservice.cpp",
]
qbs.install:false
}
}