-
Notifications
You must be signed in to change notification settings - Fork 392
Expand file tree
/
Copy pathCMakePresets.json
More file actions
373 lines (373 loc) · 12.7 KB
/
CMakePresets.json
File metadata and controls
373 lines (373 loc) · 12.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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "windows-tiles-sounds-x64-msvc",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Windows Tiles Sounds x64 MSVC",
"description": "Target Windows (64-bit) with the Visual Studio 2022 development environment.",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_PROJECT_INCLUDE_BEFORE": "${sourceDir}/build-scripts/${presetName}.cmake",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build-scripts/MSVC.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"DYNAMIC_LINKING": "False",
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo;Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CURSES": "False",
"LOCALIZE": "True",
"TILES": "True",
"SOUND": "True",
"TESTS": "True",
"JSON_FORMAT": "ON",
"CMAKE_INSTALL_MESSAGE": "NEVER"
}
},
{
"name": "linux-curses",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux Slim Build (Curses)",
"description": "Target Linux.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_AR": "llvm-ar",
"CMAKE_RANLIB": "llvm-ranlib",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "ON",
"TILES": "OFF",
"SOUND": "OFF",
"USE_PREFIX_DATA_DIR": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LINKER": "mold",
"USE_TRACY": "OFF"
}
},
{
"name": "linux-slim",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux Slim Build (Tiles, Sounds)",
"description": "Target Linux. Recommended for new contributors.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_AR": "llvm-ar",
"CMAKE_RANLIB": "llvm-ranlib",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"USE_PREFIX_DATA_DIR": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LINKER": "mold",
"USE_TRACY": "OFF"
}
},
{
"name": "osx-arm-slim",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "macOS ARM Slim Build (Tiles, Sounds)",
"description": "Target macOS Apple Silicon (arm64).",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_FIND_FRAMEWORK": "LAST",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"USE_PREFIX_DATA_DIR": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"USE_TRACY": "OFF",
"LUA_DOCS_ON_BUILD": "OFF"
}
},
{
"name": "linux-full",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"displayName": "Linux Full Build (Tiles, Sounds, Clang-Tidy, Tracy)",
"description": "Target Linux with clang-tidy plugin, and Tracy profiling support",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_AR": "llvm-ar",
"CMAKE_RANLIB": "llvm-ranlib",
"CMAKE_INSTALL_PREFIX": "$env{XDG_DATA_HOME}",
"JSON_FORMAT": "ON",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CATA_CLANG_TIDY_PLUGIN": "ON",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"LINKER": "mold",
"USE_XDG_DIR": "ON",
"USE_HOME_DIR": "OFF",
"USE_PREFIX_DATA_DIR": "OFF",
"USE_TRACY": "ON",
"TRACY_VERSION": "master",
"TRACY_ON_DEMAND": "ON",
"TRACY_ONLY_IPV4": "ON"
}
},
{
"name": "linux-cross-aarch64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"generator": "Ninja",
"environment": { "PKG_CONFIG_LIBDIR": "/usr/lib/aarch64-linux-gnu/pkgconfig" },
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Linux",
"CMAKE_SYSTEM_PROCESSOR": "aarch64",
"CMAKE_CXX_FLAGS": "--target=aarch64-linux-gnu --gcc-toolchain=/usr -I/usr/include/aarch64-linux-gnu",
"CMAKE_C_FLAGS": "--target=aarch64-linux-gnu --gcc-toolchain=/usr -I/usr/include/aarch64-linux-gnu",
"CMAKE_BUILD_WITH_INSTALL_RPATH": "ON",
"CMAKE_INSTALL_RPATH_USE_LINK_PATH": "ON",
"CMAKE_FIND_ROOT_PATH": "/usr/lib/aarch64-linux-gnu",
"CMAKE_FIND_ROOT_PATH_MODE_PACKAGE": "BOTH",
"CMAKE_FIND_ROOT_PATH_MODE_LIBRARY": "BOTH",
"CMAKE_FIND_ROOT_PATH_MODE_INCLUDE": "BOTH",
"CMAKE_LIBRARY_PATH": "/usr/lib/aarch64-linux-gnu",
"CMAKE_INCLUDE_PATH": "/usr/include/aarch64-linux-gnu"
}
},
{ "name": "linux-slim-cross-aarch64", "inherits": ["linux-slim", "linux-cross-aarch64"] },
{ "name": "linux-full-cross-aarch64", "inherits": ["linux-full", "linux-cross-aarch64"] },
{
"name": "dist-tiles",
"binaryDir": "${sourceDir}/build",
"displayName": "Linux Distribution (Tiles, Sounds, Languages)",
"description": "For creating portable distribution packages with tiles and sound.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CURSES": "OFF",
"TILES": "ON",
"SOUND": "ON",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"JSON_FORMAT": "ON",
"LINKER": "mold",
"USE_PREFIX_DATA_DIR": "OFF"
}
},
{
"name": "dist-curses",
"binaryDir": "${sourceDir}/build",
"displayName": "Linux Distribution (Curses, Languages)",
"description": "For creating portable distribution packages with curses.",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CURSES": "ON",
"TILES": "OFF",
"SOUND": "OFF",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"JSON_FORMAT": "ON",
"LINKER": "mold",
"USE_PREFIX_DATA_DIR": "OFF"
}
},
{
"name": "osx-arm-dist",
"inherits": ["osx-arm-slim"],
"binaryDir": "${sourceDir}/build",
"displayName": "macOS ARM Distribution (Tiles, Sounds, Languages)",
"description": "For creating portable macOS ARM distribution packages with tiles and sound.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"JSON_FORMAT": "ON"
}
},
{
"name": "lint",
"binaryDir": "${sourceDir}/build",
"displayName": "Lint and Format Only",
"description": "Minimal build for running formatting targets (astyle, style-json).",
"generator": "Ninja",
"cacheVariables": {
"CATA_CCACHE": "ON",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "Debug",
"CURSES": "OFF",
"TILES": "OFF",
"SOUND": "OFF",
"TESTS": "OFF",
"JSON_FORMAT": "ON"
}
},
{
"name": "ci-curses",
"binaryDir": "${sourceDir}/build",
"displayName": "CI Build (Curses)",
"description": "CI build configuration for curses with GCC.",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-14",
"CMAKE_CXX_COMPILER": "g++-14",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"TILES": "OFF",
"CURSES": "ON",
"SOUND": "OFF",
"LOCALIZE": "OFF",
"BACKTRACE": "ON",
"LIBBACKTRACE": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"JSON_FORMAT": "ON",
"TESTS": "ON",
"LINKER": "mold"
}
},
{
"name": "ci-tiles",
"binaryDir": "${sourceDir}/build",
"displayName": "CI Build (Tiles, Sound)",
"description": "CI build configuration for tiles and sound with GCC.",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-14",
"CMAKE_CXX_COMPILER": "g++-14",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"TILES": "ON",
"CURSES": "OFF",
"SOUND": "ON",
"LOCALIZE": "ON",
"LANGUAGES": "all",
"BACKTRACE": "ON",
"LIBBACKTRACE": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"JSON_FORMAT": "OFF",
"TESTS": "ON",
"LINKER": "mold"
}
}
],
"buildPresets": [
{
"name": "windows-msvc-debug",
"configurePreset": "windows-tiles-sounds-x64-msvc",
"configuration": "Debug",
"targets": ["cataclysm-bn-tiles", "cata_test-tiles", "json_formatter", "translations"],
"description": "Debug build for Windows with tiles and sounds using MSVC."
},
{
"name": "windows-msvc-release",
"configurePreset": "windows-tiles-sounds-x64-msvc",
"configuration": "Release",
"targets": ["cataclysm-bn-tiles", "cata_test-tiles", "json_formatter", "translations"],
"description": "Release build for Windows with tiles and sounds using MSVC."
},
{
"name": "windows-msvc-relwithdebinfo",
"configurePreset": "windows-tiles-sounds-x64-msvc",
"configuration": "RelWithDebInfo",
"targets": ["cataclysm-bn-tiles", "cata_test-tiles", "json_formatter", "translations"],
"description": "Release build with debug symbols for Windows with tiles and sounds using MSVC."
},
{
"name": "linux-curses",
"configurePreset": "linux-curses",
"description": "The minimal curses build preset for Linux."
},
{
"name": "linux-slim",
"configurePreset": "linux-slim",
"description": "The minimal build preset for Linux. Recommended for new contributors."
},
{
"name": "osx-arm-slim",
"configurePreset": "osx-arm-slim",
"description": "The minimal build preset for macOS Apple Silicon."
},
{
"name": "linux-full",
"configurePreset": "linux-full",
"description": "The canonical build preset for Linux. This is the one used by the devteam."
},
{
"name": "linux-slim-cross-aarch64",
"configurePreset": "linux-slim-cross-aarch64",
"description": "The minimal build preset for Linux aarch64."
},
{
"name": "linux-full-cross-aarch64",
"configurePreset": "linux-full-cross-aarch64",
"description": "The canonical build preset for Linux aarch64."
},
{
"name": "dist-tiles",
"configurePreset": "dist-tiles",
"targets": ["cataclysm-bn-tiles", "json_formatter", "translations"],
"description": "Build for tiles distribution."
},
{
"name": "dist-curses",
"configurePreset": "dist-curses",
"targets": ["cataclysm-bn", "json_formatter", "translations"],
"description": "Build for curses distribution."
},
{
"name": "osx-arm-dist",
"configurePreset": "osx-arm-dist",
"targets": ["cataclysm-bn-tiles", "json_formatter", "translations"],
"description": "Build for macOS ARM tiles distribution."
},
{
"name": "lint",
"configurePreset": "lint",
"targets": ["json_formatter"],
"description": "Build formatting tools only."
},
{
"name": "ci-curses",
"configurePreset": "ci-curses",
"targets": ["cataclysm-bn", "cata_test"],
"description": "CI build for curses."
},
{
"name": "ci-tiles",
"configurePreset": "ci-tiles",
"targets": ["cataclysm-bn-tiles", "cata_test-tiles"],
"description": "CI build for tiles and sound."
}
]
}