Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
392 lines (390 loc) · 11.7 KB
/
Copy pathCMakePresets.json
File metadata and controls
392 lines (390 loc) · 11.7 KB
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "gl",
"inherits": "base",
"displayName": "OpenGL (start here)",
"description": "Portable OpenGL 3.3 backend, with examples, tests and the editor. The configuration to use if you are unsure."
},
{
"name": "gl-debug",
"inherits": "gl",
"displayName": "OpenGL, Debug",
"description": "As 'gl', built with debug info and no optimisation.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "vulkan",
"inherits": "base",
"displayName": "Vulkan deferred backend",
"description": "Deferred Vulkan renderer: raster G-buffer with ray-traced AO, GI, reflections and shadows. Needs the Vulkan SDK on PATH, or the vcpkg 'vulkan' feature.",
"cacheVariables": {
"THREEPP_WITH_VULKAN": "ON"
}
},
{
"name": "vulkan-aaa",
"inherits": "vulkan",
"displayName": "Vulkan + FSR 3.1 + DLSS",
"description": "As 'vulkan', plus the AMD FidelityFX FSR 3.1 and NVIDIA DLSS temporal upscalers. Windows only; both SDKs are fetched at configure time (the DLSS archive is large).",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"THREEPP_WITH_FSR": "ON",
"THREEPP_WITH_DLSS": "ON"
}
},
{
"name": "python",
"inherits": "base",
"displayName": "Python bindings",
"description": "Builds the pybind11 'threepp' module (GL backend). Add -DPython_EXECUTABLE=<path> to select an interpreter; build the 'threepp_py' target.",
"cacheVariables": {
"THREEPP_WITH_PYTHON": "ON",
"THREEPP_BUILD_EXAMPLES": "OFF",
"THREEPP_BUILD_TESTS": "OFF",
"PYBIND11_FINDPYTHON": "ON"
}
},
{
"name": "no-glfw",
"inherits": "base",
"displayName": "Build check: no GLFW frontend",
"description": "The library without the GLFW frontend. Canvas is the only thing dropped, but Canvas is what creates the context — so this configuration cannot render at all, offscreen or otherwise. It exists to keep the windowing-independent code compiling, and runs the tests that need no window.",
"cacheVariables": {
"THREEPP_WITH_GLFW": "OFF",
"THREEPP_BUILD_EXAMPLES": "OFF"
}
},
{
"name": "wasm",
"inherits": "base",
"displayName": "Emscripten / WebGL2",
"description": "Web build of the examples. Requires an activated emsdk (EMSDK must be set in the environment).",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
"THREEPP_BUILD_TESTS": "OFF"
}
},
{
"name": "ci-base",
"hidden": true,
"inherits": "base",
"generator": "Ninja"
},
{
"name": "ci-linux",
"inherits": [
"gl",
"ci-base"
],
"displayName": "CI: Linux, GL, system GLFW",
"cacheVariables": {
"THREEPP_USE_EXTERNAL_GLFW": "ON"
}
},
{
"name": "ci-linux-asan",
"inherits": "ci-linux",
"displayName": "CI: Linux, AddressSanitizer + UndefinedBehaviorSanitizer",
"description": "Examples are excluded: they are compiled but never run, so instrumenting them buys nothing and they dominate the build time.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"THREEPP_BUILD_EXAMPLES": "OFF",
"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=undefined -g",
"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=undefined -g",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined"
}
},
{
"name": "ci-linux-no-glfw",
"inherits": [
"no-glfw",
"ci-base"
],
"displayName": "CI: Linux, build check without the GLFW frontend"
},
{
"name": "ci-linux-vulkan",
"inherits": [
"vulkan",
"ci-base"
],
"displayName": "CI: Linux, Vulkan compile check",
"description": "Library only. The runners have no GPU, but the backend and its GLSL shaders still compile: the loader links without a device and glslangValidator needs none.",
"cacheVariables": {
"THREEPP_BUILD_EXAMPLES": "OFF",
"THREEPP_BUILD_TESTS": "OFF",
"VMA_INCLUDE_DIR": "${sourceDir}/third_party/vma"
}
},
{
"name": "ci-linux-vulkan-lavapipe",
"inherits": "ci-linux-vulkan",
"displayName": "CI: Linux, Vulkan RUNTIME tests on lavapipe",
"description": "As 'ci-linux-vulkan' but with the tests built, so the Vulkan backend can be RUN — on Mesa's lavapipe software rasteriser, which needs no GPU. Only VulkanValidation_test is a cross-hardware gate: it asserts zero validation errors, which any conformant driver must agree on. The pixel goldens are references captured on one GPU and cannot pass here, so the job selects tests by name rather than running everything this preset builds.",
"cacheVariables": {
"THREEPP_BUILD_TESTS": "ON"
}
},
{
"name": "ci-linux-physx",
"inherits": "ci-linux",
"displayName": "CI: Linux, GL + PhysX via vcpkg",
"description": "What the Linux CI job configures. As 'ci-linux', plus the vcpkg 'physx' feature, which is what makes CMake build the PhysX-backed test executables (sensors, play sessions, joints, vehicles, conveyors) and the PhysX example directories instead of skipping them. Needs VCPKG_ROOT in the environment — 'ci-linux' remains the vcpkg-free configuration, and the sanitizer preset still inherits that one. The feature pulls in v-hacd too, which is what enables EditorConvexDecomp_test.",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_MANIFEST_FEATURES": "physx;external-glfw"
}
},
{
"name": "ci-windows",
"inherits": [
"gl",
"ci-base"
],
"displayName": "CI: Windows, GL, warnings as errors",
"description": "Ninja needs cl.exe on PATH — run from a developer command prompt.",
"cacheVariables": {
"THREEPP_TREAT_WARNINGS_AS_ERRORS": "ON"
}
},
{
"name": "ci-mingw",
"inherits": [
"gl",
"ci-base"
],
"displayName": "CI: Windows, MinGW-w64 GCC, shared library, Debug",
"description": "threepp as a DLL built by GCC, the way a CLion or MSYS2 user who fetches it gets it. Debug on purpose: GCC gives every inline function its own .debug_frame section there, which is what pushed single objects past the 32,767-section COFF limit and broke the link. The tests link against the DLL, so they also check that programs using it build and run. Run from a MinGW shell with gcc, cmake and ninja on PATH.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_SHARED_LIBS": "ON",
"THREEPP_BUILD_EXAMPLES": "OFF",
"THREEPP_BUILD_EDITOR": "OFF"
}
},
{
"name": "ci-macos",
"inherits": "ci-base",
"displayName": "CI: macOS, library compile check",
"cacheVariables": {
"THREEPP_BUILD_EXAMPLES": "OFF",
"THREEPP_BUILD_TESTS": "OFF"
}
},
{
"name": "ci-wasm",
"inherits": [
"wasm",
"ci-base"
],
"displayName": "CI: Emscripten / WebGL2"
},
{
"name": "ci-python",
"inherits": [
"python",
"ci-base"
],
"displayName": "CI: Python bindings, system GLFW",
"cacheVariables": {
"THREEPP_USE_EXTERNAL_GLFW": "ON"
}
}
],
"buildPresets": [
{
"name": "gl",
"configurePreset": "gl",
"configuration": "Release"
},
{
"name": "gl-debug",
"configurePreset": "gl-debug",
"configuration": "Debug"
},
{
"name": "vulkan",
"configurePreset": "vulkan",
"configuration": "Release"
},
{
"name": "vulkan-aaa",
"configurePreset": "vulkan-aaa",
"configuration": "Release"
},
{
"name": "python",
"configurePreset": "python",
"configuration": "Release",
"targets": [
"threepp_py"
]
},
{
"name": "no-glfw",
"configurePreset": "no-glfw",
"configuration": "Release"
},
{
"name": "wasm",
"configurePreset": "wasm",
"configuration": "Release"
},
{
"name": "ci-linux",
"configurePreset": "ci-linux",
"configuration": "Release"
},
{
"name": "ci-linux-asan",
"configurePreset": "ci-linux-asan",
"configuration": "RelWithDebInfo"
},
{
"name": "ci-linux-no-glfw",
"configurePreset": "ci-linux-no-glfw",
"configuration": "Release"
},
{
"name": "ci-linux-vulkan",
"configurePreset": "ci-linux-vulkan",
"configuration": "Release"
},
{
"name": "ci-linux-vulkan-lavapipe",
"configurePreset": "ci-linux-vulkan-lavapipe",
"configuration": "Release",
"targets": [
"VulkanValidation_test",
"VulkanCameraModel_test"
]
},
{
"name": "ci-linux-physx",
"configurePreset": "ci-linux-physx",
"configuration": "Release"
},
{
"name": "ci-windows",
"configurePreset": "ci-windows",
"configuration": "Release"
},
{
"name": "ci-mingw",
"configurePreset": "ci-mingw",
"configuration": "Debug"
},
{
"name": "ci-macos",
"configurePreset": "ci-macos",
"configuration": "Release"
},
{
"name": "ci-wasm",
"configurePreset": "ci-wasm",
"configuration": "Release"
},
{
"name": "ci-python",
"configurePreset": "ci-python",
"configuration": "Release",
"jobs": 2,
"targets": [
"threepp_py"
]
}
],
"testPresets": [
{
"name": "base",
"hidden": true,
"configurePreset": "gl",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error"
}
},
{
"name": "gl",
"inherits": "base",
"configurePreset": "gl",
"configuration": "Release"
},
{
"name": "gl-debug",
"inherits": "base",
"configurePreset": "gl-debug",
"configuration": "Debug"
},
{
"name": "ci-linux",
"inherits": "base",
"configurePreset": "ci-linux",
"configuration": "Release"
},
{
"name": "ci-linux-asan",
"inherits": "base",
"configurePreset": "ci-linux-asan",
"configuration": "RelWithDebInfo"
},
{
"name": "ci-linux-no-glfw",
"inherits": "base",
"configurePreset": "ci-linux-no-glfw",
"configuration": "Release"
},
{
"name": "ci-linux-vulkan-lavapipe",
"inherits": "base",
"configurePreset": "ci-linux-vulkan-lavapipe",
"configuration": "Release",
"filter": {
"include": {
"name": "^(VulkanValidation_nort|VulkanCameraModel)_test$"
}
}
},
{
"name": "ci-linux-physx",
"inherits": "base",
"configurePreset": "ci-linux-physx",
"configuration": "Release"
},
{
"name": "ci-windows",
"inherits": "base",
"configurePreset": "ci-windows",
"configuration": "Release"
},
{
"name": "ci-mingw",
"inherits": "base",
"configurePreset": "ci-mingw",
"configuration": "Debug"
}
]
}