mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 15:47:52 +08:00
30619e717a
* [libsrt] Update port to 1.5.0 * Remove unnecessary port-version and ci.baseline.txt entries. Co-authored-by: Billy O'Neal <bion@microsoft.com>
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Haivision/srt
|
|
REF v1.5.0
|
|
SHA512 68ab5fe316cfbbbba31b5b2354f657e23c90e14674f8dac01df2bf98c4776a7fafcd690a4dfad3a340e6be577a22360ca04ef2397c8a0dd507adebdd54dc22fb
|
|
HEAD_REF master
|
|
PATCHES fix-dependency-install.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KEYSTONE_BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" KEYSTONE_BUILD_SHARED)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tool ENABLE_APPS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DENABLE_CXX11=ON
|
|
-DENABLE_SHARED=${KEYSTONE_BUILD_STATIC}
|
|
-DENABLE_STATIC=${KEYSTONE_BUILD_SHARED}
|
|
-DENABLE_UNITTESTS=OFF
|
|
-DUSE_OPENSSL_PC=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|