-
Notifications
You must be signed in to change notification settings - Fork 4
/
result.qbs
55 lines (48 loc) · 1.46 KB
/
result.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
import qbs
Project {
name: "Result17"
references: [
"thirdparty",
"src/result17.lib",
]
AutotestRunner {}
// note: if do not use this .qbs project you need a similar setup
Product {
name: "cpp17"
Export {
Depends { name: "cpp" }
cpp.cxxLanguageVersion: "c++17"
cpp.treatWarningsAsErrors: true
Properties {
condition: qbs.toolchain.contains('msvc')
cpp.cxxFlags: base.concat(
"/permissive-", "/Zc:__cplusplus", // best C++ compatibility
"/diagnostics:caret", // better errors
"/wd4068", // ignore unknown pragmas
"/D_ENABLE_EXTENDED_ALIGNED_STORAGE" // use real alignments
)
}
Properties {
condition: qbs.toolchain.contains('clang')
cpp.cxxFlags: base.concat(
"--pedantic", // best C++ compatibility
"-Wall", "-Wextra" // enable more warnings
)
cpp.cxxStandardLibrary: "libc++"
cpp.staticLibraries: ["c++", "c++abi"]
}
}
}
Product {
name: "[Extra Files]"
files: [
".clang-format",
".clang-tidy",
".editorconfig",
".gitignore",
".travis.yml",
"LICENSE",
"README.md",
]
}
}