Skip to content

Commit

Permalink
[halide] No vendored wasm (microsoft#26968)
Browse files Browse the repository at this point in the history
* [halide] No vendored wasm

* version

* Fix cmake

* version

* license

* version
  • Loading branch information
Thomas1664 authored Sep 28, 2022
1 parent bc582aa commit 2d6ac7b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
27 changes: 14 additions & 13 deletions ports/halide/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ vcpkg_check_features(
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
-DWITH_DOCS=NO
-DWITH_PYTHON_BINDINGS=NO
-DWITH_TESTS=NO
-DWITH_TUTORIALS=NO
-DWITH_UTILS=NO
-DWITH_WABT=OFF
-DWITH_V8=OFF
-DWITH_DOCS=OFF
-DWITH_PYTHON_BINDINGS=OFF
-DWITH_TESTS=OFF
-DWITH_TUTORIALS=OFF
-DWITH_UTILS=OFF
-DCMAKE_INSTALL_LIBDIR=bin
-DCMAKE_INSTALL_DATADIR=share/${PORT}
-DHalide_INSTALL_CMAKEDIR=share/${PORT}
"-DCMAKE_INSTALL_DATADIR=share/${PORT}"
"-DHalide_INSTALL_CMAKEDIR=share/${PORT}"
-DHalide_INSTALL_HELPERSDIR=share/HalideHelpers
-DHalide_INSTALL_PLUGINDIR=bin
)
Expand Down Expand Up @@ -66,9 +68,8 @@ vcpkg_copy_pdbs(
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)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

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)
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
3 changes: 3 additions & 0 deletions ports/halide/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "halide",
"version": "14.0.0",
"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",
"license": "MIT",
"supports": "!uwp",
"dependencies": [
{
"name": "llvm",
"default-features": false,
"features": [
"clang",
"enable-rtti",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2822,7 +2822,7 @@
},
"halide": {
"baseline": "14.0.0",
"port-version": 0
"port-version": 1
},
"happly": {
"baseline": "2021-03-19",
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": "958cd321f20007534db5859498f8153017271b2f",
"version": "14.0.0",
"port-version": 1
},
{
"git-tree": "8beaf9e4b505e3a59e286d220492de1af4381154",
"version": "14.0.0",
Expand Down

0 comments on commit 2d6ac7b

Please sign in to comment.