forked from StereoKit/StereoKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
350 lines (350 loc) · 13.5 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "Uwp",
"description": "Build for UWP",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "WindowsStore",
"CMAKE_SYSTEM_VERSION": "10.0",
"DYNAMIC_LOADER": "ON",
"CMAKE_CXX_FLAGS": "/MP"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "Uwp_Debug",
"description": "Debug build for UWP x64",
"inherits": "Uwp",
"hidden": true
},
{
"name": "Uwp_x64_Debug",
"description": "Debug build for UWP x64",
"inherits": "Uwp_Debug",
"hidden": false,
"architecture": "x64",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_x64"
},
{
"name": "Uwp_x86_Debug",
"description": "Debug build for UWP x86",
"inherits": "Uwp_Debug",
"hidden": false,
"architecture": "Win32",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_x86"
},
{
"name": "Uwp_Arm32_Debug",
"description": "Debug build for UWP ARM32",
"inherits": "Uwp_Debug",
"hidden": false,
"architecture": "ARM",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_ARM"
},
{
"name": "Uwp_Arm64_Debug",
"description": "Debug build for UWP ARM64",
"inherits": "Uwp_Debug",
"hidden": false,
"architecture": "ARM64",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_ARM64"
},
{
"name": "Uwp_Release",
"description": "Release build for UWP x64",
"inherits": "Uwp",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "Uwp_x64_Release",
"description": "Release build for UWP x64",
"inherits": "Uwp_Release",
"hidden": false,
"architecture": "x64",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_x64"
},
{
"name": "Uwp_x64_Release_Fast",
"inherits": "Uwp_x64_Release",
"description": "Fast build for UWP x64",
"hidden": false,
"cacheVariables": {
"SK_PHYSICS": "Off"
}
},
{
"name": "Uwp_x86_Release",
"description": "Release build for UWP x86",
"inherits": "Uwp_Release",
"hidden": false,
"architecture": "Win32",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_x86"
},
{
"name": "Uwp_Arm32_Release",
"description": "Release build for UWP ARM32",
"inherits": "Uwp_Release",
"hidden": false,
"architecture": "ARM",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_ARM"
},
{
"name": "Uwp_Arm64_Release",
"description": "Release build for UWP ARM64",
"inherits": "Uwp_Release",
"hidden": false,
"architecture": "ARM64",
"binaryDir": "${sourceDir}/bin/intermediate/UWP_ARM64"
},
{
"name": "Win32_x64_Release",
"description": "Release build for Win32 x64",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Win32_x64"
},
{
"name": "Win32_x64_Release_Fast",
"description": "Fast build for Win32 x64",
"hidden": false,
"inherits": "Win32_x64_Release",
"cacheVariables": {
"SK_PHYSICS": "Off"
}
},
{
"name": "Win32_x64_Debug",
"description": "Debug build for Win32 x64",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Win32_x64"
},
{
"name": "Win32_Arm64_Debug",
"description": "Debug build for Win32 Arm64",
"hidden": false,
"architecture": "ARM64",
"binaryDir": "${sourceDir}/bin/intermediate/Win32_Arm64"
},
{
"name": "Win32_Arm64_Release",
"description": "Release build for Win32 Arm64",
"hidden": false,
"architecture": "ARM64",
"binaryDir": "${sourceDir}/bin/intermediate/Win32_Arm64"
},
{
"name": "Linux",
"description": "Build for Linux",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Linux",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_LINKER": "lld",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_MODULE_LINKER_FLAGS": "-fuse-ld=lld"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "Linux_x64_Release",
"description": "Release build for Linux x64",
"hidden": false,
"inherits": "Linux",
"binaryDir": "${sourceDir}/bin/intermediate/Linux_x64_Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "Linux_x64_Release_Fast",
"description": "Fast build for Linux x64",
"hidden": false,
"inherits": "Linux_x64_Release",
"cacheVariables": {
"SK_PHYSICS": "Off"
}
},
{
"name": "Linux_x64_Debug",
"description": "Debug build for Linux x64",
"hidden": false,
"inherits": "Linux",
"binaryDir": "${sourceDir}/bin/intermediate/Linux_x64_Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "Linux_Arm64_Release",
"description": "Release build for Linux Arm64",
"hidden": false,
"inherits": "Linux",
"binaryDir": "${sourceDir}/bin/intermediate/Linux_ARM64_Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_AR": "/usr/bin/aarch64-linux-gnu-ar",
"CMAKE_LINKER": "/usr/bin/aarch64-linux-gnu-ld",
"CMAKE_OBJCOPY": "/usr/bin/aarch64-linux-gnu-objcopy",
"CMAKE_RANLIB": "/usr/bin/aarch64-linux-gnu-ranlib",
"CMAKE_SIZE": "/usr/bin/aarch64-linux-gnu-size",
"CMAKE_STRIP": "/usr/bin/aarch64-linux-gnu-strip",
"CMAKE_C_COMPILER": "aarch64-linux-gnu-gcc",
"CMAKE_CXX_COMPILER": "aarch64-linux-gnu-g++",
"CMAKE_SYSTEM_PROCESSOR": "arm64",
"CMAKE_EXE_LINKER_FLAGS": null,
"CMAKE_SHARED_LINKER_FLAGS": null,
"CMAKE_MODULE_LINKER_FLAGS": null
}
},
{
"name": "Linux_Arm64_Debug",
"description": "Debug build for Linux Arm64",
"hidden": false,
"inherits": "Linux",
"binaryDir": "${sourceDir}/bin/intermediate/Linux_Arm64_Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_LINKER": "aarch64-linux-gnu-ld",
"CMAKE_OBJCOPY": "aarch64-linux-gnu-objcopy",
"CMAKE_RANLIB": "aarch64-linux-gnu-ranlib",
"CMAKE_SIZE": "aarch64-linux-gnu-size",
"CMAKE_STRIP": "aarch64-linux-gnu-strip",
"CMAKE_C_COMPILER": "aarch64-linux-gnu-gcc",
"CMAKE_CXX_COMPILER": "aarch64-linux-gnu-g++",
"CMAKE_SYSTEM_PROCESSOR": "arm64"
}
},
{
"name": "Android",
"description": "Build for Android",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Android",
"CMAKE_ANDROID_NDK": "$env{NDK}",
"ANDROID_PLATFORM": "android-32",
"CMAKE_SYSTEM_VERSION": "32",
"DYNAMIC_LOADER": "ON",
"SK_DYNAMIC_OPENXR": "ON"
}
},
{
"name": "Android_Arm64_Debug",
"description": "Debug build for Android ARM64",
"inherits": "Android",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Android_ARM64_Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ANDROID_ABI": "arm64-v8a",
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"SK_DYNAMIC_OPENXR": "ON"
}
},
{
"name": "Android_Arm64_Release",
"description": "Release build for Android ARM64",
"inherits": "Android",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Android_ARM64_Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ANDROID_ABI": "arm64-v8a",
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"SK_DYNAMIC_OPENXR": "ON"
}
},
{
"name": "Android_Arm64_Release_Fast",
"description": "Fast build for Android ARM64, used for CI compile verification",
"inherits": "Android_Arm64_Release",
"hidden": false,
"cacheVariables": {
"SK_PHYSICS": "Off"
}
},
{
"name": "Android_x64_Release",
"description": "Release build for Android x64",
"inherits": "Android",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Android_x64_Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ANDROID_ABI": "x86_64",
"CMAKE_ANDROID_ARCH_ABI": "x86_64",
"SK_DYNAMIC_OPENXR": "ON"
}
},
{
"name": "Android_x64_Debug",
"description": "Debug build for Android x64",
"inherits": "Android",
"hidden": false,
"binaryDir": "${sourceDir}/bin/intermediate/Android_x64_Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ANDROID_ABI": "x86_64",
"CMAKE_ANDROID_ARCH_ABI": "x86_64",
"SK_DYNAMIC_OPENXR": "ON"
}
},
{
"name": "Web_Release",
"description": "Build for Web",
"binaryDir": "${sourceDir}/bin/intermediate/cmake/Web_Release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"CMAKE_CROSSCOMPILING_EMULATOR": "$env{EMSDK_NODE}"
}
}
],
"buildPresets": [
{ "name":"Uwp_x64_Debug", "configuration":"Debug", "configurePreset":"Uwp_x64_Debug", "jobs":24 },
{ "name":"Uwp_x64_Release", "configuration":"Release", "configurePreset":"Uwp_x64_Release", "jobs":24 },
{ "name":"Uwp_x64_Release_Fast", "configuration":"Release", "configurePreset":"Uwp_x64_Release_Fast", "jobs":24 },
{ "name":"Uwp_Arm32_Debug", "configuration":"Debug", "configurePreset":"Uwp_Arm32_Debug", "jobs":24 },
{ "name":"Uwp_Arm32_Release", "configuration":"Release", "configurePreset":"Uwp_Arm32_Release", "jobs":24 },
{ "name":"Uwp_Arm64_Debug", "configuration":"Debug", "configurePreset":"Uwp_Arm64_Debug", "jobs":24 },
{ "name":"Uwp_Arm64_Release", "configuration":"Release", "configurePreset":"Uwp_Arm64_Release", "jobs":24 },
{ "name":"Win32_x64_Debug", "configuration":"Debug", "configurePreset":"Win32_x64_Debug", "jobs":24 },
{ "name":"Win32_x64_Release", "configuration":"Release", "configurePreset":"Win32_x64_Release", "jobs":24 },
{ "name":"Win32_x64_Release_Fast", "configuration":"Release", "configurePreset":"Win32_x64_Release_Fast", "jobs":24 },
{ "name":"Win32_Arm64_Debug", "configuration":"Debug", "configurePreset":"Win32_Arm64_Debug", "jobs":24 },
{ "name":"Win32_Arm64_Release", "configuration":"Release", "configurePreset":"Win32_Arm64_Release", "jobs":24 },
{ "name":"Android_Arm64_Debug", "configuration":"Debug", "configurePreset":"Android_Arm64_Debug", "jobs":24 },
{ "name":"Android_Arm64_Release", "configuration":"Release", "configurePreset":"Android_Arm64_Release", "jobs":24 },
{ "name":"Android_Arm64_Release_Fast", "configuration":"Release", "configurePreset":"Android_Arm64_Release_Fast", "jobs":24 },
{ "name":"Android_x64_Release", "configuration":"Release", "configurePreset":"Android_x64_Release", "jobs":24 },
{ "name":"Android_x64_Debug", "configuration":"Debug", "configurePreset":"Android_x64_Debug", "jobs":24 },
{ "name":"Linux_x64_Debug", "configuration":"Debug", "configurePreset":"Linux_x64_Debug", "jobs":24 },
{ "name":"Linux_x64_Release", "configuration":"Release", "configurePreset":"Linux_x64_Release", "jobs":24 },
{ "name":"Linux_x64_Release_Fast", "configuration":"Release", "configurePreset":"Linux_x64_Release_Fast", "jobs":24 },
{ "name":"Linux_Arm64_Debug", "configuration":"Debug", "configurePreset":"Linux_Arm64_Debug", "jobs":24 },
{ "name":"Linux_Arm64_Release", "configuration":"Release", "configurePreset":"Linux_Arm64_Release", "jobs":24 },
{ "name":"Web_Release", "configuration":"Release", "configurePreset":"Web_Release", "jobs":16 }
]
}