2020-08-01 02:07:14 +08:00
|
|
|
# yarpl only support static build in Windows
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-12-13 11:31:37 +08:00
|
|
|
REPO rsocket/rsocket-cpp
|
|
|
|
REF 45ed594ebd6701f40795c31ec922d784ec7fc921
|
|
|
|
SHA512 51871253524b93a9622fa0f562019605b6034e4089cd955810050b4d43ff020813d632ea1e91bcaca0a8659638908c51df6eb686ba4f6583d4c15c04d5dc35bd
|
2020-08-01 02:07:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-cmake-config.patch
|
|
|
|
fix-find-dependencies.patch
|
2021-12-13 11:31:37 +08:00
|
|
|
use-cpp-17.patch
|
2022-02-10 05:05:38 +08:00
|
|
|
fix-folly.patch
|
2020-08-01 02:07:14 +08:00
|
|
|
)
|
|
|
|
|
2021-12-10 08:59:30 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-01 02:07:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_BENCHMARKS=OFF
|
|
|
|
)
|
|
|
|
|
2021-12-10 08:59:30 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-01 02:07:14 +08:00
|
|
|
|
2021-12-10 08:59:30 +08:00
|
|
|
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)
|
2020-08-01 02:07:14 +08:00
|
|
|
|
2021-12-10 08:59:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-08-01 02:07:14 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-12-10 08:59:30 +08:00
|
|
|
"${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"
|
2020-08-01 02:07:14 +08:00
|
|
|
)
|
|
|
|
|
2021-12-10 08:59:30 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|