-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
163 lines (163 loc) · 5.38 KB
/
Copy pathCMakePresets.json
File metadata and controls
163 lines (163 loc) · 5.38 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
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
"configurePresets": [
{
"name": "windows-mingw",
"displayName": "Windows (MinGW-w64, Release)",
"description": "The lane windows-ci.yml builds and tests: MSYS2 MINGW64 gcc via MinGW Makefiles. Warnings-as-errors matches the linux/macos lanes; the MinGW build is warning-clean on GCC 16. Needs C:\\msys64\\mingw64\\bin on PATH (scripts/install-deps.ps1).",
"generator": "MinGW Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "windows-mingw-debug",
"displayName": "Windows (MinGW-w64, Debug)",
"description": "Local-dev debug variant of windows-mingw. Not a CI lane.",
"generator": "MinGW Makefiles",
"binaryDir": "${sourceDir}/build-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "linux",
"displayName": "Linux (Release, warnings as errors)",
"description": "The lane linux-ci.yml builds and tests. Warnings-as-errors lives here (not in CMakeLists.txt) so casual local builds stay friendly while preset users get CI's verdict.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "linux-debug",
"displayName": "Linux (Debug, warnings as errors)",
"description": "Local-dev debug variant of linux. Not a CI lane.",
"binaryDir": "${sourceDir}/build-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "macos",
"displayName": "macOS (Release, warnings as errors)",
"description": "The lane macos-ci.yml builds and tests. Same flags as linux; a separate name so each workflow reads its own preset.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "macos-debug",
"displayName": "macOS (Debug, warnings as errors)",
"description": "Local-dev debug variant of macos. Not a CI lane.",
"binaryDir": "${sourceDir}/build-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_COMPILE_WARNING_AS_ERROR": "ON"
}
},
{
"name": "windows-msvc",
"displayName": "Windows (MSVC + vcpkg, hardened release)",
"description": "MSVC build that unlocks /guard:cf (CFG) + /CETCOMPAT (CET shadow stack) + /Qspectre. libsodium + openssl come from vcpkg's static triplet so their CRT linkage matches the app's /MT. Requires VCPKG_ROOT in the environment. The generator below is the default; CI and scripts/build.ps1 override it per-machine with `-G $(scripts/windows-vs-generator.ps1)` so a VS 2026 box maps to its own generator.",
"generator": "Visual Studio 17 2022",
"architecture": { "value": "x64", "strategy": "set" },
"binaryDir": "${sourceDir}/build-msvc",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"VCPKG_INSTALLED_DIR": "${sourceDir}/build-msvc/vcpkg_installed"
}
}
],
"buildPresets": [
{
"name": "windows-mingw",
"configurePreset": "windows-mingw",
"configuration": "Release"
},
{
"name": "windows-mingw-debug",
"configurePreset": "windows-mingw-debug",
"configuration": "Debug"
},
{
"name": "linux",
"configurePreset": "linux",
"configuration": "Release"
},
{
"name": "linux-debug",
"configurePreset": "linux-debug",
"configuration": "Debug"
},
{
"name": "macos",
"configurePreset": "macos",
"configuration": "Release"
},
{
"name": "macos-debug",
"configurePreset": "macos-debug",
"configuration": "Debug"
},
{
"name": "windows-msvc",
"configurePreset": "windows-msvc",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "windows-mingw",
"configurePreset": "windows-mingw",
"configuration": "Release",
"output": { "outputOnFailure": true }
},
{
"name": "windows-mingw-debug",
"configurePreset": "windows-mingw-debug",
"configuration": "Debug",
"output": { "outputOnFailure": true }
},
{
"name": "linux",
"configurePreset": "linux",
"configuration": "Release",
"output": { "outputOnFailure": true }
},
{
"name": "linux-debug",
"configurePreset": "linux-debug",
"configuration": "Debug",
"output": { "outputOnFailure": true }
},
{
"name": "macos",
"configurePreset": "macos",
"configuration": "Release",
"output": { "outputOnFailure": true }
},
{
"name": "macos-debug",
"configurePreset": "macos-debug",
"configuration": "Debug",
"output": { "outputOnFailure": true }
},
{
"name": "windows-msvc",
"configurePreset": "windows-msvc",
"configuration": "Release",
"output": { "outputOnFailure": true }
}
]
}