From 3887aff5e52223f07a4006e3812a207e557b44dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jack=C2=B7Boos=C2=B7Yu?= <47264268+JackBoosY@users.noreply.github.com> Date: Fri, 10 Dec 2021 08:59:30 +0800 Subject: [PATCH] [rsocket] Remove keyword supports (#21911) * [rsocket] Remove keyword supports * version * clean up baseline --- ports/rsocket/portfile.cmake | 30 ++++++++++++++---------------- ports/rsocket/vcpkg.json | 11 +++++++++-- scripts/ci.baseline.txt | 3 --- versions/baseline.json | 2 +- versions/r-/rsocket.json | 5 +++++ 5 files changed, 29 insertions(+), 22 deletions(-) diff --git a/ports/rsocket/portfile.cmake b/ports/rsocket/portfile.cmake index 4ae31c106ef0fe..a58e165c99e515 100644 --- a/ports/rsocket/portfile.cmake +++ b/ports/rsocket/portfile.cmake @@ -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() @@ -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) diff --git a/ports/rsocket/vcpkg.json b/ports/rsocket/vcpkg.json index cbaa74eb8b0435..850a34b37f03d4 100644 --- a/ports/rsocket/vcpkg.json +++ b/ports/rsocket/vcpkg.json @@ -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://github.com/rsocket/rsocket-cpp", - "supports": "!(windows & x64)", "dependencies": [ "boost-context", "boost-filesystem", @@ -18,6 +17,14 @@ "gflags", "glog", "openssl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, "zlib" ] } diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index fd505ccad6b75e..88689adb9c38ea 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -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 diff --git a/versions/baseline.json b/versions/baseline.json index 0e3a89fc1594f0..365ae5544dbb8a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6074,7 +6074,7 @@ }, "rsocket": { "baseline": "2020.05.04.00", - "port-version": 2 + "port-version": 3 }, "rtabmap": { "baseline": "0.20.13", diff --git a/versions/r-/rsocket.json b/versions/r-/rsocket.json index bccb827b42405f..0e11cfbbcdd813 100644 --- a/versions/r-/rsocket.json +++ b/versions/r-/rsocket.json @@ -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",