Skip to content

Commit

Permalink
[rsocket] Remove keyword supports (#21911)
Browse files Browse the repository at this point in the history
* [rsocket] Remove keyword supports

* version

* clean up baseline
  • Loading branch information
JackBoosY authored Dec 10, 2021
1 parent de0afd0 commit 3887aff
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
30 changes: 14 additions & 16 deletions ports/rsocket/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# yarpl only support static build in Windows
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_fail_port_install(ON_ARCH "x64")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

Expand All @@ -15,30 +14,29 @@ vcpkg_from_github(
fix-find-dependencies.patch
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
-DBUILD_BENCHMARKS=OFF
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
vcpkg_copy_pdbs()

vcpkg_cmake_config_fixup(PACKAGE_NAME yarpl CONFIG_PATH lib/cmake/yarpl DO_NOT_DELETE_PARENT_CONFIG_PATH)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/rsocket)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")

file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/include/yarpl/perf
${CURRENT_PACKAGES_DIR}/include/yarpl/cmake
${CURRENT_PACKAGES_DIR}/include/yarpl/test
${CURRENT_PACKAGES_DIR}/include/rsocket/examples
${CURRENT_PACKAGES_DIR}/include/rsocket/test
"${CURRENT_PACKAGES_DIR}/include/yarpl/perf"
"${CURRENT_PACKAGES_DIR}/include/yarpl/cmake"
"${CURRENT_PACKAGES_DIR}/include/yarpl/test"
"${CURRENT_PACKAGES_DIR}/include/rsocket/examples"
"${CURRENT_PACKAGES_DIR}/include/rsocket/test"
)

vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
11 changes: 9 additions & 2 deletions ports/rsocket/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "rsocket",
"version-string": "2020.05.04.00",
"port-version": 2,
"port-version": 3,
"description": "C++ implementation of RSocket http://rsocket.io",
"homepage": "https:/rsocket/rsocket-cpp",
"supports": "!(windows & x64)",
"dependencies": [
"boost-context",
"boost-filesystem",
Expand All @@ -18,6 +17,14 @@
"gflags",
"glog",
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
]
}
3 changes: 0 additions & 3 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,6 @@ rsasynccpp:x64-osx=fail
rsm-binary-io:x64-linux=fail
# Requires g++10 but CI compiler only has g++9
rsm-bsa:x64-linux=fail
rsocket:x64-windows=fail
rsocket:x64-windows-static=fail
rsocket:x64-windows-static-md=fail
rtlsdr:x64-uwp=fail
rtlsdr:arm64-windows=fail
rtlsdr:arm-uwp=fail
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6074,7 +6074,7 @@
},
"rsocket": {
"baseline": "2020.05.04.00",
"port-version": 2
"port-version": 3
},
"rtabmap": {
"baseline": "0.20.13",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/rsocket.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "79beeb5c846c3ecdb386e7b3445adf1ac42314df",
"version-string": "2020.05.04.00",
"port-version": 3
},
{
"git-tree": "c7ad735194f400692ba373c493c23778cbfe2c79",
"version-string": "2020.05.04.00",
Expand Down

0 comments on commit 3887aff

Please sign in to comment.