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

[rbdl-orb] Adding RBDL-ORB to vcpkg #18883

Merged
merged 20 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from 6 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
53 changes: 53 additions & 0 deletions ports/rbdl-orb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)

find_program(GIT git)

set(GIT_URL "https://github.com/orb-hd/rbdl-orb.git")
set(GIT_REV "f75797ae4d0e138b9f64e13cfbf6706146b8bc0b")

set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/${PORT})
set(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled)


if(NOT EXISTS "${SOURCE_PATH}/.git")
message(STATUS "Cloning and fetching submodules")
vcpkg_execute_required_process(
COMMAND ${GIT} clone --recursive ${GIT_URL} ${SOURCE_PATH}
LOGNAME clone
)
endif()

message(STATUS "Pull latests commits")
vcpkg_execute_required_process(
COMMAND ${GIT} pull origin master
WORKING_DIRECTORY ${SOURCE_PATH}
LOGNAME checkout
)

message(STATUS "Checkout revision ${GIT_REV}")
vcpkg_execute_required_process(
COMMAND ${GIT} checkout ${GIT_REV}
WORKING_DIRECTORY ${SOURCE_PATH}
LOGNAME checkout
)
ju6ge marked this conversation as resolved.
Show resolved Hide resolved
ju6ge marked this conversation as resolved.
Show resolved Hide resolved

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
ju6ge marked this conversation as resolved.
Show resolved Hide resolved
-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()
20 changes: 20 additions & 0 deletions ports/rbdl-orb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
ju6ge marked this conversation as resolved.
Show resolved Hide resolved
"name": "rbdl-orb",
"version": "3.0.0",
"port-version": 0,
"description": "Rigid Body Dynamics Library - ORB",
"homepage": "https://github.com/orb-hd/rbdl-orb",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"eigen3",
"boost",
"lua"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5456,6 +5456,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": "44430319660c20a04eeea60bcd4eb63c80370251",
"version-string": "3.0.0",
"port-version": 0
}
]
}