2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-09-04 02:14:33 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/guetzli
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 214f2bb42abf5a577c079d00add5d6cc470620d3 # accessed on 2020-09-14
|
|
|
|
SHA512 841cb14df4d27d3227e0ef8ecff6bd8a222d791abfc8fb593bf68996ed8861a9cc483f1a9b140023a247a5b1a350197601ca75a990507aaafa1b2dd03f8577d0
|
2017-09-04 02:14:33 +08:00
|
|
|
HEAD_REF master
|
2019-05-10 13:53:05 +08:00
|
|
|
PATCHES butteraugli.patch
|
2017-09-04 02:14:33 +08:00
|
|
|
)
|
|
|
|
|
2022-01-19 05:07:13 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-09-04 02:14:33 +08:00
|
|
|
|
2022-01-19 05:07:13 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-09-04 02:14:33 +08:00
|
|
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
|
|
|
)
|
|
|
|
|
2022-01-19 05:07:13 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-04 02:14:33 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-19 05:07:13 +08:00
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/guetzli")
|
2017-09-04 02:14:33 +08:00
|
|
|
|
2022-01-19 05:07:13 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/guetzli" RENAME copyright)
|