aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/yyjson
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/yyjson
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/yyjson')
-rw-r--r--vcpkg/ports/yyjson/portfile.cmake33
-rw-r--r--vcpkg/ports/yyjson/vcpkg.json46
2 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/yyjson/portfile.cmake b/vcpkg/ports/yyjson/portfile.cmake
new file mode 100644
index 0000000..ab645f2
--- /dev/null
+++ b/vcpkg/ports/yyjson/portfile.cmake
@@ -0,0 +1,33 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ibireme/yyjson
+ REF "${VERSION}"
+ SHA512 a468477544f40a13595eb0afa74857b669b0cf0bf3258678541368863cc3a27fa6f43cc2ef1f4c6103c81b798cea2f67cc14268789de3965e1315a44972c713f
+ 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_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/yyjson/vcpkg.json b/vcpkg/ports/yyjson/vcpkg.json
new file mode 100644
index 0000000..73fc15a
--- /dev/null
+++ b/vcpkg/ports/yyjson/vcpkg.json
@@ -0,0 +1,46 @@
+{
+ "name": "yyjson",
+ "version": "0.12.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",
+ "dependencies": [
+ {
+ "name": "yyjson",
+ "default-features": false,
+ "features": [
+ "reader"
+ ]
+ }
+ ]
+ }
+ }
+}