mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 04:29:01 +08:00
6bf5ffffe8
* [brotli] Update to v1.1.0 * Fix dependent ports * [Freetype] Always link brotli common
30 lines
1.0 KiB
CMake
30 lines
1.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/brotli
|
|
REF v${VERSION} # v1.1.0
|
|
SHA512 6eb280d10d8e1b43d22d00fa535435923c22ce8448709419d676ff47d4a644102ea04f488fc65a179c6c09fee12380992e9335bad8dfebd5d1f20908d10849d9
|
|
HEAD_REF master
|
|
PATCHES
|
|
install.patch
|
|
fix-arm-uwp.patch
|
|
pkgconfig.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBROTLI_DISABLE_TESTS=ON
|
|
# Required for wasm32-emscripten triplet to avoid "install" being turned off
|
|
-DBROTLI_EMSCRIPTEN=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-brotli PACKAGE_NAME unofficial-brotli)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools")
|
|
vcpkg_copy_tools(TOOL_NAMES "brotli" SEARCH_DIR "${CURRENT_PACKAGES_DIR}/tools/brotli")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|