2019-09-12 13:34:35 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cisco/libsrtp
|
2023-08-24 12:40:57 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 bd679ab65ccf22ca30fe867b9649a0b84cfa6fad6e22eb10f081141632f6dd56479a04d525b865f11fd46007303ca211065d9c170e4820d6ea7055403702340a
|
|
|
|
PATCHES
|
2022-11-02 11:03:09 +08:00
|
|
|
fix-runtime-destination.patch
|
2019-09-12 13:34:35 +08:00
|
|
|
)
|
|
|
|
|
2024-02-03 03:45:46 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
openssl ENABLE_OPENSSL
|
|
|
|
)
|
|
|
|
|
2022-02-17 09:51:28 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-28 12:00:19 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-02 11:03:09 +08:00
|
|
|
OPTIONS
|
|
|
|
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
2023-08-24 12:40:57 +08:00
|
|
|
-DTEST_APPS=OFF
|
2024-02-03 03:45:46 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-09-12 13:34:35 +08:00
|
|
|
)
|
|
|
|
|
2022-02-17 09:51:28 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2023-08-24 12:40:57 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libSRTP)
|
2019-09-12 13:34:35 +08:00
|
|
|
|
2021-09-28 12:00:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-12 13:34:35 +08:00
|
|
|
|
2023-08-24 12:40:57 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|