-
Notifications
You must be signed in to change notification settings - Fork 5
/
dwarfstack.qbs
52 lines (49 loc) · 1.03 KB
/
dwarfstack.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
import qbs
DynamicLibrary {
name: "dwarfstack"
condition: qbs.toolchain && qbs.toolchain.contains("gcc")
targetName: "dwarfstack" + (qbs.architecture === "x86_64" ? '64' : '32')
Depends { name: "cpp" }
Export {
Depends { name: "cpp" }
cpp.includePaths: "include"
}
Group {
fileTagsFilter: product.type
qbs.install: true
}
files: [
"src/*.c",
"mgwhelp/dwarf_pe.c",
]
cpp.windowsApiCharacterSet: "mbcs"
cpp.cFlags: [
"-Wno-unused",
"-Wno-pointer-to-int-cast",
"-Wno-int-to-pointer-cast",
]
cpp.defines: [
"DWST_SHARED",
"DW_TSHASHTYPE=uintptr_t",
"LIBDWARF_STATIC",
]
cpp.dynamicLibraries: [
"dbghelp",
"gdi32",
"stdc++",
]
cpp.includePaths: [
"include",
"mgwhelp",
"libdwarf",
"zlib",
]
Group {
name: "libdwarf"
files: "libdwarf/*.c"
}
Group {
name: "zlib"
files: "zlib/*.c"
}
}