Skip to content

Commit 52fb42e

Browse files
authored
Configure vcpkg separately for the apps (#8960)
1 parent 1e831cc commit 52fb42e

File tree

6 files changed

+38
-92
lines changed

6 files changed

+38
-92
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ cmake_minimum_required(VERSION 3.28)
22

33
# TODO: remove this after updating build bots.
44
if (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg")
5-
if (NOT DEFINED VCPKG_OVERLAY_PORTS)
6-
set(VCPKG_OVERLAY_PORTS "${CMAKE_CURRENT_LIST_DIR}/cmake/vcpkg")
7-
endif ()
8-
95
if (NOT DEFINED VCPKG_MANIFEST_FEATURES)
106
set(VCPKG_MANIFEST_FEATURES developer)
117
endif ()

CMakePresets.json

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,9 @@
3030
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
3131
"cacheVariables": {
3232
"VCPKG_MANIFEST_FEATURES": "developer",
33-
"VCPKG_OVERLAY_PORTS": "${sourceDir}/cmake/vcpkg",
3433
"Halide_USE_FETCHCONTENT": false
3534
}
3635
},
37-
{
38-
"name": "vcpkg-full",
39-
"inherits": "vcpkg",
40-
"displayName": "vcpkg deps (all dependencies)",
41-
"description": "Build ALL dependencies with vcpkg",
42-
"cacheVariables": {
43-
"VCPKG_OVERLAY_PORTS": ""
44-
}
45-
},
4636
{
4737
"name": "vs2022",
4838
"hidden": true,
@@ -93,24 +83,6 @@
9383
"displayName": "Release (vcpkg)",
9484
"description": "Release build for a single-config generator, vcpkg dependencies"
9585
},
96-
{
97-
"name": "debug-vcpkg-full",
98-
"inherits": [
99-
"debug",
100-
"vcpkg-full"
101-
],
102-
"displayName": "Debug (vcpkg-full)",
103-
"description": "Debug build for a single-config generator, vcpkg-full dependencies"
104-
},
105-
{
106-
"name": "release-vcpkg-full",
107-
"inherits": [
108-
"release",
109-
"vcpkg-full"
110-
],
111-
"displayName": "Release (vcpkg-full)",
112-
"description": "Release build for a single-config generator, vcpkg-full dependencies"
113-
},
11486
{
11587
"name": "win32",
11688
"inherits": "vs2022",
@@ -125,26 +97,6 @@
12597
"description": "Visual Studio-based x64 build with vcpkg dependencies.",
12698
"architecture": "x64"
12799
},
128-
{
129-
"name": "win32-vcpkg-full",
130-
"inherits": [
131-
"vcpkg-full",
132-
"vs2022"
133-
],
134-
"displayName": "Win32 (Visual Studio/vcpkg-full)",
135-
"description": "Visual Studio-based Win32 build with vcpkg-full dependencies.",
136-
"architecture": "Win32"
137-
},
138-
{
139-
"name": "win64-vcpkg-full",
140-
"inherits": [
141-
"vcpkg-full",
142-
"vs2022"
143-
],
144-
"displayName": "Win64 (Visual Studio/vcpkg-full)",
145-
"description": "Visual Studio-based x64 build with vcpkg-full dependencies.",
146-
"architecture": "x64"
147-
},
148100
{
149101
"name": "macOS",
150102
"displayName": "macOS (Apple Clang)",
@@ -169,15 +121,6 @@
169121
"displayName": "macOS (vcpkg)",
170122
"description": "macOS build with vcpkg dependencies"
171123
},
172-
{
173-
"name": "macOS-vcpkg-full",
174-
"inherits": [
175-
"macOS",
176-
"vcpkg-full"
177-
],
178-
"displayName": "macOS (vcpkg-full)",
179-
"description": "macOS build with vcpkg-full dependencies"
180-
},
181124
{
182125
"name": "package",
183126
"hidden": true,

apps/vcpkg.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "halide-apps",
3+
"version": "22.0.0",
4+
"license": "MIT",
5+
"supports": "!uwp",
6+
"builtin-baseline": "66c0373dc7fca549e5803087b9487edfe3aca0a1",
7+
"default-features": [
8+
"jit",
9+
"serialization"
10+
],
11+
"dependencies": [
12+
{
13+
"name": "cuda",
14+
"platform": "(windows & x64 & !uwp & !xbox) | (linux & x64) | (linux & arm64)"
15+
},
16+
"eigen3",
17+
"libjpeg-turbo",
18+
"libpng",
19+
"openblas",
20+
{
21+
"name": "opencl",
22+
"platform": "(windows & x64 & !uwp & !xbox) | (linux & x64) | (linux & arm64)"
23+
}
24+
]
25+
}

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ search = "VERSION {current_version}"
172172
[[tool.tbump.file]]
173173
src = "vcpkg.json"
174174

175+
[[tool.tbump.file]]
176+
src = "apps/vcpkg.json"
177+
175178
[[tool.tbump.file]]
176179
src = "src/runtime/HalideRuntime.h"
177180
version_template = "{major}"

vcpkg-configuration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"overlay-ports": [
3+
"cmake/vcpkg"
4+
]
5+
}

vcpkg.json

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
"homepage": "https://github.com/halide/Halide",
66
"license": "MIT",
77
"supports": "!uwp",
8-
"builtin-baseline": "d567b667adba0e72c5c3931ddbe745b66aa34b73",
8+
"builtin-baseline": "66c0373dc7fca549e5803087b9487edfe3aca0a1",
99
"default-features": [
10-
"jit",
11-
"serialization"
10+
"jit"
1211
],
1312
"dependencies": [
1413
{
@@ -29,26 +28,18 @@
2928
],
3029
"features": {
3130
"developer": {
32-
"description": "Include all Halide features to facilitate development",
31+
"description": "Dependencies needed to run tests",
3332
"dependencies": [
33+
"libjpeg-turbo",
34+
"libpng",
3435
{
3536
"name": "halide",
3637
"default-features": false,
3738
"features": [
3839
"python-bindings",
3940
"serialization",
40-
"target-all",
41-
"tests",
4241
"wasm-executor"
4342
]
44-
},
45-
{
46-
"name": "llvm",
47-
"default-features": false,
48-
"features": [
49-
"clang-tools-extra",
50-
"enable-assertions"
51-
]
5243
}
5344
]
5445
},
@@ -182,23 +173,6 @@
182173
}
183174
]
184175
},
185-
"tests": {
186-
"description": "Include dependencies needed for testing Halide",
187-
"dependencies": [
188-
{
189-
"name": "cuda",
190-
"platform": "(windows & x64 & !uwp & !xbox) | (linux & x64) | (linux & arm64)"
191-
},
192-
"eigen3",
193-
"libjpeg-turbo",
194-
"libpng",
195-
"openblas",
196-
{
197-
"name": "opencl",
198-
"platform": "(windows & x64 & !uwp & !xbox) | (linux & x64) | (linux & arm64)"
199-
}
200-
]
201-
},
202176
"wasm-executor": {
203177
"description": "Include built-in WASM executor",
204178
"dependencies": [

0 commit comments

Comments
 (0)