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
|
|
|
|
REPO rsocket/rsocket-cpp #v2020.05.04.00
|
|
|
|
REF 8038d05e741c3d3ecd6adb069b4a1b3daa230e14
|
|
|
|
SHA512 d7bc93af7b6130d73fa0823f534ad57a531dfa7d7aa990a2a1a1b72b6761db7eeb60573d0d38f55daa991554e3ab4ac507047f8051a4390b3343cd708a48efbb
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-cmake-config.patch
|
|
|
|
fix-find-dependencies.patch
|
|
|
|
)
|
|
|
|
|
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)
|