diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/simdjson | |
Diffstat (limited to 'vcpkg/ports/simdjson')
| -rw-r--r-- | vcpkg/ports/simdjson/portfile.cmake | 44 | ||||
| -rw-r--r-- | vcpkg/ports/simdjson/vcpkg.json | 37 |
2 files changed, 81 insertions, 0 deletions
diff --git a/vcpkg/ports/simdjson/portfile.cmake b/vcpkg/ports/simdjson/portfile.cmake new file mode 100644 index 0000000..22986c0 --- /dev/null +++ b/vcpkg/ports/simdjson/portfile.cmake @@ -0,0 +1,44 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO simdjson/simdjson
+ REF "v${VERSION}"
+ HEAD_REF master
+ SHA512 3b6b13f8e969d1ad24f2656c78e80efeb1868fea1871362920e1aa0d0d59382ae2bf174b81329edce52a659a5a4583919629bab639aac52d2d853791886ed6a0
+)
+
+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" "${SOURCE_PATH}/LICENSE-MIT")
diff --git a/vcpkg/ports/simdjson/vcpkg.json b/vcpkg/ports/simdjson/vcpkg.json new file mode 100644 index 0000000..8f31e76 --- /dev/null +++ b/vcpkg/ports/simdjson/vcpkg.json @@ -0,0 +1,37 @@ +{ + "name": "simdjson", + "version": "4.2.2", + "description": "An extremely fast JSON library that can parse gigabytes of JSON per second", + "homepage": "https://simdjson.org/", + "license": "Apache-2.0 OR MIT", + "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" + } + } +} |