mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 16:39:01 +08:00
75e0c3dc8f
* [libsrtp] Added openssl feature flag for enabling OpenSSL support * [libsrtp] Fixed JSON mixup * [libsrtp]: Format vcpkg.json * [libsrtp]: Update version database * [libsrtp] Update ports/libsrtp/portfile.cmake * Use vcpkg_check_features appropriately Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * [libsrtp] Update version database * [libsrtp]: Added port-version, clean up whitespace * [libsrtp]: Updated version database * [libsrtp] Update versions/l-/libsrtp.json Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
30 lines
834 B
CMake
30 lines
834 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cisco/libsrtp
|
|
REF "v${VERSION}"
|
|
SHA512 bd679ab65ccf22ca30fe867b9649a0b84cfa6fad6e22eb10f081141632f6dd56479a04d525b865f11fd46007303ca211065d9c170e4820d6ea7055403702340a
|
|
PATCHES
|
|
fix-runtime-destination.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
openssl ENABLE_OPENSSL
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
|
-DTEST_APPS=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libSRTP)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|