Skip to content

Commit

Permalink
[v-hacd] Update version to v4.1.0 (microsoft#42908)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 authored Dec 30, 2024
1 parent 6cb30d5 commit efa6321
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 222 deletions.
19 changes: 0 additions & 19 deletions ports/v-hacd/CMakeLists.txt

This file was deleted.

140 changes: 0 additions & 140 deletions ports/v-hacd/fix-cmake.patch

This file was deleted.

42 changes: 5 additions & 37 deletions ports/v-hacd/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,43 +1,11 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kmammou/v-hacd
REF 1a49edf29c69039df15286181f2f27e17ceb9aef
SHA512 14157e5fd9cbfeb44735dc2952d7b4f43337ea2243f3b690125dda27e3bb8328cc38050415c7150cf11fbd85c5258c3aaa8899f306ce118f78a4d5e6139ef0f0
REF "v${VERSION}"
SHA512 b974c490897a1901d6975c75222a167a70f9e2a37e0c548aeb6a346cb0154ec1415947d47d69a729c0c4d9345aed70d3c09d4bf297beacfae66ceb4c8c89c6d0
HEAD_REF master
PATCHES
fix-cmake.patch
)

file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(LIB_TYPE "SHARED")
else()
set(LIB_TYPE "STATIC")
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
openmp NO_OPENMP
opencl NO_OPENCL
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DLIB_TYPE=${LIB_TYPE}
)

vcpkg_cmake_install()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/vhacd)

vcpkg_copy_pdbs()

# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${SOURCE_PATH}/include/VHACD.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
26 changes: 2 additions & 24 deletions ports/v-hacd/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
{
"name": "v-hacd",
"version": "3.2.0",
"port-version": 4,
"version": "4.1.0",
"description": "The V-HACD library decomposes a 3D surface into a set of \"near\" convex parts.",
"homepage": "https://github.com/kmammou/v-hacd",
"supports": "!arm",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"opencl": {
"description": "Builds opencl enabled lib",
"dependencies": [
"opencl"
]
},
"openmp": {
"description": "Builds openmp enabled lib"
}
}
"supports": "!arm"
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9325,8 +9325,8 @@
"port-version": 0
},
"v-hacd": {
"baseline": "3.2.0",
"port-version": 4
"baseline": "4.1.0",
"port-version": 0
},
"v8": {
"baseline": "9.1.269.39",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/v-hacd.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fd12e9f385d6694b78b54e73328dc0afde6ed0f5",
"version": "4.1.0",
"port-version": 0
},
{
"git-tree": "a4b4d85577f6e6e7cbcfa0257cdc5f51775e3e47",
"version": "3.2.0",
Expand Down

0 comments on commit efa6321

Please sign in to comment.