2018-08-22 06:57:50 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO maxmind/libmaxminddb
|
2024-01-12 07:43:37 +08:00
|
|
|
REF "${VERSION}"
|
2024-10-08 03:08:55 +08:00
|
|
|
SHA512 52a34cf6d825884749695dfc2af90c4e333650cc83909f2bb83e16fc5ca43b92e0d08623434bbb7844212618f8e0ec0b793f8e648ba81ce4e3cb11faa875be71
|
2024-01-12 07:43:37 +08:00
|
|
|
HEAD_REF main
|
2018-08-22 06:57:50 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-01-12 07:43:37 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DCMAKE_SHARED_LIBRARY_PREFIX=lib
|
|
|
|
-DCMAKE_STATIC_LIBRARY_PREFIX=lib
|
2018-08-22 06:57:50 +08:00
|
|
|
OPTIONS_DEBUG
|
2024-01-12 07:43:37 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
2018-08-22 06:57:50 +08:00
|
|
|
)
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-22 06:57:50 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2024-01-12 07:43:37 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/maxminddb PACKAGE_NAME maxminddb)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2018-08-22 06:57:50 +08:00
|
|
|
# Handle copyright
|
2024-01-12 07:43:37 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|