mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 06:35:24 +08:00
0fc5f349d2
* Update libsrtp to 2.4.2 * Update CI baseline * More tweaks * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com>
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cisco/libsrtp
|
|
REF v2.4.2
|
|
SHA512 6E4805E6D34B2050A6F68F629B0B42356B1D27F2CBAA6CC6166E56957609C3D9AA6B723DCC674E5C74180D122D27BADD2F9496639CCB1E0C210B9E1F7949D0E2
|
|
)
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /wd4703")
|
|
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /wd4703")
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/srtp2.dll")
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/srtp2.dll" "${CURRENT_PACKAGES_DIR}/bin/srtp2.dll")
|
|
endif()
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/srtp2.dll")
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/srtp2.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/srtp2.dll")
|
|
endif()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libsrtp" RENAME copyright)
|