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)
|
2020-07-07 03:58:52 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2019-09-18 00:39:44 +08:00
|
|
|
|
2020-07-16 07:09:02 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libyuv/convert.h "#ifdef HAVE_JPEG" "#if 1")
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libyuv/convert_argb.h "#ifdef HAVE_JPEG" "#if 1")
|
|
|
|
|
2020-07-07 03:58:52 +08:00
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/libyuv-config.cmake ${CURRENT_PACKAGES_DIR}/share/libyuv COPYONLY)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|