2020-02-05 04:33:32 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
2021-09-08 23:00:54 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO uber/h3
|
2023-01-24 16:45:10 +08:00
|
|
|
REF v4.1.0
|
|
|
|
SHA512 4f640cbe8061acdacf71e517c0f90f0f89b06bbdb265cb53f2b96c9fa91ba5488f726e9d9f0547615fb9355a7fe602fad237015d0d71aaf2551066690c0b5942
|
2021-09-08 23:00:54 +08:00
|
|
|
HEAD_REF master
|
2020-02-05 04:33:32 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 23:00:54 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2020-02-05 04:33:32 +08:00
|
|
|
-DBUILD_BENCHMARKS=OFF
|
2023-01-24 16:45:10 +08:00
|
|
|
-DBUILD_FUZZERS=OFF
|
2020-02-05 04:33:32 +08:00
|
|
|
-DBUILD_FILTERS=OFF
|
|
|
|
-DBUILD_GENERATORS=OFF
|
2023-01-24 16:45:10 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2020-02-05 04:33:32 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 23:00:54 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-02-05 04:33:32 +08:00
|
|
|
|
2021-09-08 23:00:54 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2020-02-05 04:33:32 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-08 23:00:54 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-02-05 04:33:32 +08:00
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|