mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
9555c11202
* libdatachannel port * Fixed various things for pr. * Update to v0.9.2 * Update to 0.9.4 and enable SRTP feature * Add openssl dependency * Fix usrsctp find_library * Flip the sense of the websockets feature and use a manifest instead of CONTROL file. * Need to update libjuice and libdatachannel but there is now a USE_SRTP option. * Update libdatachannel for USE_SRTP Option * Update libdatachannel to v0.10.1 Co-authored-by: Nemirtingas <nanaki89@hotmail.fr> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
35 lines
934 B
CMake
35 lines
934 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO paullouisageneau/libdatachannel
|
|
REF v0.10.1
|
|
SHA512 195f564776b2a7ab6fe3a838d55be7fa03b72a5f08faaba5ddefac59ae1fff28f3ee0b9ed5dc17a7ef9155a1d30a61f8c593f2a108f60e415ffd213188e081bd
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-for-vcpkg.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
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(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|