-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathCMakePresets.json
More file actions
431 lines (431 loc) · 14.8 KB
/
CMakePresets.json
File metadata and controls
431 lines (431 loc) · 14.8 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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "linux-ninja-base",
"displayName": "Linux Ninja (base)",
"description": "Shared GNU/Linux preset for local Ninja builds.",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/linux-default",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/linux-default/install",
"STF_WITH_BIOSIG": "ON",
"STF_BIOSIG_PROVIDER": "SYSTEM"
}
},
{
"name": "linux-ninja-python",
"displayName": "Linux Ninja (Python)",
"description": "Preferred GNU/Linux preset with embedded Python enabled.",
"inherits": [
"linux-ninja-base"
],
"cacheVariables": {
"STF_ENABLE_PYTHON": "ON"
}
},
{
"name": "linux-ninja",
"displayName": "Linux Ninja (no Python)",
"description": "GNU/Linux preset without embedded Python.",
"inherits": [
"linux-ninja-base"
],
"binaryDir": "${sourceDir}/build/linux-lite",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/linux-lite/install",
"STF_ENABLE_PYTHON": "OFF"
}
},
{
"name": "macos-ninja-app-base",
"displayName": "macOS app bundle (Ninja base)",
"description": "Shared macOS preset for app-bundle builds with compile_commands.json output.",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/macos-app",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/macos-app/install",
"STF_MACOS_APP_BUNDLE": "ON",
"STF_WITH_BIOSIG": "ON",
"STF_BIOSIG_PROVIDER": "SUBMODULE"
}
},
{
"name": "macos-ninja-app-python",
"displayName": "macOS app bundle (Ninja + Python)",
"description": "Preferred macOS app-bundle preset matching the repository's MacPorts Python and wxWidgets setup.",
"inherits": [
"macos-ninja-app-base"
],
"cacheVariables": {
"STF_ENABLE_PYTHON": "ON",
"STF_PY_SHELL_BACKEND": "JUPYTER",
"Python3_EXECUTABLE": "/opt/local/bin/python3.14",
"wxWidgets_CONFIG_EXECUTABLE": "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/bin/wx-config"
}
},
{
"name": "macos-ninja-app",
"displayName": "macOS app bundle (Ninja, no Python)",
"description": "macOS app-bundle preset without embedded Python for environments that only need the native application.",
"inherits": [
"macos-ninja-app-base"
],
"binaryDir": "${sourceDir}/build/macos-app-nopython",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/macos-app-nopython/install",
"STF_ENABLE_PYTHON": "OFF"
}
},
{
"name": "vs2022-vcpkg-ci-like-base",
"displayName": "VS2022 x64 (CI-like vcpkg base)",
"description": "Shared Windows preset using environment-driven vcpkg dependencies, aligned with CI layout.",
"hidden": true,
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/../stimfit-out/${presetName}",
"architecture": {
"value": "x64",
"strategy": "set"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/triplets",
"VCPKG_TARGET_TRIPLET": "x64-windows-ci-release",
"VCPKG_MANIFEST_INSTALL": "OFF",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/../stimfit-out/install/vs2022-release",
"CMAKE_PREFIX_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"CMAKE_LIBRARY_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/lib",
"CMAKE_INCLUDE_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/include",
"HDF5_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/hdf5",
"hdf5_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/hdf5",
"wxWidgets_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/wxwidgets",
"STF_HDF5_PREFIX": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"wxWidgets_ROOT_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"wxWidgets_LIB_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/lib",
"BUILD_SHARED_LIBS": "ON",
"STF_BUILD_MODULE": "OFF",
"STF_ENABLE_PYTHON": "OFF",
"STF_WITH_BIOSIG": "ON"
}
},
{
"name": "vs2022-vcpkg-wx-hdf5",
"displayName": "VS2022 x64 (vcpkg + wxWidgets + HDF5)",
"description": "Stimfit non-Python build using vcpkg-provided dependencies.",
"inherits": [
"vs2022-vcpkg-ci-like-base"
],
"cacheVariables": {
"STF_ENABLE_PYTHON": "OFF",
"STF_WITH_BIOSIG": "ON"
}
},
{
"name": "vs2022-vcpkg-wx-hdf5-biosig-patched",
"displayName": "VS2022 x64 (CMake-managed patched biosig)",
"description": "Build Stimfit with biosig patched and built incrementally through the CMake build graph.",
"inherits": [
"vs2022-vcpkg-wx-hdf5"
],
"cacheVariables": {
"STF_WITH_BIOSIG": "ON",
"STF_BIOSIG_PROVIDER": "PATCHED_SUBMODULE"
}
},
{
"name": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched",
"displayName": "VS2022 x64 (Python 3.14 + modern shell + patched biosig)",
"description": "Build Stimfit with embedded Python enabled for Python 3.14 workflows.",
"inherits": [
"vs2022-vcpkg-wx-hdf5-biosig-patched"
],
"cacheVariables": {
"STF_ENABLE_PYTHON": "ON",
"STF_PY_SHELL_BACKEND": "MODERN",
"STF_WINDOWS_COPY_PYTHON_RUNTIME": "ON",
"STF_WINDOWS_COPY_PYTHON_SITE_PACKAGES": "ON",
"STF_WINDOWS_PYTHON_SITE_PACKAGES": "numpy;wx",
"STF_WINDOWS_PYTHON_EXTRA_PATHS": "C:/Users/C02380/libs/Phoenix",
"STF_WXPYTHON_INCLUDE_DIR": "C:/Users/C02380/libs/Phoenix/wx/include",
"SWIG_EXECUTABLE": "C:/Users/C02380/AppData/Local/Microsoft/WinGet/Packages/SWIG.SWIG_Microsoft.Winget.Source_8wekyb3d8bbwe/swigwin-4.4.1/swig.exe",
"Python3_ROOT_DIR": "C:/Program Files/Python314",
"STF_WX_PREFER_MODULE_FIND": "ON",
"wxWidgets_DIR": "",
"wxWidgets_ROOT_DIR": "C:/Users/C02380/libs/Phoenix/ext/wxWidgets",
"wxWidgets_LIB_DIR": "C:/Users/C02380/libs/Phoenix/ext/wxWidgets/lib/vc140_x64_dll"
}
},
{
"name": "ci-windows-msvc-smoke",
"displayName": "CI Windows MSVC smoke",
"description": "GitHub Actions Windows smoke configuration using vcpkg-installed dependencies.",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/build/${presetName}",
"architecture": {
"value": "x64",
"strategy": "set"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-ci-release",
"VCPKG_MANIFEST_INSTALL": "OFF",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}",
"CMAKE_PREFIX_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"CMAKE_LIBRARY_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/lib",
"CMAKE_INCLUDE_PATH": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/include",
"HDF5_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/hdf5",
"hdf5_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/hdf5",
"wxWidgets_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/share/wxwidgets",
"STF_HDF5_PREFIX": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"wxWidgets_ROOT_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release",
"wxWidgets_LIB_DIR": "$env{VCPKG_INSTALLED_DIR}/x64-windows-ci-release/lib",
"BUILD_SHARED_LIBS": "ON",
"STF_BUILD_MODULE": "OFF",
"STF_ENABLE_PYTHON": "OFF",
"STF_WITH_BIOSIG": "OFF",
"STF_BUILD_TESTS": "ON",
"STF_BUILD_NUMERIC_TESTS": "OFF"
}
}
],
"buildPresets": [
{
"name": "linux-ninja-python-build",
"displayName": "Build Linux default target (Python)",
"configurePreset": "linux-ninja-python"
},
{
"name": "linux-ninja-build",
"displayName": "Build Linux default target (no Python)",
"configurePreset": "linux-ninja"
},
{
"name": "macos-ninja-app-python-stimfit",
"displayName": "Build stimfit.app (macOS, Python)",
"configurePreset": "macos-ninja-app-python",
"targets": [
"stimfit"
]
},
{
"name": "macos-ninja-app-stimfit",
"displayName": "Build stimfit.app (macOS, no Python)",
"configurePreset": "macos-ninja-app",
"targets": [
"stimfit"
]
},
{
"name": "vs2022-release-all",
"displayName": "Build ALL_BUILD (Release)",
"configurePreset": "vs2022-vcpkg-wx-hdf5",
"configuration": "Release",
"targets": [
"ALL_BUILD"
]
},
{
"name": "vs2022-release-stimfit",
"displayName": "Build stimfit (Release)",
"configurePreset": "vs2022-vcpkg-wx-hdf5",
"configuration": "Release",
"targets": [
"stimfit"
]
},
{
"name": "vs2022-release-stimfit-biosig-patched",
"displayName": "Build stimfit (Release, patched biosig)",
"configurePreset": "vs2022-vcpkg-wx-hdf5-biosig-patched",
"configuration": "Release",
"targets": [
"stimfit"
]
},
{
"name": "vs2022-release-stimfit-python314-biosig-patched",
"displayName": "Build stimfit (Release, Python 3.14, patched biosig)",
"configurePreset": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched",
"configuration": "Release",
"targets": [
"stimfit"
]
},
{
"name": "vs2022-release-all-biosig-patched",
"displayName": "Build ALL_BUILD (Release, patched biosig)",
"configurePreset": "vs2022-vcpkg-wx-hdf5-biosig-patched",
"configuration": "Release",
"targets": [
"ALL_BUILD"
]
},
{
"name": "vs2022-release-all-python314-biosig-patched",
"displayName": "Build ALL_BUILD (Release, Python 3.14, patched biosig)",
"configurePreset": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched",
"configuration": "Release",
"targets": [
"ALL_BUILD"
]
},
{
"name": "ci-windows-msvc-smoke-release",
"displayName": "CI smoke target build (Release)",
"configurePreset": "ci-windows-msvc-smoke",
"configuration": "Release",
"targets": [
"stimfit_containers_test"
]
}
],
"packagePresets": [
{
"name": "linux-ninja-python-package-tgz",
"displayName": "Package TGZ (Linux, Python)",
"description": "Generate the TGZ package for the GNU/Linux Python-enabled preset.",
"configurePreset": "linux-ninja-python",
"generators": [
"TGZ"
]
},
{
"name": "linux-ninja-package-tgz",
"displayName": "Package TGZ (Linux, no Python)",
"description": "Generate the TGZ package for the GNU/Linux no-Python preset.",
"configurePreset": "linux-ninja",
"generators": [
"TGZ"
]
},
{
"name": "vs2022-release-package-inno-python314-biosig-patched",
"displayName": "Package INNOSETUP (Release, Python 3.14, patched biosig)",
"description": "Generate the Windows Inno Setup installer via CPack.",
"configurePreset": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched",
"configurations": [
"Release"
],
"generators": [
"INNOSETUP"
]
},
{
"name": "vs2022-release-package-zip-python314-biosig-patched",
"displayName": "Package ZIP (Release, Python 3.14, patched biosig)",
"description": "Generate the Windows ZIP fallback package via CPack.",
"configurePreset": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched",
"configurations": [
"Release"
],
"generators": [
"ZIP"
]
}
],
"workflowPresets": [
{
"name": "linux-ninja-python-workflow",
"displayName": "Configure + Build Linux (Python)",
"description": "Configure and build the preferred GNU/Linux preset with embedded Python enabled.",
"steps": [
{
"type": "configure",
"name": "linux-ninja-python"
},
{
"type": "build",
"name": "linux-ninja-python-build"
}
]
},
{
"name": "linux-ninja-workflow",
"displayName": "Configure + Build Linux (no Python)",
"description": "Configure and build the GNU/Linux preset without embedded Python.",
"steps": [
{
"type": "configure",
"name": "linux-ninja"
},
{
"type": "build",
"name": "linux-ninja-build"
}
]
},
{
"name": "macos-ninja-app-python-workflow",
"displayName": "Configure + Build macOS app bundle (Python)",
"description": "Configure and build the preferred macOS app-bundle preset with embedded Python enabled.",
"steps": [
{
"type": "configure",
"name": "macos-ninja-app-python"
},
{
"type": "build",
"name": "macos-ninja-app-python-stimfit"
}
]
},
{
"name": "macos-ninja-app-workflow",
"displayName": "Configure + Build macOS app bundle (no Python)",
"description": "Configure and build the macOS app-bundle preset without embedded Python.",
"steps": [
{
"type": "configure",
"name": "macos-ninja-app"
},
{
"type": "build",
"name": "macos-ninja-app-stimfit"
}
]
},
{
"name": "vs2022-release-package-all-python314-biosig-patched",
"displayName": "Configure + Build + Package (INNOSETUP + ZIP)",
"description": "One-command workflow for Windows packaging with embedded Python.",
"steps": [
{
"type": "configure",
"name": "vs2022-vcpkg-wx-hdf5-python314-biosig-patched"
},
{
"type": "build",
"name": "vs2022-release-stimfit-python314-biosig-patched"
},
{
"type": "package",
"name": "vs2022-release-package-inno-python314-biosig-patched"
},
{
"type": "package",
"name": "vs2022-release-package-zip-python314-biosig-patched"
}
]
}
]
}