mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 14:37:51 +08:00
[libsrtp] Add Exported CMake Targets for LibSRTP (#20720)
* [libsrtp] Don't Use Deprecated Vcpkg Functions * [libsrtp] Add CMake Targets Patch * Bump port-version. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
49a30e9db1
commit
09744c6200
@ -1,8 +1,15 @@
|
|||||||
|
vcpkg_download_distfile(CMAKE_PR_PATCH
|
||||||
|
URLS https://patch-diff.githubusercontent.com/raw/cisco/libsrtp/pull/573.diff
|
||||||
|
FILENAME libsrtp-pr-573.patch
|
||||||
|
SHA512 58c07977ccbd3dce114f59583a5e10813bbee907af5ef23ec1961b4cfd0791c14326845a376470430978e878c78fb1f598851898a9e9031225628739fb248176
|
||||||
|
)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO cisco/libsrtp
|
REPO cisco/libsrtp
|
||||||
REF v2.4.2
|
REF v2.4.2
|
||||||
SHA512 6E4805E6D34B2050A6F68F629B0B42356B1D27F2CBAA6CC6166E56957609C3D9AA6B723DCC674E5C74180D122D27BADD2F9496639CCB1E0C210B9E1F7949D0E2
|
SHA512 6E4805E6D34B2050A6F68F629B0B42356B1D27F2CBAA6CC6166E56957609C3D9AA6B723DCC674E5C74180D122D27BADD2F9496639CCB1E0C210B9E1F7949D0E2
|
||||||
|
PATCHES ${CMAKE_PR_PATCH}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (VCPKG_TARGET_IS_WINDOWS)
|
if (VCPKG_TARGET_IS_WINDOWS)
|
||||||
@ -10,12 +17,16 @@ if (VCPKG_TARGET_IS_WINDOWS)
|
|||||||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /wd4703")
|
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /wd4703")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
|
vcpkg_cmake_config_fixup(
|
||||||
|
CONFIG_PATH lib/cmake/libSRTP
|
||||||
|
)
|
||||||
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "libsrtp",
|
"name": "libsrtp",
|
||||||
"version": "2.4.2",
|
"version": "2.4.2",
|
||||||
"description": "This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel."
|
"port-version": 1,
|
||||||
|
"description": "This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), and a supporting cryptographic kernel.",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake",
|
||||||
|
"host": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake-config",
|
||||||
|
"host": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -3962,7 +3962,7 @@
|
|||||||
},
|
},
|
||||||
"libsrtp": {
|
"libsrtp": {
|
||||||
"baseline": "2.4.2",
|
"baseline": "2.4.2",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"libssh": {
|
"libssh": {
|
||||||
"baseline": "0.9.6",
|
"baseline": "0.9.6",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "a7e8bce682acd4a29f666961a69127864cd93374",
|
||||||
|
"version": "2.4.2",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "20d89602c93b0aa1df176a8610b514b014375c8c",
|
"git-tree": "20d89602c93b0aa1df176a8610b514b014375c8c",
|
||||||
"version": "2.4.2",
|
"version": "2.4.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user