mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 19:17:50 +08:00
91dd61bd44
* [libwebp] Update to 1.3.0
* Fix [core] on x64-osx
* Fix features and dependencies
* Cleanup tool installation
* Usage
* Lift restriction for vwebp tool
* [mapnik] Fix libwebp
* [qt5-imageformats] Use libwebp pc files
* Revert "Lift restriction for vwebp tool"
This reverts commit 42e0273f65
.
* [gdal] Use upstream WebP config
* Revert no longer necessary changes to mapnik.
* Remove unnecessary patch that git checkout didn't remove.
---------
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
76 lines
2.5 KiB
CMake
76 lines
2.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO webmproject/libwebp
|
|
REF "v${VERSION}"
|
|
SHA512 96f73ba6caee4e65535721ca80faa976f51930eb6693e4499593e896f15269dfb756defabe7afbefb3bd2ef90afc0c95e3ba49d8020bc18589c34e9e680d955a
|
|
HEAD_REF master
|
|
PATCHES
|
|
0002-cmake-config.patch
|
|
0007-fix-arm-build.patch
|
|
0008-sdl.patch
|
|
0010-fix_build.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
anim WEBP_BUILD_ANIM_UTILS
|
|
cwebp WEBP_BUILD_CWEBP
|
|
dwebp WEBP_BUILD_DWEBP
|
|
extras WEBP_BUILD_EXTRAS
|
|
gif2webp WEBP_BUILD_GIF2WEBP
|
|
img2webp WEBP_BUILD_IMG2WEBP
|
|
info WEBP_BUILD_WEBPINFO
|
|
libwebpmux WEBP_BUILD_LIBWEBPMUX
|
|
mux WEBP_BUILD_WEBPMUX
|
|
nearlossless WEBP_NEAR_LOSSLESS
|
|
simd WEBP_ENABLE_SIMD
|
|
swap16bitcsp WEBP_ENABLE_SWAP_16BIT_CSP
|
|
unicode WEBP_UNICODE
|
|
vwebp WEBP_BUILD_VWEBP
|
|
vwebp-sdl CMAKE_REQUIRE_FIND_PACKAGE_SDL
|
|
INVERTED_FEATURES
|
|
vwebp-sdl CMAKE_DISABLE_FIND_PACKAGE_SDL
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
OPTIONS_DEBUG
|
|
-DWEBP_BUILD_ANIM_UTILS=OFF
|
|
-DWEBP_BUILD_CWEBP=OFF
|
|
-DWEBP_BUILD_DWEBP=OFF
|
|
-DWEBP_BUILD_EXTRAS=OFF
|
|
-DWEBP_BUILD_GIF2WEBP=OFF
|
|
-DWEBP_BUILD_IMG2WEBP=OFF
|
|
-DWEBP_BUILD_VWEBP=OFF
|
|
-DWEBP_BUILD_WEBPINFO=OFF
|
|
-DWEBP_BUILD_WEBPMUX=OFF
|
|
MAYBE_UNUSED_VARIABLES
|
|
CMAKE_DISABLE_FIND_PACKAGE_SDL
|
|
CMAKE_REQUIRE_FIND_PACKAGE_SDL
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME WebP CONFIG_PATH share/WebP/cmake)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_list(SET BIN_NAMES)
|
|
foreach(tool IN ITEMS get_disto gif2webp img2webp vwebp vwebp_sdl webpinfo webpmux webp_quality cwebp dwebp)
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/${tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
|
|
vcpkg_list(APPEND BIN_NAMES "${tool}")
|
|
endif()
|
|
endforeach()
|
|
if(NOT BIN_NAMES STREQUAL "")
|
|
vcpkg_copy_tools(TOOL_NAMES ${BIN_NAMES} AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|