mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 12:55:50 +08:00
b2fabd08c6
* feat(libdatachannel): update to 0.17.10 * feat(libdatachannel): update to 0.17.10 port * feat(libdatachannel): update to 0.17.10 port 2 * feat(libdatachannel): update to 0.17.10 port 3 * feat(libdatachannel): update to 0.17.10 port 4 * feat(libdatachannel): update to 0.17.10 port 5
51 lines
1.5 KiB
CMake
51 lines
1.5 KiB
CMake
set(PATCHES 0001-fix-for-vcpkg.patch)
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
list(APPEND PATCHES uwp-warnings.patch)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO paullouisageneau/libdatachannel
|
|
REF 04cf4738961f55ba3f0aa39b4a61342f66bb3781 #v0.17.10
|
|
SHA512 766650c091326b7fcca2627fa5957db303a1157f8d514cce07fc15f539152683919b29ea23a486e755915b8225d678648c05a2fb60a5d7f05786e4d93f1ff409
|
|
HEAD_REF master
|
|
PATCHES
|
|
${PATCHES}
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
stdcall CAPI_STDCALL
|
|
INVERTED_FEATURES
|
|
ws NO_WEBSOCKET
|
|
srtp NO_MEDIA
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DUSE_SYSTEM_SRTP=ON
|
|
-DUSE_SYSTEM_JUICE=ON
|
|
-DNO_EXAMPLES=ON
|
|
-DNO_TESTS=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME LibDataChannel CONFIG_PATH lib/cmake/LibDataChannel)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" DATACHANNEL_CONFIG)
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" "
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(Threads)
|
|
find_dependency(OpenSSL)
|
|
find_dependency(LibJuice)
|
|
${DATACHANNEL_CONFIG}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|