Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions ports/halide/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)

# Halide distributes some loadable modules that belong in lib on all platforms.
# CMake defaults module DLLs into the lib folder, which is incompatible with
# vcpkg’s current policy. This sidesteps that issue, a bit bluntly.
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO halide/Halide
Expand All @@ -25,15 +20,13 @@ vcpkg_check_features(
target-mips TARGET_MIPS
target-nvptx TARGET_NVPTX
target-opencl TARGET_OPENCL
target-opengl TARGET_OPENGL
target-powerpc TARGET_POWERPC
target-riscv TARGET_RISCV
target-x86 TARGET_X86
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DWITH_DOCS=NO
-DWITH_PYTHON_BINDINGS=NO
Expand All @@ -42,10 +35,14 @@ vcpkg_configure_cmake(
-DWITH_UTILS=NO
-DCMAKE_INSTALL_LIBDIR=bin
-DCMAKE_INSTALL_DATADIR=share/${PORT}
-DHALIDE_INSTALL_CMAKEDIR=share/${PORT}
-DHalide_INSTALL_CMAKEDIR=share/${PORT}
-DHalide_INSTALL_HELPERSDIR=share/HalideHelpers
-DHalide_INSTALL_PLUGINDIR=bin
)

vcpkg_install_cmake(ADD_BIN_TO_PATH)
# ADD_BIN_TO_PATH needed to compile autoschedulers,
# which use Halide.dll (and deps) during the build.
vcpkg_cmake_install(ADD_BIN_TO_PATH)

vcpkg_copy_tools(
TOOL_NAMES
Expand All @@ -56,9 +53,16 @@ vcpkg_copy_tools(
AUTO_CLEAN
)

vcpkg_copy_pdbs()
# Release mode MODULE targets in CMake don't get PDBs.
# Exclude those to avoid warning with default globs.
vcpkg_copy_pdbs(
BUILD_PATHS
"${CURRENT_PACKAGES_DIR}/bin/Halide.dll"
"${CURRENT_PACKAGES_DIR}/debug/bin/*.dll"
)

vcpkg_fixup_cmake_targets()
vcpkg_cmake_config_fixup()
vcpkg_cmake_config_fixup(PACKAGE_NAME HalideHelpers)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
Expand Down
2 changes: 1 addition & 1 deletion ports/halide/usage
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ The package halide provides CMake targets:
target_link_libraries(main PRIVATE filter)

For more information see:
https://github.com/halide/Halide/blob/v11.0.1/README_cmake.md
https://github.com/halide/Halide/blob/v12.0.1/README_cmake.md
13 changes: 9 additions & 4 deletions ports/halide/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "halide",
"version": "12.0.1",
"port-version": 1,
"description": "Halide is a programming language designed to make it easier to write high-performance image and array processing code on modern machines.",
"homepage": "https://github.com/halide/Halide",
"supports": "!uwp",
Expand All @@ -12,6 +13,14 @@
"enable-rtti",
"tools"
]
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
Expand Down Expand Up @@ -82,7 +91,6 @@
"target-mips",
"target-nvptx",
"target-opencl",
"target-opengl",
"target-powerpc",
"target-riscv",
"target-x86"
Expand Down Expand Up @@ -159,9 +167,6 @@
"target-opencl": {
"description": "Include OpenCL-C target"
},
"target-opengl": {
"description": "Include OpenGL/GLSL target"
},
"target-powerpc": {
"description": "Include PowerPC target",
"dependencies": [
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2458,7 +2458,7 @@
},
"halide": {
"baseline": "12.0.1",
"port-version": 0
"port-version": 1
},
"happly": {
"baseline": "2021-03-19",
Expand Down Expand Up @@ -3539,8 +3539,8 @@
"libsigcpp-3": {
"baseline": "3.0.3",
"port-version": 1
},
"libsmb2": {
},
"libsmb2": {
"baseline": "2021-04-29",
"port-version": 0
},
Expand Down
5 changes: 5 additions & 0 deletions versions/h-/halide.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "512cb4dd40ca40afbf0c6a35f7bdc595589a0b10",
"version": "12.0.1",
"port-version": 1
},
{
"git-tree": "50e2c4835a57bb4a172c4b82b2a0e0a3077088ab",
"version": "12.0.1",
Expand Down