[simdjson] Update to v0.9.6 (#18479)

* [simdjson] Update to 0.9.6

* [simdjson] Update

* [simdjson] Overwrite version

* [simdjson] no-deprecated -> deprecated

Features need to be additive, not subtractive.

* [simdjson] Remove unnecessary code

* [simdjson] Overwrite version

* [simdjson] Enable deprecated APIs by default

* [simdjson] Overwrite version
This commit is contained in:
myd7349 2021-07-20 08:20:59 +08:00 committed by GitHub
parent 7c42464ca6
commit 637ab6863d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 21 deletions

View File

@ -1,23 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdjson/simdjson
REF c6c29c28278aeb29998e89f008908d951bb40c39 # v0.9.2
REF e9b893ff1b13c6a70135827c62b3f3d65938d135 # v0.9.6
HEAD_REF master
SHA512 2c033e8fa253103f00606b7a14502d19c06385f22d1d09ea4b1edc6f443ba51ee95d49c790a05a64e28cd03f4350118b23c3c7f759a60e26a43da658609a5317
SHA512 977b92ffae7219680f3d8567b1911b0d17ac1143a2ba58d7a4007cdcbf42dca6362853fcf3c3caf4af2029bc5f6a3cb8fab6139050a9d8539e8e4c7df646837d
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
exceptions SIMDJSON_EXCEPTIONS
threads SIMDJSON_ENABLE_THREADS
INVERTED_FEATURES
deprecated SIMDJSON_DISABLE_DEPRECATED_API
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_TARGET_ARCHITECTURE}" "arm64" SIMDJSON_IMPLEMENTATION_ARM64)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
-DSIMDJSON_IMPLEMENTATION_ARM64=${SIMDJSON_IMPLEMENTATION_ARM64}
-DSIMDJSON_JUST_LIBRARY=ON
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
-DSIMDJSON_COMPETITION=OFF
-DSIMDJSON_SANITIZE=OFF # issue 10145, pr 11495
-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}
)
vcpkg_cmake_install()
@ -26,13 +36,6 @@ vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/simdjson.h
"#if SIMDJSON_USING_LIBRARY"
"#if 1"
)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,6 @@
{
"name": "simdjson",
"version": "0.9.2",
"port-version": 1,
"version": "0.9.6",
"description": "A extremely fast JSON library that can parse gigabytes of JSON per second",
"homepage": "https://simdjson.org/",
"license": "Apache-2.0",
@ -14,5 +13,21 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"default-features": [
"deprecated",
"exceptions",
"threads"
],
"features": {
"deprecated": {
"description": "Enable deprecated APIs"
},
"exceptions": {
"description": "Enable exception-throwing interface"
},
"threads": {
"description": "Link with thread support"
}
}
}

View File

@ -5805,8 +5805,8 @@
"port-version": 0
},
"simdjson": {
"baseline": "0.9.2",
"port-version": 1
"baseline": "0.9.6",
"port-version": 0
},
"simple-fft": {
"baseline": "2020-06-14",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b913c5ecbf889a46c809032952c348605a78a391",
"version": "0.9.6",
"port-version": 0
},
{
"git-tree": "c9528b67438ec071c4108f925f3976b937f91469",
"version": "0.9.2",