This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakePresets.json
258 lines (258 loc) · 9.12 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"description": "base project for other configurations.",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"ARCH": "win64"
}
},
{
"name": "wasm32-unknown-emscripten-debug",
"displayName": "wasm32-unknown-emscripten",
"description": "Configure debug mode based on Emscripten",
"inherits": "base",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "wasm32-unknown-emscripten-release",
"displayName": "Win x64 Release",
"description": "Configure release mode based on Emscripten",
"inherits": "wasm32-unknown-emscripten-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "win-x64-debug",
"displayName": "Win x64 Debug",
"description": "Sets windows platform and debug build type for x64 arch",
"inherits": "base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "win-x64-release",
"displayName": "Win x64 Release",
"description": "Sets windows platform and release build type for x64 arch",
"inherits": "win-x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "base-android",
"hidden": true,
"inherits": "base",
"environment": {
"ANDROID_NDK_HOME": "$env{NDK}",
"ANDROID_NDK": "$env{NDK}",
"ANDROID_NATIVE_API_LEVEL": "24",
"ANDROID_PLATFORM": "android-24"
},
"cacheVariables": {
"ANDROID": true,
"CMAKE_TOOLCHAIN_FILE": "$env{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake",
"ANDROID_STL": "c++_shared",
"ANDROID_ABI": "arm64-v8a",
"CPU": "armv8",
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_SYSTEM_NAME": "Android"
}
},
{
"name": "android-arm64-debug",
"inherits": "base-android",
"displayName": "Android ARM64 v8a Debug",
"description": "Sets android platform and debug build type for arm64-v8a arch",
"architecture": {
"value": "arm64-v8a",
"strategy": "external"
},
"environment": {
"ANDROID_ABI": "arm64-v8a",
"CPU": "armv8",
"ARCH": "aarch64",
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"CMAKE_BUILD_TYPE": "Debug"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "android-arm64-release",
"displayName": "Android ARM64 v8a Release",
"description": "Sets android platform and release build type for arm64-v8a arch",
"inherits": "android-arm64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "android-arm-debug",
"inherits": "base-android",
"displayName": "Android ARM eabi v7a Debug",
"description": "Sets android platform and debug build type for armeabi-v7a arch",
"architecture": {
"value": "armeabi-v7a",
"strategy": "external"
},
"environment": {
"ANDROID_ABI": "armeabi-v7a",
"CPU": "arm",
"ARCH": "arm",
"CMAKE_ANDROID_ARCH_ABI": "armeabi-v7a",
"CMAKE_BUILD_TYPE": "Debug"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ANDROID_ABI": "armeabi-v7a",
"CMAKE_ANDROID_ARCH_ABI": "armeabi-v7a",
"ARCH": "arm",
"CPU": "arm"
}
},
{
"name": "android-arm-release",
"displayName": "Android ARM eabi v7a Release",
"description": "Sets android platform and release build type for armeabi-v7a arch",
"inherits": "android-arm-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "linux-x64-debug",
"displayName": "GCC x64 linux gnu debug",
"description": "Using compilers: C = /usr/bin/gcc, CXX = /usr/bin/g++",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-x64-release",
"displayName": "GCC x64 linux gnu release",
"inherits": "linux-x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "wasm32-unknown-emscripten-debug",
"displayName": "wasm32-unknown-emscripten-debug",
"description": "Build WebAssembly with Emscripten",
"configurePreset": "wasm32-unknown-emscripten-debug"
},
{
"name": "wasm32-unknown-emscripten-release",
"displayName": "wasm32-unknown-emscripten-release",
"description": "Build WebAssembly with Emscripten",
"configurePreset": "wasm32-unknown-emscripten-release"
},
{
"name": "win-x64-release",
"displayName": "Win x64 Release",
"description": "Sets windows platform and debug build type for x64 arch in release mode",
"configurePreset": "win-x64-release"
},
{
"name": "win-x64-debug",
"displayName": "Win x64 Debug",
"description": "Sets windows platform and debug build type for x64 arch in debug mode",
"configurePreset": "win-x64-debug"
},
{
"name": "android-arm64-debug",
"displayName": "Android ARM64 v8a Debug",
"description": "Build Android",
"configurePreset": "android-arm64-debug"
},
{
"name": "android-arm64-release",
"displayName": "Android ARM64 v8a Release",
"description": "Build Android",
"configurePreset": "android-arm64-release"
},
{
"name": "android-arm-debug",
"displayName": "Android ARM eabi v7a Debug",
"description": "Build Android",
"configurePreset": "android-arm-debug"
},
{
"name": "android-arm-release",
"displayName": "Android ARM eabi v7a Release",
"description": "Build Android",
"configurePreset": "android-arm-release"
},
{
"name": "linux-x64-debug",
"displayName": "Sets linux platform and debug build type for x64 arch in debug mode",
"description": "linux x64 Debug",
"configurePreset": "linux-x64-debug"
},
{
"name": "linux-x64-release",
"displayName": "Sets linux platform and release build type for x64 arch in release mode",
"description": "linux x64 Release",
"configurePreset": "linux-x64-release"
},
{
"name": "wasm",
"description": "",
"displayName": "",
"configurePreset": "wasm32-unknown-emscripten-debug"
}
],
"testPresets": [
{
"name": "base-tests",
"hidden": true,
"output": {
"outputOnFailure": true
}
},
{
"name": "windows-tests",
"inherits": "base-tests",
"configurePreset": "win-x64-debug"
}
]
}