2017-05-24 06:08:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/brotli
|
2020-09-28 08:41:18 +08:00
|
|
|
REF e61745a6b7add50d380cfd7d3883dd6c62fc2c71 # v1.0.9
|
|
|
|
SHA512 303444695600b70ce59708e06bf21647d9b8dd33d772c53bbe49320f2f8f95ca8a7d6df2d29b7f36ff99001967e2d28380e0e305d778031940a3a5c6585f9a4f
|
2017-05-24 06:08:19 +08:00
|
|
|
HEAD_REF master
|
2020-02-26 06:18:40 +08:00
|
|
|
PATCHES
|
|
|
|
install.patch
|
|
|
|
fix-arm-uwp.patch
|
2020-08-07 04:07:46 +08:00
|
|
|
pkgconfig.patch
|
2017-05-24 06:08:19 +08:00
|
|
|
)
|
2017-05-24 04:09:58 +08:00
|
|
|
|
2022-07-27 01:29:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBROTLI_DISABLE_TESTS=ON
|
2023-02-08 07:00:51 +08:00
|
|
|
# Required for wasm32-emscripten triplet to avoid "install" being turned off
|
|
|
|
-DBROTLI_EMSCRIPTEN=OFF
|
2017-05-24 04:09:58 +08:00
|
|
|
)
|
2022-07-27 01:29:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-02-26 06:18:40 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-12-03 01:39:16 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-02-26 06:18:40 +08:00
|
|
|
|
2022-12-03 01:39:16 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/unofficial-brotli-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-brotli")
|
2022-07-27 01:29:21 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-brotli PACKAGE_NAME unofficial-brotli)
|
2020-08-07 04:07:46 +08:00
|
|
|
|
2022-07-27 01:29:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools")
|
2022-12-03 01:39:16 +08:00
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/brotli")
|
2017-12-13 22:20:07 +08:00
|
|
|
|
2022-12-03 01:39:16 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2022-07-27 01:29:21 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|