-
Notifications
You must be signed in to change notification settings - Fork 60
/
verdigris.qbs
71 lines (63 loc) · 2.24 KB
/
verdigris.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
import qbs
Project {
name: "Verdigris"
references: [
"tutorial",
"tests",
"benchmarks",
]
AutotestRunner {}
Product {
name: "Verdigris"
files: [
"src/wobjectcpp.h",
"src/wobjectdefs.h",
"src/wobjectimpl.h",
]
Export {
Depends { name: "cpp" }
Depends { name: "Qt.core" }
cpp.cxxLanguageVersion: "c++14"
cpp.includePaths: ['src']
Properties {
condition: qbs.toolchain.contains('msvc')
cpp.cxxFlags: base.concat(
"/permissive-", "/Zc:__cplusplus", "/Zc:externConstexpr", "/Zc:inline", "/Zc:preprocessor", "/Zc:throwingNew", // best C++ compatibility
"/diagnostics:caret" // better errors
)
}
Properties {
condition: qbs.toolchain.contains('clang')
cpp.cxxFlags: base.concat(
"--pedantic", // best C++ compatibility
"-Wall", "-Wextra", // enable more warnings
"-ftemplate-backtrace-limit=0", // do not cut template backtraces
"-Wno-gnu-zero-variadic-macro-arguments" // accept this extension
)
// note: use qbs build parameters if you need this!
// cpp.cxxStandardLibrary: "libc++"
// cpp.staticLibraries: ["c++", "c++abi"]
}
Properties {
condition: qbs.toolchain.contains('gcc')
cpp.cxxFlags: base.concat(
"--pedantic", // best C++ compatibility
"-Wall", "-Wextra", "-Wno-noexcept-type", // enable more warnings
"-ftemplate-backtrace-limit=0" // do not cut template backtraces
)
}
}
}
Product {
name: "[Extra Files]"
files: [
".appveyor.yml",
".github/workflows/clang.yml",
".github/workflows/gcc.yml",
".github/workflows/windows.yml",
"ChangeLog",
"LICENSE.LGPLv3",
"README.md",
]
}
}