-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (45 loc) · 745 Bytes
/
Copy pathbuild.gradle
File metadata and controls
46 lines (45 loc) · 745 Bytes
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
apply plugin: "cpp"
model {
platforms {
x64
}
buildTypes {
debug
release
}
repositories {
libs(PrebuiltLibraries) {
pegtl {
headers.srcDir "../PEGTL/include"
}
}
}
toolChains {
gcc(Gcc) {
path "/usr/local/gcc-9.2.0/bin"
}
}
binaries {
all {
cppCompiler.args "-std=c++17"
if (buildType == buildTypes.debug) {
cppCompiler.args "-g"
}
if (buildType == buildTypes.release) {
cppCompiler.args "-O"
}
}
}
components {
classify(NativeExecutableSpec) {
sources {
cpp {
lib library: "pegtl", linkage: "api"
source {
include "*.cc"
}
}
}
}
}
}