2019-09-18 00:39:44 +08:00
|
|
|
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
|
2019-10-30 14:05:27 +08:00
|
|
|
fix-build-type.patch
|
2019-09-18 00:39:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(POSTFIX d)
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
2019-10-24 06:09:47 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=${POSTFIX}
|
2019-09-18 00:39:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-10-30 14:05:27 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-09-18 00:39:44 +08:00
|
|
|
|
2019-10-30 14:05:27 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libyuv)
|
2019-10-24 06:09:47 +08:00
|
|
|
|
2019-10-30 14:05:27 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-09-18 00:39:44 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libyuv RENAME copyright)
|