|
12 | 12 | "binaryDir": "${sourceDir}/out/build/${presetName}", |
13 | 13 | "cacheVariables": { |
14 | 14 | "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", |
15 | | - "CMAKE_POSITION_INDEPENDENT_CODE": "ON", |
16 | 15 | "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", |
17 | 16 | "CMAKE_PROJECT_TOP_LEVEL_INCLUDES": "${sourceDir}/cmake/setup.cmake" |
18 | 17 | } |
|
21 | 20 | "name": "msvc-x64", |
22 | 21 | "hidden": true, |
23 | 22 | "cacheVariables": { |
24 | | - "BISON_ROOT": "C:/GnuWin32", |
25 | | - "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" |
| 23 | + "BISON_ROOT": "C:/GnuWin32" |
26 | 24 | }, |
27 | 25 | "vendor": { |
28 | 26 | "microsoft.com/VisualStudioSettings/CMake/1.0": { |
|
32 | 30 | "enableClangTidyCodeAnalysis": true |
33 | 31 | } |
34 | 32 | }, |
35 | | - "architecture": { |
36 | | - "value": "x64", |
37 | | - "strategy": "set" |
38 | | - }, |
39 | | - "condition": { |
40 | | - "type": "equals", |
41 | | - "lhs": "${hostSystemName}", |
42 | | - "rhs": "Windows" |
43 | | - } |
| 33 | + "architecture": { "value": "x64", "strategy": "set" }, |
| 34 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" } |
44 | 35 | }, |
45 | 36 | { |
46 | 37 | "name": "vs18-x64", |
|
59 | 50 | "description": "Uses ClangCL compiler, x64 architecture", |
60 | 51 | "inherits": ["project-default", "msvc-x64"], |
61 | 52 | "generator": "Visual Studio 16 2019", |
62 | | - "toolset": { |
63 | | - "value": "ClangCL", |
64 | | - "strategy": "set" |
65 | | - } |
| 53 | + "toolset": { "value": "ClangCL", "strategy": "set" } |
66 | 54 | }, |
67 | 55 | { |
68 | 56 | "name": "linux-default", |
|
73 | 61 | "hostOS": [ "Linux" ] |
74 | 62 | } |
75 | 63 | }, |
76 | | - "condition": { |
77 | | - "type": "equals", |
78 | | - "lhs": "${hostSystemName}", |
79 | | - "rhs": "Linux" |
80 | | - } |
| 64 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" } |
81 | 65 | }, |
82 | 66 | { |
83 | 67 | "name": "linux-gcc", |
|
101 | 85 | "name": "macos-default", |
102 | 86 | "hidden": true, |
103 | 87 | "generator": "Ninja Multi-Config", |
104 | | - "condition": { |
105 | | - "type": "equals", |
106 | | - "lhs": "${hostSystemName}", |
107 | | - "rhs": "Darwin" |
108 | | - } |
| 88 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" } |
109 | 89 | }, |
110 | 90 | { |
111 | 91 | "name": "macos-arm64", |
|
119 | 99 | "buildPresets": [ |
120 | 100 | { |
121 | 101 | "name": "dev-vs18-x64", |
| 102 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, |
122 | 103 | "description": "Debug Build (build modified files)", |
123 | 104 | "configurePreset": "vs18-x64", |
124 | 105 | "configuration": "Debug", |
125 | 106 | "targets": ["ALL_BUILD"] |
126 | 107 | }, |
127 | | - { |
128 | | - "name": "pr-vs18-x64", |
129 | | - "description": "Pull-Request Validation Build (build modified files)", |
130 | | - "inherits": ["dev-vs18-x64"], |
131 | | - "configuration": "RelWithDebInfo" |
132 | | - }, |
133 | 108 | { |
134 | 109 | "name": "ci-vs18-x64", |
135 | 110 | "description": "Continous Integration Build (rebuild all)", |
136 | | - "inherits": ["pr-vs18-x64"], |
| 111 | + "inherits": ["dev-vs18-x64"], |
| 112 | + "configuration": "RelWithDebInfo", |
137 | 113 | "cleanFirst": true |
138 | 114 | }, |
139 | 115 | { |
140 | 116 | "name": "dev-vs16-x64", |
| 117 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, |
141 | 118 | "description": "Debug Build (build modified files)", |
142 | 119 | "configurePreset": "vs16-x64", |
143 | 120 | "configuration": "Debug", |
144 | 121 | "targets": ["ALL_BUILD"] |
145 | 122 | }, |
146 | | - { |
147 | | - "name": "pr-vs16-x64", |
148 | | - "description": "Pull-Request Validation Build (build modified files)", |
149 | | - "inherits": ["dev-vs16-x64"], |
150 | | - "configuration": "RelWithDebInfo" |
151 | | - }, |
152 | 123 | { |
153 | 124 | "name": "ci-vs16-x64", |
154 | 125 | "description": "Continous Integration Build (rebuild all)", |
155 | | - "inherits": ["pr-vs16-x64"], |
| 126 | + "inherits": ["dev-vs16-x64"], |
| 127 | + "configuration": "RelWithDebInfo", |
156 | 128 | "cleanFirst": true |
157 | 129 | }, |
158 | 130 | { |
159 | 131 | "name": "dev-clangcl-x64", |
| 132 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, |
160 | 133 | "description": "Debug Build (build modified files)", |
161 | 134 | "configurePreset": "clangcl-x64", |
162 | 135 | "configuration": "Debug", |
163 | 136 | "targets": ["ALL_BUILD"] |
164 | 137 | }, |
165 | | - { |
166 | | - "name": "pr-clangcl-x64", |
167 | | - "description": "Pull-Request Validation Build (build modified files)", |
168 | | - "inherits": ["dev-clangcl-x64"], |
169 | | - "configuration": "RelWithDebInfo" |
170 | | - }, |
171 | 138 | { |
172 | 139 | "name": "ci-clangcl-x64", |
173 | 140 | "description": "Continous Integration Build (rebuild all)", |
174 | | - "inherits": ["pr-clangcl-x64"], |
| 141 | + "inherits": ["dev-clangcl-x64"], |
| 142 | + "configuration": "RelWithDebInfo", |
175 | 143 | "cleanFirst": true |
176 | 144 | }, |
177 | 145 | { |
178 | 146 | "name": "dev-linux-gcc", |
| 147 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" }, |
179 | 148 | "description": "Debug Build (build modified files)", |
180 | 149 | "configurePreset": "linux-gcc", |
181 | 150 | "configuration": "Debug", |
182 | 151 | "targets": ["all"] |
183 | 152 | }, |
184 | | - { |
185 | | - "name": "pr-linux-gcc", |
186 | | - "description": "Pull-Request Validation Build (build modified files)", |
187 | | - "inherits": ["dev-linux-gcc"], |
188 | | - "configuration": "RelWithDebInfo" |
189 | | - }, |
190 | 153 | { |
191 | 154 | "name": "ci-linux-gcc", |
192 | 155 | "description": "Continous Integration Build (rebuild all)", |
193 | | - "inherits": ["pr-linux-gcc"], |
| 156 | + "inherits": ["dev-linux-gcc"], |
| 157 | + "configuration": "RelWithDebInfo", |
194 | 158 | "cleanFirst": true |
195 | 159 | }, |
196 | 160 | { |
197 | 161 | "name": "dev-linux-clang", |
| 162 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" }, |
198 | 163 | "description": "Debug Build (build modified files)", |
199 | 164 | "configurePreset": "linux-clang", |
200 | 165 | "configuration": "Debug", |
201 | 166 | "targets": ["all"] |
202 | 167 | }, |
203 | | - { |
204 | | - "name": "pr-linux-clang", |
205 | | - "description": "Pull-Request Validation Build (build modified files)", |
206 | | - "inherits": ["dev-linux-clang"], |
207 | | - "configuration": "RelWithDebInfo" |
208 | | - }, |
209 | 168 | { |
210 | 169 | "name": "ci-linux-clang", |
211 | 170 | "description": "Continous Integration Build (rebuild all)", |
212 | | - "inherits": ["pr-linux-clang"], |
| 171 | + "inherits": ["dev-linux-clang"], |
| 172 | + "configuration": "RelWithDebInfo", |
213 | 173 | "cleanFirst": true |
214 | 174 | }, |
215 | 175 | { |
216 | 176 | "name": "dev-macos-arm64", |
| 177 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" }, |
217 | 178 | "description": "Debug Build (build modified files)", |
218 | 179 | "configurePreset": "macos-arm64", |
219 | 180 | "configuration": "Debug", |
220 | 181 | "targets": ["all"] |
221 | 182 | }, |
222 | | - { |
223 | | - "name": "pr-macos-arm64", |
224 | | - "description": "Pull-Request Validation Build (build modified files)", |
225 | | - "inherits": ["dev-macos-arm64"], |
226 | | - "configuration": "RelWithDebInfo" |
227 | | - }, |
228 | 183 | { |
229 | 184 | "name": "ci-macos-arm64", |
230 | 185 | "description": "Continuous Integration Build (rebuild all)", |
231 | | - "inherits": ["pr-macos-arm64"], |
| 186 | + "inherits": ["dev-macos-arm64"], |
| 187 | + "configuration": "RelWithDebInfo", |
232 | 188 | "cleanFirst": true |
233 | 189 | } |
234 | 190 | ], |
|
240 | 196 | "noTestsAction": "ignore" |
241 | 197 | } |
242 | 198 | }, |
| 199 | + { |
| 200 | + "name": "ut-windows", |
| 201 | + "hidden": true, |
| 202 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" } |
| 203 | + }, |
243 | 204 | { |
244 | 205 | "name": "ut-vs18-x64", |
245 | 206 | "description": "Run unit-tests for Windows 64-bits architecture", |
246 | 207 | "configurePreset": "vs18-x64", |
247 | | - "inherits": ["ut-defaults"] |
| 208 | + "inherits": ["ut-defaults", "ut-windows"] |
248 | 209 | }, |
249 | 210 | { |
250 | 211 | "name": "ut-vs16-x64", |
251 | 212 | "description": "Run unit-tests for Windows 64-bits architecture", |
252 | 213 | "configurePreset": "vs16-x64", |
253 | | - "inherits": ["ut-defaults"] |
| 214 | + "inherits": ["ut-defaults", "ut-windows"] |
254 | 215 | }, |
255 | 216 | { |
256 | 217 | "name": "ut-clangcl-x64", |
257 | 218 | "description": "Run unit-tests for Windows 64-bits architecture", |
258 | 219 | "configurePreset": "clangcl-x64", |
259 | | - "inherits": ["ut-defaults"] |
| 220 | + "inherits": ["ut-defaults", "ut-windows"] |
| 221 | + }, |
| 222 | + { |
| 223 | + "name": "ut-linux", |
| 224 | + "hidden": true, |
| 225 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" } |
260 | 226 | }, |
261 | 227 | { |
262 | 228 | "name": "ut-linux-gcc", |
263 | 229 | "description": "Run unit-tests on Linux", |
264 | 230 | "configurePreset": "linux-gcc", |
265 | | - "inherits": ["ut-defaults"] |
| 231 | + "inherits": ["ut-defaults", "ut-linux"] |
266 | 232 | }, |
267 | 233 | { |
268 | 234 | "name": "ut-linux-clang", |
269 | 235 | "description": "Run unit-tests on Linux", |
270 | 236 | "configurePreset": "linux-clang", |
271 | | - "inherits": ["ut-defaults"] |
| 237 | + "inherits": ["ut-defaults", "ut-linux"] |
272 | 238 | }, |
273 | 239 | { |
274 | 240 | "name": "ut-macos-arm64", |
275 | 241 | "description": "Run unit-tests on macOS ARM64", |
276 | 242 | "configurePreset": "macos-arm64", |
277 | | - "inherits": ["ut-defaults"] |
| 243 | + "inherits": ["ut-defaults"], |
| 244 | + "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" } |
278 | 245 | } |
279 | 246 | ] |
280 | 247 | } |
0 commit comments