Skip to content

Commit

Permalink
gz-physics6 (#34616)
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev authored Oct 31, 2023
1 parent 83a4bd8 commit 9083f6a
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ports/gz-physics6/dependencies.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,9 +73,8 @@
collision-bullet
collision-ode
utils
utils-urdf
CONFIG
VERSION 6.9
REQUIRED_BY dartsim
- PKGCONFIG dart
PKGCONFIG_VER_COMPARISON >=)
@@ -82,7 +82,6 @@
#--------------------------------------
# Find bullet for the bullet plugin wrapper
gz_find_package(GzBullet
VERSION 2.87
REQUIRED_BY bullet bullet-featherstone
- PKGCONFIG bullet
PKGCONFIG_VER_COMPARISON >=)
25 changes: 25 additions & 0 deletions ports/gz-physics6/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
set(PACKAGE_NAME physics)

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
VERSION ${VERSION}
SHA512 c29594663509234e25c7d0a33848c0fe222c2b9471513978c18ea6873a17c66c43b4037c74e8849995fa6449c2dddc0f2ee669605893daf65119c277a17f39e1
OPTIONS
PATCHES
dependencies.patch
)

if(VCPKG_TARGET_IS_WINDOWS)
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-physics-6/engine-plugins/*.dll")
if (NOT plugins STREQUAL "")
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/bin/engine-plugins/")
file(REMOVE ${plugins})
endif()

file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-physics-6/engine-plugins/*.dll")
if (NOT plugins_debug STREQUAL "")
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin/engine-plugins/")
file(REMOVE ${plugins_debug})
endif()
endif()
22 changes: 22 additions & 0 deletions ports/gz-physics6/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "gz-physics6",
"version": "6.5.1",
"description": "component of Gazebo, provides an abstract physics interface designed to support simulation and rapid development of robot applications.",
"homepage": "https://gazebosim.org/libs/physics",
"license": "Apache-2.0",
"dependencies": [
"bullet3",
"dartsim",
"eigen3",
"gz-cmake3",
"gz-common5",
"gz-math7",
"gz-plugin2",
"gz-utils2",
{
"name": "ignition-modularscripts",
"host": true
},
"sdformat13"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3188,6 +3188,10 @@
"baseline": "9.5.0",
"port-version": 0
},
"gz-physics6": {
"baseline": "6.5.1",
"port-version": 0
},
"gz-plugin2": {
"baseline": "2.0.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/g-/gz-physics6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "9e84a89c5e37806e67295d51b6bd1ec565ccaede",
"version": "6.5.1",
"port-version": 0
}
]
}

0 comments on commit 9083f6a

Please sign in to comment.