|
15 | 15 | { |
16 | 16 | "name": "ci", |
17 | 17 | "hidden": true, |
18 | | - "inherits": "base", |
19 | | - "toolchainFile": "${sourceDir}/cmake/toolchain.${presetName}.cmake", |
| 18 | + "binaryDir": "build", |
| 19 | + "installDir": "local", |
| 20 | + "generator": "Ninja", |
| 21 | + "toolchainFile": "$env{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake", |
20 | 22 | "cacheVariables": { |
21 | 23 | "CMAKE_BUILD_TYPE": "RelWithDebInfo", |
22 | | - "Halide_LLVM_SHARED_LIBS": false |
| 24 | + "FETCHCONTENT_FULLY_DISCONNECTED": "ON", |
| 25 | + "VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchain.${presetName}.cmake", |
| 26 | + "VCPKG_MANIFEST_FEATURES": "developer" |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "ci-linux-x86-64", |
| 31 | + "inherits": "ci" |
| 32 | + }, |
| 33 | + { |
| 34 | + "name": "ci-linux-x86-32", |
| 35 | + "inherits": "ci", |
| 36 | + "cacheVariables": { |
| 37 | + "WITH_PYTHON_BINDINGS": "NO" |
| 38 | + } |
| 39 | + }, |
| 40 | + { |
| 41 | + "name": "ci-linux-arm-64", |
| 42 | + "inherits": "ci", |
| 43 | + "cacheVariables": { |
| 44 | + "WITH_PYTHON_BINDINGS": "NO" |
| 45 | + } |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "ci-linux-arm-32", |
| 49 | + "inherits": "ci", |
| 50 | + "cacheVariables": { |
| 51 | + "WITH_PYTHON_BINDINGS": "NO" |
| 52 | + } |
| 53 | + }, |
| 54 | + { |
| 55 | + "name": "ci-macos-arm-64", |
| 56 | + "inherits": "ci" |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "ci-macos-x86-64", |
| 60 | + "inherits": "ci" |
| 61 | + }, |
| 62 | + { |
| 63 | + "name": "ci-windows-x86-64", |
| 64 | + "inherits": "ci" |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "ci-windows-x86-32", |
| 68 | + "inherits": "ci", |
| 69 | + "cacheVariables": { |
| 70 | + "WITH_PYTHON_BINDINGS": "NO" |
23 | 71 | } |
24 | 72 | }, |
25 | 73 | { |
|
30 | 78 | "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", |
31 | 79 | "cacheVariables": { |
32 | 80 | "VCPKG_MANIFEST_FEATURES": "developer", |
33 | | - "Halide_USE_FETCHCONTENT": false |
| 81 | + "FETCHCONTENT_FULLY_DISCONNECTED": "ON" |
34 | 82 | } |
35 | 83 | }, |
36 | 84 | { |
|
121 | 169 | "displayName": "macOS (vcpkg)", |
122 | 170 | "description": "macOS build with vcpkg dependencies" |
123 | 171 | }, |
124 | | - { |
125 | | - "name": "package", |
126 | | - "hidden": true, |
127 | | - "cacheVariables": { |
128 | | - "CMAKE_BUILD_TYPE": "Release", |
129 | | - "LLVM_DIR": "$env{LLVM_DIR}", |
130 | | - "Clang_DIR": "$env{Clang_DIR}", |
131 | | - "LLD_DIR": "$env{LLD_DIR}", |
132 | | - "WITH_TESTS": "NO", |
133 | | - "WITH_TUTORIALS": "NO", |
134 | | - "WITH_DOCS": "YES", |
135 | | - "WITH_UTILS": "YES", |
136 | | - "WITH_PYTHON_BINDINGS": "NO", |
137 | | - "CMAKE_INSTALL_DATADIR": "share/Halide" |
138 | | - } |
139 | | - }, |
140 | | - { |
141 | | - "name": "package-windows", |
142 | | - "inherits": [ |
143 | | - "package", |
144 | | - "vs2022" |
145 | | - ], |
146 | | - "displayName": "Package ZIP for Windows", |
147 | | - "description": "Build for packaging Windows shared libraries.", |
148 | | - "binaryDir": "${sourceDir}/build", |
149 | | - "cacheVariables": { |
150 | | - "BUILD_SHARED_LIBS": "YES", |
151 | | - "CMAKE_INSTALL_BINDIR": "bin/$<CONFIG>", |
152 | | - "CMAKE_INSTALL_LIBDIR": "lib/$<CONFIG>", |
153 | | - "Halide_INSTALL_CMAKEDIR": "lib/cmake/Halide", |
154 | | - "Halide_INSTALL_HELPERSDIR": "lib/cmake/HalideHelpers" |
155 | | - } |
156 | | - }, |
157 | | - { |
158 | | - "name": "package-unix", |
159 | | - "inherits": "package", |
160 | | - "displayName": "Package UNIX shared libs", |
161 | | - "description": "Build for packaging UNIX shared libraries.", |
162 | | - "binaryDir": "shared-Release", |
163 | | - "cacheVariables": { |
164 | | - "BUILD_SHARED_LIBS": "YES" |
165 | | - } |
166 | | - }, |
167 | 172 | { |
168 | 173 | "name": "linux-x64-asan", |
169 | 174 | "inherits": "ci", |
|
195 | 200 | "BUILD_SHARED_LIBS": "NO" |
196 | 201 | } |
197 | 202 | } |
198 | | - ], |
199 | | - "buildPresets": [ |
200 | | - { |
201 | | - "name": "debug", |
202 | | - "configurePreset": "debug", |
203 | | - "displayName": "Debug", |
204 | | - "description": "Debug build with no special settings" |
205 | | - }, |
206 | | - { |
207 | | - "name": "release", |
208 | | - "configurePreset": "release", |
209 | | - "displayName": "Release", |
210 | | - "description": "Release build with no special settings" |
211 | | - }, |
212 | | - { |
213 | | - "name": "linux-x64-asan", |
214 | | - "configurePreset": "linux-x64-asan", |
215 | | - "displayName": "ASAN (Linux x64)", |
216 | | - "description": "Build everything with ASAN enabled" |
217 | | - }, |
218 | | - { |
219 | | - "name": "linux-x64-fuzzer", |
220 | | - "configurePreset": "linux-x64-fuzzer", |
221 | | - "displayName": "Fuzzing (Linux x64)", |
222 | | - "description": "Build everything with fuzzing enabled" |
223 | | - } |
224 | | - ], |
225 | | - "testPresets": [ |
226 | | - { |
227 | | - "name": "debug", |
228 | | - "configurePreset": "debug", |
229 | | - "displayName": "Debug", |
230 | | - "description": "Test everything with Debug build", |
231 | | - "output": { |
232 | | - "outputOnFailure": true |
233 | | - } |
234 | | - }, |
235 | | - { |
236 | | - "name": "release", |
237 | | - "configurePreset": "release", |
238 | | - "displayName": "Release", |
239 | | - "description": "Test everything with Release build", |
240 | | - "output": { |
241 | | - "outputOnFailure": true |
242 | | - } |
243 | | - }, |
244 | | - { |
245 | | - "name": "linux-x64-asan", |
246 | | - "configurePreset": "linux-x64-asan", |
247 | | - "displayName": "ASAN (Linux x64)", |
248 | | - "description": "Test everything with ASAN enabled", |
249 | | - "environment": { |
250 | | - "ASAN_OPTIONS": "detect_leaks=0:detect_container_overflow=0" |
251 | | - }, |
252 | | - "output": { |
253 | | - "outputOnFailure": true |
254 | | - } |
255 | | - }, |
256 | | - { |
257 | | - "name": "linux-x64-fuzzer", |
258 | | - "configurePreset": "linux-x64-fuzzer", |
259 | | - "displayName": "Fuzzing (Linux x64)", |
260 | | - "description": "Test everything with fuzzing enabled", |
261 | | - "output": { |
262 | | - "outputOnFailure": true |
263 | | - } |
264 | | - } |
265 | 203 | ] |
266 | 204 | } |
0 commit comments