2020-11-24 02:50:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO paullouisageneau/libdatachannel
|
2021-04-10 01:01:14 +08:00
|
|
|
REF v0.12.0
|
|
|
|
SHA512 878d0461255620c21597a6b7132ac0c9d1bcba19e32809cdd007039041eacc1f30a73b1c11c43b8b57a82ca1efeae2090822e6c5e13bd98f5afa086ec147e6e7
|
2020-11-24 02:50:37 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-for-vcpkg.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-04-10 01:01:14 +08:00
|
|
|
FEATURES
|
|
|
|
stdcall CAPI_STDCALL
|
2020-11-24 02:50:37 +08:00
|
|
|
INVERTED_FEATURES
|
2021-04-10 01:01:14 +08:00
|
|
|
ws NO_WEBSOCKET
|
|
|
|
srtp NO_MEDIA
|
2020-11-24 02:50:37 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DUSE_SYSTEM_SRTP=ON
|
|
|
|
-DNO_EXAMPLES=ON
|
|
|
|
-DNO_TESTS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libdatachannel)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|