-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
280 lines (280 loc) · 9.37 KB
/
CMakePresets.json
File metadata and controls
280 lines (280 loc) · 9.37 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_SUPPRESS_DEVELOPER_WARNINGS": "ON",
"THEMIS_ENABLE_COMPILER_CACHE": "ON",
"THEMIS_COMPILER_CACHE_PROGRAM": "",
"THEMIS_BUILD_TESTS": "ON",
"THEMIS_BUILD_BENCHMARKS": "OFF",
"THEMIS_BUILD_CHIMERA": "OFF",
"THEMIS_ENABLE_TRACING": "OFF",
"THEMIS_ENABLE_ASAN": "OFF",
"THEMIS_STRICT_BUILD": "OFF"
}
},
{
"name": "vcpkg-base",
"hidden": true,
"inherits": "base",
"environment": {
"VCPKG_POWERSHELL_PATH": "$env{LOCALAPPDATA}/Microsoft/WindowsApps/pwsh.exe",
"Z_VCPKG_POWERSHELL_PATH": "$env{LOCALAPPDATA}/Microsoft/WindowsApps/pwsh.exe",
"Z_VCPKG_PWSH_PATH": "$env{LOCALAPPDATA}/Microsoft/WindowsApps/pwsh.exe"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows",
"VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkg_installed"
}
},
{
"name": "windows-base",
"hidden": true,
"inherits": "vcpkg-base",
"environment": {
"PATH": "$penv{PATH};C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64;C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64",
"INCLUDE": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.44.35207/include;C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/ucrt;C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared;C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um",
"LIB": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.44.35207/lib/x64;C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/ucrt/x64;C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_MAKE_PROGRAM": "ninja.exe",
"CMAKE_VS_RUNTIME_LIBRARY": "MultiThreadedDLL",
"THEMIS_ENABLE_GPU": "ON",
"THEMIS_ENABLE_HTTP_SERVER": "ON",
"THEMIS_ENABLE_LLM": "ON",
"THEMIS_BUILD_MODULAR": "ON",
"THEMIS_CORE_SHARED": "ON"
}
},
{
"name": "linux-base",
"hidden": true,
"inherits": "vcpkg-base",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"VCPKG_TARGET_TRIPLET": "x64-linux",
"THEMIS_ENABLE_GPU": "ON",
"THEMIS_ENABLE_HTTP_SERVER": "ON",
"THEMIS_ENABLE_LLM": "ON"
}
},
{
"name": "msvc-ninja-release",
"displayName": "Windows: MSVC + Ninja Release",
"description": "Release build for Windows with MSVC, Ninja, vcpkg and COMMUNITY Edition (LLM and GPU enabled with runtime CPU fallback)",
"inherits": "windows-base",
"binaryDir": "${sourceDir}/build-msvc-ninja-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"THEMIS_EDITION": "COMMUNITY"
}
},
{
"name": "msvc-ninja-perf",
"displayName": "Windows: MSVC + Ninja Performance",
"description": "Performance-focused Release build for local benchmark runs (tests disabled, benchmarks enabled)",
"inherits": "msvc-ninja-release",
"binaryDir": "${sourceDir}/build-msvc-ninja-perf",
"cacheVariables": {
"THEMIS_BUILD_TESTS": "OFF",
"THEMIS_BUILD_BENCHMARKS": "ON",
"THEMIS_BUILD_CHIMERA": "ON",
"THEMIS_PERF_AUTO_ENABLE": "ON"
}
},
{
"name": "msvc-ninja-debug",
"displayName": "Windows: MSVC + Ninja Debug",
"description": "Debug build for Windows with MSVC, Ninja and vcpkg (COMMUNITY Edition)",
"inherits": "windows-base",
"binaryDir": "${sourceDir}/build-msvc-ninja-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"THEMIS_EDITION": "COMMUNITY"
}
},
{
"name": "linux-ninja-release",
"displayName": "Linux: GCC + Ninja Release",
"description": "Release build for Linux with GCC, Ninja, and COMMUNITY Edition",
"inherits": "linux-base",
"binaryDir": "${sourceDir}/build-linux-ninja-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"THEMIS_EDITION": "COMMUNITY"
}
},
{
"name": "linux-ninja-perf",
"displayName": "Linux: GCC + Ninja Performance",
"description": "Performance-focused Release build for Linux — -O3, -ffast-math, Huge Pages, io_uring, RCU, LIRS, benchmarks enabled",
"inherits": "linux-ninja-release",
"binaryDir": "${sourceDir}/build-linux-ninja-perf",
"cacheVariables": {
"THEMIS_BUILD_TESTS": "OFF",
"THEMIS_BUILD_BENCHMARKS": "ON",
"THEMIS_BUILD_CHIMERA": "ON"
}
},
{
"name": "nightly-bench-sweep",
"displayName": "Nightly Benchmark Sweep (all modules)",
"description": "Nightly CI preset — runs modulewise benchmark sweeps for modules 2–35. CPU-only, LLM stub models, all bench targets enabled.",
"inherits": "linux-ninja-perf",
"binaryDir": "${sourceDir}/build/nightly",
"cacheVariables": {
"THEMIS_BENCH_SWEEP": "ON",
"THEMIS_BENCH_MODULES": "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",
"THEMIS_LLM_STUB_MODELS": "ON"
}
}
],
"buildPresets": [
{
"name": "msvc-ninja-release",
"displayName": "Build: Windows Release",
"configurePreset": "msvc-ninja-release",
"jobs": 4
},
{
"name": "msvc-ninja-perf",
"displayName": "Build: Windows Performance",
"configurePreset": "msvc-ninja-perf",
"jobs": 4,
"targets": [
"themis_server",
"bench_storage_performance",
"bench_vector_search",
"bench_graph_traversal",
"bench_graph_query_optimizer",
"bench_metrics_collector"
]
},
{
"name": "msvc-ninja-debug",
"displayName": "Build: Windows Debug",
"configurePreset": "msvc-ninja-debug",
"jobs": 2
},
{
"name": "linux-ninja-release",
"displayName": "Build: Linux Release",
"configurePreset": "linux-ninja-release"
}
],
"testPresets": [
{
"name": "msvc-ninja-release",
"displayName": "Test: Windows Release",
"configurePreset": "msvc-ninja-release",
"environment": {
"PATH": "${sourceDir}/build-msvc-ninja-release/bin${pathListSep}${sourceDir}/build-msvc-ninja-release/vcpkg_installed/x64-windows/bin${pathListSep}$penv{PATH}"
}
},
{
"name": "msvc-ninja-debug",
"displayName": "Test: Windows Debug",
"configurePreset": "msvc-ninja-debug",
"environment": {
"PATH": "${sourceDir}/build-msvc-ninja-debug/bin${pathListSep}${sourceDir}/build-msvc-ninja-debug/vcpkg_installed/x64-windows/bin${pathListSep}$penv{PATH}"
}
},
{
"name": "linux-ninja-release",
"displayName": "Test: Linux Release",
"configurePreset": "linux-ninja-release",
"environment": {
"PATH": "${sourceDir}/build-linux-ninja-release/bin${pathListSep}$penv{PATH}",
"LD_LIBRARY_PATH": "${sourceDir}/build-linux-ninja-release/lib${pathListSep}${sourceDir}/build-linux-ninja-release/bin${pathListSep}$penv{LD_LIBRARY_PATH}"
}
}
],
"workflowPresets": [
{
"name": "windows-dev-workflow",
"displayName": "Workflow: Windows Release (Configure → Build → Test)",
"description": "Complete development workflow for Windows",
"steps": [
{
"type": "configure",
"name": "msvc-ninja-release"
},
{
"type": "build",
"name": "msvc-ninja-release"
},
{
"type": "test",
"name": "msvc-ninja-release"
}
]
},
{
"name": "windows-debug-workflow",
"displayName": "Workflow: Windows Debug (Configure → Build → Test)",
"description": "Complete debug workflow for Windows",
"steps": [
{
"type": "configure",
"name": "msvc-ninja-debug"
},
{
"type": "build",
"name": "msvc-ninja-debug"
},
{
"type": "test",
"name": "msvc-ninja-debug"
}
]
},
{
"name": "windows-perf-workflow",
"displayName": "Workflow: Windows Performance (Configure → Build)",
"description": "Reproducible local performance workflow without test execution",
"steps": [
{
"type": "configure",
"name": "msvc-ninja-perf"
},
{
"type": "build",
"name": "msvc-ninja-perf"
}
]
},
{
"name": "linux-workflow",
"displayName": "Workflow: Linux Release (Configure → Build → Test)",
"description": "Complete development workflow for Linux",
"steps": [
{
"type": "configure",
"name": "linux-ninja-release"
},
{
"type": "build",
"name": "linux-ninja-release"
},
{
"type": "test",
"name": "linux-ninja-release"
}
]
}
]
}