2019-03-03 20:09:01 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-07-08 04:54:46 +08:00
|
|
|
REPO simdjson/simdjson
|
2023-03-15 05:13:02 +08:00
|
|
|
REF "v${VERSION}"
|
2019-03-03 20:09:01 +08:00
|
|
|
HEAD_REF master
|
2023-03-28 02:55:10 +08:00
|
|
|
SHA512 72f27b010e659025f9c8842daf79364d0d0f40cddd66858956ab4fa4f3f3a631fe342f440201d58ed9af42a4356aafafaac8d3caf3317dd1a6314dad3a71081a
|
2021-07-20 08:20:59 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
exceptions SIMDJSON_EXCEPTIONS
|
|
|
|
threads SIMDJSON_ENABLE_THREADS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
deprecated SIMDJSON_DISABLE_DEPRECATED_API
|
2023-03-15 05:13:02 +08:00
|
|
|
utf8-validation SIMDJSON_SKIPUTF8VALIDATION
|
2019-03-03 20:09:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
|
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-08 23:02:07 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-03-03 20:09:01 +08:00
|
|
|
OPTIONS
|
2020-07-08 04:54:46 +08:00
|
|
|
-DSIMDJSON_JUST_LIBRARY=ON
|
2021-07-20 08:20:59 +08:00
|
|
|
-DSIMDJSON_SANITIZE_UNDEFINED=OFF
|
|
|
|
-DSIMDJSON_SANITIZE=OFF
|
|
|
|
-DSIMDJSON_SANITIZE_THREADS=OFF
|
|
|
|
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
|
|
|
|
-DSIMDJSON_DEVELOPMENT_CHECKS=OFF
|
|
|
|
-DSIMDJSON_VERBOSE_LOGGING=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2019-03-03 20:09:01 +08:00
|
|
|
)
|
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-03 20:09:01 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-22 14:54:19 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2022-10-10 23:40:53 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2021-07-20 08:20:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|