early-access version 2853
This commit is contained in:
41
externals/vcpkg/ports/simdjson/portfile.cmake
vendored
Executable file
41
externals/vcpkg/ports/simdjson/portfile.cmake
vendored
Executable file
@@ -0,0 +1,41 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO simdjson/simdjson
|
||||
REF v1.1.0
|
||||
HEAD_REF master
|
||||
SHA512 f8718bd039e1a25f0b95880b957c43e6eba6eada6bb7f58cedde37669a46b15b3ff9f4c4ea775e1cf949657642ef0472fa8bac5bdc98882df63e7f292fb5a723
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
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}")
|
||||
|
||||
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)
|
||||
33
externals/vcpkg/ports/simdjson/vcpkg.json
vendored
Executable file
33
externals/vcpkg/ports/simdjson/vcpkg.json
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "simdjson",
|
||||
"version-semver": "1.1.0",
|
||||
"description": "A 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"
|
||||
],
|
||||
"features": {
|
||||
"deprecated": {
|
||||
"description": "Enable deprecated APIs"
|
||||
},
|
||||
"exceptions": {
|
||||
"description": "Enable exception-throwing interface"
|
||||
},
|
||||
"threads": {
|
||||
"description": "Link with thread support"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user