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
|
2021-04-30 07:14:01 +08:00
|
|
|
REF 287158925b0e03ea4499a18b4e08478c5781541b #2021-4-15
|
2019-09-18 00:39:44 +08:00
|
|
|
PATCHES
|
|
|
|
fix_cmakelists.patch
|
2019-10-30 14:05:27 +08:00
|
|
|
fix-build-type.patch
|
2021-12-08 04:34:46 +08:00
|
|
|
deprecated-warning.patch
|
2019-09-18 00:39:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(POSTFIX d)
|
2021-12-08 04:34:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-09-18 00:39:44 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS_DEBUG
|
2019-10-24 06:09:47 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=${POSTFIX}
|
2019-09-18 00:39:44 +08:00
|
|
|
)
|
|
|
|
|
2021-12-08 04:34:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-30 14:05:27 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-09-18 00:39:44 +08:00
|
|
|
|
2021-12-08 04:34:46 +08:00
|
|
|
vcpkg_cmake_config_fixup(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")
|
|
|
|
|
2021-04-30 07:14:01 +08:00
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/libyuv-config.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT} COPYONLY)
|
2020-07-07 03:58:52 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|