-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VL] Upgrade simdjson to 3.9.3 in vcpkg build (#5938)
- Loading branch information
Showing
5 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO simdjson/simdjson | ||
REF "v${VERSION}" | ||
HEAD_REF master | ||
SHA512 893ce0cb380b1418438f5910262325031f8071c4577589a491713f91c980964b4105c1e1aa7f2b9373deed40ecf6b48fe48a1aa243151e424f138f5418e4821c | ||
) | ||
|
||
vcpkg_check_features( | ||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
FEATURES | ||
exceptions SIMDJSON_EXCEPTIONS | ||
threads SIMDJSON_ENABLE_THREADS | ||
INVERTED_FEATURES | ||
deprecated SIMDJSON_DISABLE_DEPRECATED_API | ||
utf8-validation SIMDJSON_SKIPUTF8VALIDATION | ||
) | ||
|
||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC) | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
-DSIMDJSON_JUST_LIBRARY=ON | ||
-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() | ||
|
||
vcpkg_copy_pdbs() | ||
|
||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") | ||
|
||
vcpkg_fixup_pkgconfig() | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "simdjson", | ||
"version": "3.9.3", | ||
"description": "An extremely fast JSON library that can parse gigabytes of JSON per second", | ||
"homepage": "https://simdjson.org/", | ||
"license": "Apache-2.0", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"default-features": [ | ||
"deprecated", | ||
"exceptions", | ||
"threads", | ||
"utf8-validation" | ||
], | ||
"features": { | ||
"deprecated": { | ||
"description": "Enable deprecated APIs" | ||
}, | ||
"exceptions": { | ||
"description": "Enable exception-throwing interface" | ||
}, | ||
"threads": { | ||
"description": "Link with thread support" | ||
}, | ||
"utf8-validation": { | ||
"description": "Enable UTF-8 validation" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters