mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
099507df39
* [llvm] update to 13.0.0 * add version * [llvm] rework processing of the CMake packages * update versions * [llvm] return patch to fix config paths * update version * [llvm] allow to build Flang on Windows * add version * [llvm] temporary enable Flang by default for test * update version * [llvm] fix Flang installation * update version * [llvm] try to fix Flang build * update version * [llvm] remove Flang from defaults and use Perl path * [halide] update to 13.0.0 * update versions * [mesa] update to v21.2.5 and fix build with LLVM 13 * [llvm] use version * update versions * [opencv4] fix build with Halide 13 * update version * update ci.baseline * [halide] update usage file * [llvm] update supports * update versions * [vcpkg-ci-llvm] add test port * [vcpkg-ci-llvm] rework test port * [vcpkg-ci-llvm] test more features * [halide] update to v13.0.1 * update version * [mesa] recover port version * update versions * [opencv4] update version * update version * Update opencv4.json * [halide] update to v13.0.2 and fix usage * update version * Update ports/halide/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * update version * enable LLVM ABI breaking checks to avoid Halide build fail Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
75 lines
2.3 KiB
CMake
75 lines
2.3 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
set(HALIDE_VERSION_TAG v13.0.2)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO halide/Halide
|
|
REF ${HALIDE_VERSION_TAG}
|
|
SHA512 d2b19934ff0d759d302428f61e4075306f79c29cc1cd8802dc1ac5f325434034e0f430c435610e58f862b87cc8ef34ddcc3d0588947eeb8e1387d0bf31b9c008
|
|
HEAD_REF release/13.x
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
target-aarch64 TARGET_AARCH64
|
|
target-amdgpu TARGET_AMDGPU
|
|
target-arm TARGET_ARM
|
|
target-d3d12compute TARGET_D3D12COMPUTE
|
|
target-hexagon TARGET_HEXAGON
|
|
target-metal TARGET_METAL
|
|
target-mips TARGET_MIPS
|
|
target-nvptx TARGET_NVPTX
|
|
target-opencl TARGET_OPENCL
|
|
target-powerpc TARGET_POWERPC
|
|
target-riscv TARGET_RISCV
|
|
target-x86 TARGET_X86
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DWITH_DOCS=NO
|
|
-DWITH_PYTHON_BINDINGS=NO
|
|
-DWITH_TESTS=NO
|
|
-DWITH_TUTORIALS=NO
|
|
-DWITH_UTILS=NO
|
|
-DCMAKE_INSTALL_LIBDIR=bin
|
|
-DCMAKE_INSTALL_DATADIR=share/${PORT}
|
|
-DHalide_INSTALL_CMAKEDIR=share/${PORT}
|
|
-DHalide_INSTALL_HELPERSDIR=share/HalideHelpers
|
|
-DHalide_INSTALL_PLUGINDIR=bin
|
|
)
|
|
|
|
# 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
|
|
featurization_to_sample
|
|
get_host_target
|
|
retrain_cost_model
|
|
weightsdir_to_weightsfile
|
|
AUTO_CLEAN
|
|
)
|
|
|
|
# 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_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)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/tutorial)
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage.in ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
|