mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
f2e53addee
* Update libjuice and libdatachannel * Update libjuice * Update baseline * Update libdatachannel to 0.14.1 Fixes *-uwp. * Update baseline. * Fix nettle discovery * Fix usrsctp library path. * Fix libdatachannel not being built SHARED. * Update baseline. Co-authored-by: Nemirtingas <nanaki89@hotmail.fr>
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO paullouisageneau/libdatachannel
|
|
REF v0.14.1
|
|
SHA512 a0eb834eacdb5aef644fc4456b5087742aab37ac58e2871daa7ba2ac25cab4ddb530bd0a12cf5f4754c28749a2f59fc2fb3e2ae945b867cec8aaad22f4ac71c6
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-for-vcpkg.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
stdcall CAPI_STDCALL
|
|
INVERTED_FEATURES
|
|
ws NO_WEBSOCKET
|
|
srtp NO_MEDIA
|
|
)
|
|
|
|
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(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/libdatachannel-config.cmake DATACHANNEL_CONFIG)
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/libdatachannel-config.cmake "
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(Threads)
|
|
find_dependency(OpenSSL)
|
|
find_dependency(libjuice)
|
|
${DATACHANNEL_CONFIG}")
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|