-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
233 lines (233 loc) · 5.79 KB
/
Copy pathCMakePresets.json
File metadata and controls
233 lines (233 loc) · 5.79 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
{
"version": 8,
"cmakeMinimumRequired": {
"major": 3,
"minor": 28,
"patch": 0
},
"include": [],
"configurePresets": [
{
"name": ".mbpc-base",
"hidden": true,
"description": "Shared defaults for mb-pre-commit (meta-project, LANGUAGES NONE)",
"binaryDir": "${sourceDir}/build/${presetName}",
"warnings": {
"dev": true,
"deprecated": true,
"unusedCli": true
},
"cacheVariables": {
"CMAKE_MESSAGE_LOG_LEVEL": "STATUS"
}
},
{
"name": ".mbpc-ninja",
"hidden": true,
"inherits": [".mbpc-base"],
"generator": "Ninja",
"description": "Ninja — fast, predictable, IDE-friendly (needs `ninja` on PATH; CLion may omit Homebrew — see PATH below)",
"environment": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:$penv{PATH}"
}
},
{
"name": ".mbpc-make",
"hidden": true,
"inherits": [".mbpc-base"],
"generator": "Unix Makefiles",
"description": "Classic Makefiles (no Ninja required)"
},
{
"name": "default",
"displayName": "Default (Ninja, Debug)",
"description": "Everyday configure: Ninja + Debug. If configure fails (missing Ninja), install `ninja` or use preset `unix-makefiles`.",
"inherits": [".mbpc-ninja"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "Release",
"description": "Release build type (Ninja). If Ninja is not found, use `unix-makefiles`.",
"inherits": [".mbpc-ninja"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "dev-verbose",
"displayName": "Dev — verbose CMake",
"description": "Louder configure output (inherits Ninja default). Use `unix-makefiles` if Ninja is unavailable.",
"inherits": ["default"],
"cacheVariables": {
"CMAKE_MESSAGE_LOG_LEVEL": "VERBOSE"
}
},
{
"name": "ci",
"displayName": "CI / automation",
"description": "Strict warnings, deterministic env; pair with workflow ci (Ninja + prepended PATH like default)",
"inherits": [".mbpc-ninja"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_MESSAGE_LOG_LEVEL": "NOTICE",
"CMAKE_WARN_DEPRECATED": "ON"
},
"environment": {
"PYTHONUTF8": "1",
"PYTHONIOENCODING": "utf-8",
"NINJA_STATUS": "[%f/%t %e s] "
}
},
{
"name": "unix-makefiles",
"displayName": "Unix Makefiles",
"description": "When Ninja is not installed",
"inherits": [".mbpc-make"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "xcode",
"displayName": "Xcode (macOS)",
"description": "Multi-config Xcode project — open build/xcode/*.xcodeproj",
"inherits": [".mbpc-base"],
"generator": "Xcode",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"vendor": {
"jetbrains.com/clion": {
"toolchain": "Xcode"
}
}
},
{
"name": "vs2022",
"displayName": "Visual Studio 2022",
"description": "MSVC toolchain, multi-config (x64 host)",
"inherits": [".mbpc-base"],
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "set"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": "windows",
"intelliSenseMode": "windows-msvc-x64"
}
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default",
"description": "Build after `default` configure",
"jobs": 0
},
{
"name": "release",
"configurePreset": "release",
"configuration": "Release",
"jobs": 0
},
{
"name": "dev-verbose",
"configurePreset": "dev-verbose",
"jobs": 0
},
{
"name": "ci",
"configurePreset": "ci",
"configuration": "Release",
"verbose": true,
"jobs": 0
},
{
"name": "unix-makefiles",
"configurePreset": "unix-makefiles",
"jobs": 0
},
{
"name": "xcode-debug",
"configurePreset": "xcode",
"configuration": "Debug",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"jobs": 0
},
{
"name": "vs2022-debug",
"configurePreset": "vs2022",
"configuration": "Debug",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"jobs": 0
}
],
"workflowPresets": [
{
"name": "dev",
"displayName": "Dev loop",
"description": "Configure (default) then build — dogfood mb_pre_commit_setup locally",
"steps": [
{
"type": "configure",
"name": "default"
},
{
"type": "build",
"name": "default"
}
]
},
{
"name": "ship",
"displayName": "Release workflow",
"description": "Configure + build Release preset",
"steps": [
{
"type": "configure",
"name": "release"
},
{
"type": "build",
"name": "release"
}
]
},
{
"name": "ci",
"displayName": "CI pipeline",
"description": "Strict configure + verbose build (matches automation expectations)",
"steps": [
{
"type": "configure",
"name": "ci"
},
{
"type": "build",
"name": "ci"
}
]
}
]
}