-
Notifications
You must be signed in to change notification settings - Fork 0
/
RBuild.json
95 lines (95 loc) · 2.34 KB
/
RBuild.json
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env RBuild
{
"working_folder":"build/",
"src_folder":"",
"project_name":"RBuild",
"project_binary":"RBuild",
"compiler_all":"gcc",
"linker":"gcc",
"targets":{
"windows_common":{
"linker_libs":[
"-lrpcrt4",
],
"include_only":true,
},
"linux_common":{
"linker_libs":[
"-Wl,--whole-archive",
"-lpthread",
"-Wl,--no-whole-archive",
],
"include_only":true,
},
"common":{
"include":[
{
"type":"switch",
"condition":"platform",
"cases":{
"windows":"windows_common",
"linux":"linux_common",
},
},
],
"sources":[
{
"name":"src",
"type":"exclude",
"exclude_list":[
],
}
],
"flags_c_cpp":[
"-Iinclude",
"-Wshadow",
"-Winit-self",
"-Wundef",
"-Wunreachable-code",
"-Wmissing-declarations",
"-Wmain",
"-Wall",
"-Werror=return-type",
],
"flags_c":[
"-std=c2x",
],
"flags_cpp":[
"-std=c++20",
"-fexceptions",
"-Wnon-virtual-dtor",
"-Wpessimizing-move",
"-Wold-style-cast",
"-Wredundant-move",
"-Werror=suggest-override",
],
"include_only":true,
},
"release":{
"include":[
"common"
],
"defines_c_cpp":[
"NDEBUG"
],
"flags_c_cpp":[
"-O2"
],
"linker_flags":[
"-s"
],
},
"debug":{
"include":[
"common"
],
"defines_c_cpp":[
"DEBUG"
],
"flags_c_cpp":[
"-g"
],
},
},
"targets_default":"release",
}