mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:59:02 +08:00
be99ba1f5a
* [libyuv]Build corresponding type library according to BUILD_SHARED_LIBS. * [libyuv]Always use static build.
28 lines
706 B
CMake
28 lines
706 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_git(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
URL https://chromium.googlesource.com/libyuv/libyuv
|
|
REF fec9121b676eccd9acea2460aec7d6ae219701b9
|
|
PATCHES
|
|
fix_cmakelists.patch
|
|
fix-build-type.patch
|
|
)
|
|
|
|
set(POSTFIX d)
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_DEBUG
|
|
-DCMAKE_DEBUG_POSTFIX=${POSTFIX}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libyuv)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libyuv RENAME copyright)
|