mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:49:08 +08:00
[robotraconteur] Add robotraconteur and robotraconteur-companion ports (#36596)
* Add robotraconteur port * version database * Add robotraconteur-companion port * version database * Install usage * Update manifests * Add dbus and libusb dependencies on linux * version database * Add back vcpkg-cmake dependency * version database * Disable robotraconteur on linux * version database * usage newline * Use vcpkg_cmake_config_fixup * Add back linux support * version database * Improve check for libbluetooth using pkgconfig * version database * Change libbluetooth check to warning * version database * Set PACKAGE_NAME in vcpkg_cmake_config_fixup * version database
This commit is contained in:
parent
2cb7bfd2ce
commit
73bc296b6f
37
ports/robotraconteur-companion/portfile.cmake
Normal file
37
ports/robotraconteur-companion/portfile.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO robotraconteur/robotraconteur_companion
|
||||
REF v0.3.1
|
||||
SHA512 ba6ac3777eb37411d1c52d3639aad668bc8bb6aa1a39e77a6b0288b6c130756f5bbbc0adcbaa13bb07fb152e76e29462eccc36c1cf1baf6aa0bfb81e3566a32f
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH ROBDEF_SOURCE_PATH
|
||||
REPO robotraconteur/robotraconteur_standard_robdef
|
||||
REF group1-v1
|
||||
SHA512 84724717e57c6e7ceefa957a8d94ee68db189e9a114564662d37b16a307735feea2a01c5622140118f537e6c084437d4bf11d0eb1e015b475fb3b636ed5009aa
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${ROBDEF_SOURCE_PATH}/group1 DESTINATION ${SOURCE_PATH}/robdef/)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
PACKAGE_NAME RobotRaconteurCompanion
|
||||
CONFIG_PATH "lib/cmake/RobotRaconteurCompanion"
|
||||
)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
5
ports/robotraconteur-companion/usage
Normal file
5
ports/robotraconteur-companion/usage
Normal file
@ -0,0 +1,5 @@
|
||||
The package robotraconteur-companion is compatible with built-in CMake targets:
|
||||
|
||||
find_package(RobotRaconteurCompanion REQUIRED)
|
||||
target_link_libraries(main PRIVATE RobotRaconteurCompanion)
|
||||
|
20
ports/robotraconteur-companion/vcpkg.json
Normal file
20
ports/robotraconteur-companion/vcpkg.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "robotraconteur-companion",
|
||||
"version-semver": "0.3.1",
|
||||
"homepage": "https://github.com/robotraconteur/robotraconteur_companion",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "(windows & (x86 | x64)) | (linux & (x86 | x64 | arm64)) | (osx & (x64 | arm64))",
|
||||
"dependencies": [
|
||||
"eigen3",
|
||||
"robotraconteur",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"yaml-cpp"
|
||||
]
|
||||
}
|
38
ports/robotraconteur/portfile.cmake
Normal file
38
ports/robotraconteur/portfile.cmake
Normal file
@ -0,0 +1,38 @@
|
||||
if(VCPKG_TARGET_IS_LINUX)
|
||||
MESSAGE(WARNING "${PORT} requires libbluetooth-dev from the system package manager.\nTry: 'sudo yum install libbluetooth-dev ' (or sudo apt-get install libbluetooth-dev)")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO robotraconteur/robotraconteur
|
||||
REF v1.0.0
|
||||
SHA512 c21dd0af579272c565dd66ca935aababfa3742db524fae66fe82c929561680608e5759ce954f31a8bbcb4ffb7c4e5314f2050b513ccddb8fb49a005c6cfa6d74
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_GEN=ON
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_tools(TOOL_NAMES RobotRaconteurGen AUTO_CLEAN)
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/robotraconteur)
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
PACKAGE_NAME RobotRaconteur
|
||||
CONFIG_PATH "lib/cmake/RobotRaconteur"
|
||||
)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
5
ports/robotraconteur/usage
Normal file
5
ports/robotraconteur/usage
Normal file
@ -0,0 +1,5 @@
|
||||
The package robotraconteur is compatible with built-in CMake targets:
|
||||
|
||||
find_package(RobotRaconteur REQUIRED)
|
||||
target_link_libraries(main PRIVATE RobotRaconteurCore)
|
||||
|
59
ports/robotraconteur/vcpkg.json
Normal file
59
ports/robotraconteur/vcpkg.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "robotraconteur",
|
||||
"version-semver": "1.0.0",
|
||||
"description": "The Robot Raconteur communication framework core library",
|
||||
"homepage": "http://robotraconteur.com",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "(windows & (x86 | x64)) | (linux & (x86 | x64 | arm64)) | (osx & (x64 | arm64))",
|
||||
"dependencies": [
|
||||
"boost-algorithm",
|
||||
"boost-array",
|
||||
"boost-asio",
|
||||
"boost-assign",
|
||||
"boost-atomic",
|
||||
"boost-bind",
|
||||
"boost-config",
|
||||
"boost-container",
|
||||
"boost-date-time",
|
||||
"boost-filesystem",
|
||||
"boost-foreach",
|
||||
"boost-format",
|
||||
"boost-function",
|
||||
"boost-interprocess",
|
||||
"boost-intrusive",
|
||||
"boost-lexical-cast",
|
||||
"boost-locale",
|
||||
"boost-program-options",
|
||||
"boost-random",
|
||||
"boost-range",
|
||||
"boost-regex",
|
||||
"boost-scope-exit",
|
||||
"boost-signals2",
|
||||
"boost-smart-ptr",
|
||||
"boost-thread",
|
||||
"boost-tuple",
|
||||
"boost-unordered",
|
||||
"boost-utility",
|
||||
"boost-uuid",
|
||||
{
|
||||
"name": "dbus",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "libusb",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "openssl",
|
||||
"platform": "!windows"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -999,6 +999,9 @@ rest-rpc:arm64-windows=skip
|
||||
rest-rpc:x64-linux=skip
|
||||
rest-rpc:x64-osx=skip
|
||||
rest-rpc:arm64-osx=skip
|
||||
# Missing system libraries
|
||||
robotraconteur:x64-linux=fail
|
||||
robotraconteur-companion:x64-linux=fail
|
||||
rpclib:arm64-windows=fail
|
||||
rpclib:arm64-uwp=fail
|
||||
rpclib:x64-uwp=fail
|
||||
|
@ -7624,6 +7624,14 @@
|
||||
"baseline": "1.2.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"robotraconteur": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"robotraconteur-companion": {
|
||||
"baseline": "0.3.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"rocksdb": {
|
||||
"baseline": "8.10.0",
|
||||
"port-version": 0
|
||||
|
9
versions/r-/robotraconteur-companion.json
Normal file
9
versions/r-/robotraconteur-companion.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ea627026fece9dea23b555957a5298e894c665b5",
|
||||
"version-semver": "0.3.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
9
versions/r-/robotraconteur.json
Normal file
9
versions/r-/robotraconteur.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3c14da3e3dcf13b70904a04d988437c786032398",
|
||||
"version-semver": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user