Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v-hacd] Update version to v4.1.0 #42908

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
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
Loading