Skip to content

Commit

Permalink
[rbdl-orb] Adding RBDL-ORB to vcpkg (#18883)
Browse files Browse the repository at this point in the history
* add rbdl-orb port

* update commit hash

* added rbdl-orb port

* moved to vcpkg.json and use vcpkg_cmake_configure/install functions

* update to newest commit of rbdl-orb version v3.0.0

* only use vcpkg_from_github for source download

* formatting vcpkg.json

* update port version specs

* use correct submodule path for urdfparser dependency

* execute vcpkg x-add-version

* fix linux vcpkg build

* run vcpkg x-add-version

* fix macosx rbdl-orb build

* fix uwp build

* update version
  • Loading branch information
ju6ge committed Aug 5, 2021
1 parent 1a51d8b commit 43df49d
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ports/rbdl-orb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ORB-HD/rbdl-orb
REF b22abab856a90dbc62e6b2e79f148bd383b5ce43
SHA512 744a60145243454a9d148971d998ae7a3cc5b9d66131b5d6f3c7be80d6c9ef8b8bf4390b9d1b90b14be6c619c2e1d14c7c6104b3ca6e606e22e3581b548e4f9d
HEAD_REF master
)

vcpkg_from_github(
OUT_SOURCE_PATH PARSER_SOURCE_PATH
REPO ORB-HD/URDF_Parser
REF 0f3310d766c658b72d54560833012c8fe63ce9d7
SHA512 6cd8e300cc47b5a5370efb5a4cd843a1621e2832b790daedc1e260ba5bbcaaabdbcddce239f93c3900258093d483d332110ba7e9f0b4b6cda64ce51b6cf2365d
)
if(NOT EXISTS "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser/CMakeLists.txt")
file(REMOVE_RECURSE "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
file(RENAME "${PARSER_SOURCE_PATH}" "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
endif()

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
-DRBDL_BUILD_ADDON_LUAMODEL=ON
-DRBDL_BUILD_ADDON_GEOMETRY=ON
-DRBDL_BUILD_ADDON_URDFREADER=ON
-DRBDL_BUILD_EXECUTABLES=OFF
)

vcpkg_cmake_install()

# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_copy_pdbs()
19 changes: 19 additions & 0 deletions ports/rbdl-orb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "rbdl-orb",
"version": "3.0.0",
"description": "Rigid Body Dynamics Library - ORB",
"homepage": "https://github.com/orb-hd/rbdl-orb",
"dependencies": [
"boost",
"eigen3",
"lua",
{
"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 @@ -5528,6 +5528,10 @@
"baseline": "2.6.0",
"port-version": 0
},
"rbdl-orb": {
"baseline": "3.0.0",
"port-version": 0
},
"re2": {
"baseline": "2020-10-01",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/r-/rbdl-orb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d475aade9be86281a6db741ee68e30a23d0f16d3",
"version": "3.0.0",
"port-version": 0
}
]
}

0 comments on commit 43df49d

Please sign in to comment.