-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
230 lines (230 loc) · 6.64 KB
/
CMakePresets.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 13,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
}
}
},
{
"name": "linux",
"inherits": "default",
"displayName": "Linux",
"description": "Default build for Linux (uses netlink)",
"cacheVariables": {
"BUILD_MNL_LIB": true,
"BUILD_NETLINK_LIB": true,
"USE_NETLINK_SERVICE": true,
"USE_UCI_SERVICE": false,
"USE_GENERIC_IP_SERVICE": false,
"USE_RADIUS_SERVICE": true,
"BUILD_HOSTAPD": true,
"USE_CRYPTO_SERVICE": false,
"BUILD_OPENSSL_LIB": false
}
},
{
"name": "linux-with-crypt",
"inherits": "linux",
"displayName": "Linux (with crypto service)",
"description": "Build for Linux using encrypted crypto service",
"cacheVariables": {
"USE_CRYPTO_SERVICE": true,
"BUILD_OPENSSL_LIB": true
}
},
{
"name": "linux-with-example-middlewares",
"inherits": "linux",
"displayName": "Linux (with example middlewares)",
"description": "Build for Linux all example capture middlewares",
"cacheVariables": {
"USE_CLEANER_MIDDLEWARE": true,
"USE_HEADER_MIDDLEWARE": true,
"USE_PCAP_MIDDLEWARE": true
}
},
{
"name": "clang",
"inherits": "linux",
"displayName": "Clang",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/clang.cmake"
},
{
"name": "openwrt",
"inherits": "default",
"displayName": "OpenWRT",
"description": "Compile for an OpenWRT device",
"cacheVariables": {
"BUILD_MNL_LIB": false,
"BUILD_NETLINK_LIB": false,
"USE_NETLINK_SERVICE": false,
"USE_UCI_SERVICE": true,
"USE_GENERIC_IP_SERVICE": false,
"USE_RADIUS_SERVICE": true,
"USE_MDNS_SERVICE": true,
"BUILD_HOSTAPD": false,
"USE_CRYPTO_SERVICE": false,
"BUILD_OPENSSL_LIB": false
}
},
{
"name": "openwrt-with-header",
"inherits": "openwrt",
"displayName": "OpenWRT (with header middleware)",
"description": "OpenWRT (with header middleware)",
"cacheVariables": {
"USE_CLEANER_MIDDLEWARE": false,
"USE_HEADER_MIDDLEWARE": true,
"USE_PCAP_MIDDLEWARE": false
}
},
{
"name": "openwrt-sdk",
"inherits": "openwrt",
"hidden": true,
"displayName": "CMake config for cross-compiling OpenWRT with the SDK",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "openwrt-19.07.10/mvebu/cortexa9-with-header",
"inherits": "openwrt-with-header",
"displayName": "OpenWRT 19.07.10 mvebu/cortexa9 (with header middleware)",
"description": "Cross-compile for OpenWRT 19.07.10 mvebu/cortexa9 (with header middleware)",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/openwrt-19.07.10-mvebu-cortexa9.cmake",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "openwrt-19.07.10/mvebu/cortexa9",
"inherits": "openwrt-sdk",
"displayName": "OpenWRT 19.07.10 mvebu/cortexa9",
"description": "Cross-compile for OpenWRT 19.07.10 mvebu/cortexa9 (aka Turris Omnia)",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/openwrt-19.07.10-mvebu-cortexa9.cmake"
},
{
"name": "openwrt-19.07.10/ath79/generic",
"inherits": "openwrt-sdk",
"displayName": "OpenWRT 19.07.10 ath79/generic",
"description": "Cross-compile for OpenWRT 19.07.10 ath79/generic",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/openwrt-19.07.10-ath79-generic.cmake"
},
{
"name": "openwrt-21.02.3/ath79/generic",
"inherits": "openwrt-sdk",
"displayName": "OpenWRT 21.02.3 ath79/generic",
"description": "Cross-compile for OpenWRT 21.02.3 ath79/generic",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/openwrt-21.02.3-ath79-generic.cmake"
},
{
"name": "openwrt-21.02.1/bcm27xx/bcm2710",
"inherits": "openwrt-sdk",
"displayName": "OpenWRT 21.02.1 bcm27xx/bcm2710",
"description": "Cross-compile for OpenWRT 21.02.1 bcm27xx/bcm2710 (aka Raspberry Pi 3)",
"toolchainFile": "${sourceDir}/CMakeModules/CMakeToolchains/openwrt-21.02.1-bcm27xx-bcm2710.cmake"
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "linux",
"configurePreset": "linux"
},
{
"name": "linux-with-crypt",
"configurePreset": "linux-with-crypt"
},
{
"name": "linux-with-example-middlewares",
"configurePreset": "linux-with-example-middlewares"
},
{
"name": "clang",
"configurePreset": "clang"
},
{
"name": "openwrt",
"configurePreset": "openwrt"
},
{
"name": "openwrt-with-header",
"configurePreset": "openwrt-with-header"
},
{
"name": "openwrt-19.07.10/mvebu/cortexa9",
"configurePreset": "openwrt-19.07.10/mvebu/cortexa9"
},
{
"name": "openwrt-19.07.10/mvebu/cortexa9-with-header",
"configurePreset": "openwrt-19.07.10/mvebu/cortexa9-with-header"
},
{
"name": "openwrt-19.07.10/ath79/generic",
"configurePreset": "openwrt-19.07.10/ath79/generic"
},
{
"name": "openwrt-21.02.3/ath79/generic",
"configurePreset": "openwrt-21.02.3/ath79/generic"
},
{
"name": "openwrt-21.02.1/bcm27xx/bcm2710",
"configurePreset": "openwrt-21.02.1/bcm27xx/bcm2710"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "linux",
"configurePreset": "linux"
},
{
"name": "linux-with-example-middlewares",
"configurePreset": "linux-with-example-middlewares"
},
{
"name": "linux-with-crypt",
"configurePreset": "linux-with-crypt"
},
{
"name": "openwrt",
"configurePreset": "openwrt",
"environment": {
"LD_LIBRARY_PATH": "${sourceDir}/build/${presetName}/lib/ubox/lib"
}
},
{
"name": "openwrt-with-header",
"configurePreset": "openwrt-with-header",
"inherits": "openwrt"
},
{
"name": "clang",
"configurePreset": "clang"
}
]
}