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

Add manifold port #42347

Open
wants to merge 4 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
36 changes: 36 additions & 0 deletions ports/manifold/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
add set(VCPKG_POLICY_ALLOW_DEBUG_INCLUDE enabled)
set(VCPKG_POLICY_SKIP_MISPLACED_CMAKE_FILES_CHECK enabled)
add set(VCPKG_POLICY_SKIP_LIB_CMAKE_MERGE_CHECK enabled)

vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO elalish/manifold
REF v3.0.0
SHA512 881d3b0e3ff03794ce66b09c4a7be675e5dcd5d5b269d62ad5c5de177e76a01460f6f0fb55a2973a92abda3bf32b8a08bafdff5c0b379ae095d9806eb5669022
)

# Configure the project
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DMANIFOLD_DEBUG=OFF
-DMANIFOLD_TEST=OFF # Disable tests to avoid overhead
-DMANIFOLD_CROSS_SECTION=ON # Enable cross-section support
-DMANIFOLD_CBIND=ON # Enable C bindings
-DMANIFOLD_PYBIND=OFF # Enable Python bindings
-DMANIFOLD_JSBIND=OFF # Disable JS bindings
OPTIONS_RELEASE
-DMANIFOLD_DEBUG=OFF
OPTIONS_DEBUG
-DMANIFOLD_DEBUG=ON
)

# Build and install
vcpkg_cmake_build()
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
4 changes: 4 additions & 0 deletions ports/manifold/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The package manifold provides CMake targets:

find_package(manifold CONFIG REQUIRED)
target_link_libraries(main PRIVATE manifold::manifold)
19 changes: 19 additions & 0 deletions ports/manifold/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "manifold",
"version": "3.0.0",
"description": "Geometry library for topological robustness.",
"homepage": "https://github.com/elalish/manifold",
"license": "Apache-2.0",
"dependencies": [
"clipper2",
"tbb",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5764,6 +5764,10 @@
"baseline": "2023-07-17",
"port-version": 0
},
"manifold": {
"baseline": "3.0.0",
"port-version": 0
},
"mapbox-geojson-cpp": {
"baseline": "0.5.1",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/manifold.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "49bdb037ac1068b043e2102b4a898204c3a59275",
"version": "3.0.0",
"port-version": 0
}
]
}
Loading