Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
347 lines (347 loc) · 10.2 KB
/
Copy pathCMakePresets.json
File metadata and controls
347 lines (347 loc) · 10.2 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
{
"version": 6,
"configurePresets": [
{
"name": "default",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "vcpkg",
"inherits": "default",
"displayName": "Configure with vcpkg",
"description": "Configure with vcpkg dependencies (recommended)",
"toolchainFile": "/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_MANIFEST_INSTALL": "ON",
"VCPKG_MANIFEST_MODE": "ON"
}
},
{
"name": "vcpkg-ssr",
"inherits": "default",
"displayName": "Configure with local SSR vcpkg",
"description": "Configure with locally cloned vcpkg for SSR pipeline",
"toolchainFile": "${sourceDir}/ssr_deps/vcpkg/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_MANIFEST_INSTALL": "ON",
"VCPKG_MANIFEST_MODE": "ON"
}
},
{
"name": "vcpkg-debug",
"inherits": "vcpkg",
"displayName": "vcpkg (Debug)",
"description": "Debug build with vcpkg dependencies",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "conan",
"inherits": "default",
"displayName": "Configure with Conan",
"description": "Configure with Conan dependencies (alternative)",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "conan_toolchain.cmake"
}
},
{
"name": "system",
"inherits": "default",
"displayName": "System dependencies",
"description": "Use system-installed dependencies only",
"cacheVariables": {
"BOLT_USE_SYSTEM_DEPS": "ON"
}
},
{
"name": "dev",
"inherits": "vcpkg-debug",
"displayName": "Development",
"description": "Development configuration with all features enabled",
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": "ON",
"BOLT_ENABLE_TESTS": "ON",
"BOLT_ENABLE_DOCS": "ON"
}
},
{
"name": "asan",
"inherits": "vcpkg-debug",
"displayName": "AddressSanitizer",
"description": "Debug build with AddressSanitizer for memory error detection",
"cacheVariables": {
"ENABLE_SANITIZER_ADDRESS": "ON"
}
},
{
"name": "lsan",
"inherits": "vcpkg-debug",
"displayName": "LeakSanitizer",
"description": "Debug build with LeakSanitizer for memory leak detection",
"cacheVariables": {
"ENABLE_SANITIZER_LEAK": "ON"
}
},
{
"name": "ubsan",
"inherits": "vcpkg-debug",
"displayName": "UndefinedBehaviorSanitizer",
"description": "Debug build with UndefinedBehaviorSanitizer",
"cacheVariables": {
"ENABLE_SANITIZER_UNDEFINED_BEHAVIOR": "ON"
}
},
{
"name": "tsan",
"inherits": "vcpkg-debug",
"displayName": "ThreadSanitizer",
"description": "Debug build with ThreadSanitizer for data race detection",
"cacheVariables": {
"ENABLE_SANITIZER_THREAD": "ON"
}
},
{
"name": "valgrind",
"inherits": "vcpkg-debug",
"displayName": "Valgrind",
"description": "Debug build configured for Valgrind testing",
"cacheVariables": {
"ENABLE_VALGRIND": "ON"
}
},
{
"name": "leak-detection",
"inherits": "vcpkg-debug",
"displayName": "Comprehensive Leak Detection",
"description": "Debug build with both AddressSanitizer and LeakSanitizer",
"cacheVariables": {
"ENABLE_SANITIZER_ADDRESS": "ON",
"ENABLE_SANITIZER_LEAK": "ON"
}
},
{
"name": "windows-vcpkg",
"inherits": "default",
"displayName": "Windows (vcpkg)",
"description": "Windows Release build using the VCPKG_ROOT vcpkg installation",
"binaryDir": "${sourceDir}/build/windows-vcpkg",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows",
"VCPKG_MANIFEST_INSTALL": "ON",
"VCPKG_MANIFEST_MODE": "ON"
}
},
{
"name": "linux-x64",
"inherits": "vcpkg-ssr",
"displayName": "Linux x64 (SSR)",
"description": "Linux x64 build with local SSR vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-linux"
}
},
{
"name": "windows-msvc-x64",
"inherits": "vcpkg-ssr",
"displayName": "Windows MSVC x64 (SSR)",
"description": "Windows MSVC x64 build with local SSR vcpkg",
"generator": "Visual Studio 17 2022",
"architecture": "x64",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows"
}
},
{
"name": "windows-mingw-x64",
"inherits": "vcpkg-ssr",
"displayName": "Windows MinGW x64 (SSR)",
"description": "Windows MinGW x64 build with local SSR vcpkg",
"generator": "MinGW Makefiles",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-mingw-static"
}
},
{
"name": "macos-x64",
"inherits": "vcpkg-ssr",
"displayName": "macOS Intel x64 (SSR)",
"description": "macOS Intel x64 build with local SSR vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-osx"
}
},
{
"name": "macos-arm64",
"inherits": "vcpkg-ssr",
"displayName": "macOS Apple Silicon ARM64 (SSR)",
"description": "macOS ARM64 build with local SSR vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-osx"
}
},
{
"name": "macos-universal",
"inherits": "vcpkg-ssr",
"displayName": "macOS Universal Binary (SSR)",
"description": "macOS Universal build with local SSR vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-osx",
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64"
}
}
],
"buildPresets": [
{
"name": "windows-vcpkg-release",
"configurePreset": "windows-vcpkg",
"displayName": "Build Windows Release (vcpkg)",
"description": "Release build of the main application targets on Windows",
"targets": ["bolt", "gui_main"]
},
{
"name": "vcpkg-release",
"configurePreset": "vcpkg",
"displayName": "Build Release",
"description": "Release build with vcpkg"
},
{
"name": "vcpkg-debug",
"configurePreset": "vcpkg-debug",
"displayName": "Build Debug",
"description": "Debug build with vcpkg"
},
{
"name": "conan-release",
"configurePreset": "conan",
"displayName": "Build with Conan",
"description": "Release build with Conan"
},
{
"name": "dev",
"configurePreset": "dev",
"displayName": "Development Build",
"description": "Development build with all features"
},
{
"name": "asan",
"configurePreset": "asan",
"displayName": "Build with AddressSanitizer",
"description": "Debug build with AddressSanitizer"
},
{
"name": "lsan",
"configurePreset": "lsan",
"displayName": "Build with LeakSanitizer",
"description": "Debug build with LeakSanitizer"
},
{
"name": "leak-detection",
"configurePreset": "leak-detection",
"displayName": "Build with Leak Detection",
"description": "Debug build with comprehensive leak detection"
},
{
"name": "linux-x64",
"configurePreset": "linux-x64",
"displayName": "Build Linux x64 (SSR)",
"description": "Build for Linux x64 with SSR vcpkg"
},
{
"name": "windows-msvc-x64",
"configurePreset": "windows-msvc-x64",
"displayName": "Build Windows MSVC x64 (SSR)",
"description": "Build for Windows MSVC x64 with SSR vcpkg"
},
{
"name": "windows-mingw-x64",
"configurePreset": "windows-mingw-x64",
"displayName": "Build Windows MinGW x64 (SSR)",
"description": "Build for Windows MinGW x64 with SSR vcpkg"
},
{
"name": "macos-x64",
"configurePreset": "macos-x64",
"displayName": "Build macOS x64 (SSR)",
"description": "Build for macOS Intel x64 with SSR vcpkg"
},
{
"name": "macos-arm64",
"configurePreset": "macos-arm64",
"displayName": "Build macOS ARM64 (SSR)",
"description": "Build for macOS Apple Silicon ARM64 with SSR vcpkg"
},
{
"name": "macos-universal",
"configurePreset": "macos-universal",
"displayName": "Build macOS Universal (SSR)",
"description": "Build for macOS Universal Binary with SSR vcpkg"
}
],
"testPresets": [
{
"name": "vcpkg-tests",
"configurePreset": "vcpkg-debug",
"displayName": "Run tests",
"description": "Run all tests with vcpkg dependencies"
},
{
"name": "asan-tests",
"configurePreset": "asan",
"displayName": "AddressSanitizer Tests",
"description": "Run tests with AddressSanitizer"
},
{
"name": "lsan-tests",
"configurePreset": "lsan",
"displayName": "LeakSanitizer Tests",
"description": "Run tests with LeakSanitizer"
},
{
"name": "leak-detection-tests",
"configurePreset": "leak-detection",
"displayName": "Leak Detection Tests",
"description": "Run tests with comprehensive leak detection"
},
{
"name": "valgrind-tests",
"configurePreset": "valgrind",
"displayName": "Valgrind Tests",
"description": "Run tests with Valgrind"
},
{
"name": "default",
"configurePreset": "linux-x64",
"displayName": "Default SSR Tests",
"description": "Default test configuration for SSR pipeline"
}
],
"packagePresets": [
{
"name": "windows-zip",
"configurePreset": "windows-vcpkg",
"displayName": "Windows ZIP package",
"description": "Portable ZIP archive with bolt and gui_main",
"generators": ["ZIP"]
},
{
"name": "windows-nsis",
"configurePreset": "windows-vcpkg",
"displayName": "Windows NSIS installer",
"description": "NSIS installer (requires NSIS/makensis on PATH)",
"generators": ["NSIS"]
}
]
}