early-access version 2853
This commit is contained in:
33
externals/vcpkg/ports/yyjson/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/yyjson/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ibireme/yyjson
|
||||
REF 0.5.0
|
||||
SHA512 6b2e051f7d5829acb9ca25ce97e4872f5517b3f291a30c6a86ec40f71670b8114f43c2d272410834a5c92b5203726b65696f06423bc6e5001dff2aabf5eb20d9
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
INVERTED_FEATURES
|
||||
reader YYJSON_DISABLE_READER
|
||||
writer YYJSON_DISABLE_WRITER
|
||||
fast-fp-conv YYJSON_DISABLE_FAST_FP_CONV
|
||||
non-standard YYJSON_DISABLE_NON_STANDARD
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DYYJSON_BUILD_TESTS=OFF
|
||||
-DYYJSON_BUILD_MISC=OFF
|
||||
)
|
||||
|
||||
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)
|
||||
37
externals/vcpkg/ports/yyjson/vcpkg.json
vendored
Executable file
37
externals/vcpkg/ports/yyjson/vcpkg.json
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "yyjson",
|
||||
"version": "0.5.0",
|
||||
"description": "A high performance JSON library written in ANSI C",
|
||||
"homepage": "https://github.com/ibireme/yyjson",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"fast-fp-conv",
|
||||
"non-standard",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"features": {
|
||||
"fast-fp-conv": {
|
||||
"description": "Build with custom floating-point number conversion"
|
||||
},
|
||||
"non-standard": {
|
||||
"description": "Build with support for non-standard JSON"
|
||||
},
|
||||
"reader": {
|
||||
"description": "Build with JSON reader"
|
||||
},
|
||||
"writer": {
|
||||
"description": "Build with JSON writer"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user