2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-10-25 20:05:17 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
2018-04-21 09:41:24 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-10-26 12:11:27 +08:00
|
|
|
REPO google/leveldb
|
2019-06-18 01:56:03 +08:00
|
|
|
REF 1.22
|
2022-10-26 12:11:27 +08:00
|
|
|
SHA512 f9bbf5f466e7f707b94e19261762319ea9f65d41911690e84f59098551e2e69beccf756a414d705ade74ee96fd979bdb8b94c171c6f2cc83873cbd4a9380dbab
|
2019-06-18 01:56:03 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-07-16 02:20:11 +08:00
|
|
|
fix_config.patch
|
2022-02-16 12:34:42 +08:00
|
|
|
fix-dependencies.patch
|
2023-09-21 00:51:12 +08:00
|
|
|
fix-util-install.patch
|
2017-10-25 20:05:17 +08:00
|
|
|
)
|
|
|
|
|
2022-02-16 12:34:42 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/leveldbConfig.cmake.in" DESTINATION "${SOURCE_PATH}/cmake")
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2022-10-26 12:11:27 +08:00
|
|
|
crc32c WITH_CRC32C
|
|
|
|
snappy WITH_SNAPPY
|
2022-02-16 12:34:42 +08:00
|
|
|
)
|
2019-07-16 02:20:11 +08:00
|
|
|
|
2022-02-16 12:34:42 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-10-26 12:11:27 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DLEVELDB_BUILD_TESTS=OFF
|
|
|
|
-DLEVELDB_BUILD_BENCHMARKS=OFF
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_HEADERS=OFF
|
2017-10-25 20:05:17 +08:00
|
|
|
)
|
|
|
|
|
2022-02-16 12:34:42 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-10-25 20:05:17 +08:00
|
|
|
|
2022-10-26 12:11:27 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2019-07-16 02:20:11 +08:00
|
|
|
|
2022-02-16 12:34:42 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-06-18 01:56:03 +08:00
|
|
|
|
2023-09-21 00:51:12 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|