diff --git a/modules/jsoncons/0.177.0/MODULE.bazel b/modules/jsoncons/0.177.0/MODULE.bazel new file mode 100644 index 00000000000..07281743cc2 --- /dev/null +++ b/modules/jsoncons/0.177.0/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "jsoncons", + version = "0.177.0", + compatibility_level = 1, +) + +bazel_dep(name = "rules_foreign_cc", version = "0.12.0") diff --git a/modules/jsoncons/0.177.0/patches/add_build_file.patch b/modules/jsoncons/0.177.0/patches/add_build_file.patch new file mode 100644 index 00000000000..e34bd60f2e4 --- /dev/null +++ b/modules/jsoncons/0.177.0/patches/add_build_file.patch @@ -0,0 +1,22 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,19 @@ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_library( ++ name = "json", ++ hdrs = glob(["include/**/*.hpp"]) ++) ++ ++cmake( ++ name = "json_cmake", ++ out_binaries = ["unit_tests"] ++) ++ ++sh_test( ++ name = "unit_tests_as_sh" ++ src = "test.sh" ++ data = [ ++ "//:unit_tests" ++ ], ++) diff --git a/modules/jsoncons/0.177.0/patches/module_dot_bazel.patch b/modules/jsoncons/0.177.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..a84c5c16dbf --- /dev/null +++ b/modules/jsoncons/0.177.0/patches/module_dot_bazel.patch @@ -0,0 +1,10 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,7 @@ ++module( ++ name = "jsoncons", ++ version = "0.177.0", ++ compatibility_level = 1, ++) ++ ++bazel_dep(name = "rules_foreign_cc", version = "0.12.0") diff --git a/modules/jsoncons/0.177.0/patches/test_dot_sh.patch b/modules/jsoncons/0.177.0/patches/test_dot_sh.patch new file mode 100644 index 00000000000..b1a3dbf40ac --- /dev/null +++ b/modules/jsoncons/0.177.0/patches/test_dot_sh.patch @@ -0,0 +1,6 @@ +--- /dev/null ++++ test.sh +@@ -0,0 +1,3 @@ ++#!/usr/bin/env bash ++ ++./unit_tests diff --git a/modules/jsoncons/0.177.0/presubmit.yml b/modules/jsoncons/0.177.0/presubmit.yml new file mode 100644 index 00000000000..407a7ee3282 --- /dev/null +++ b/modules/jsoncons/0.177.0/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - debian12 + - ubuntu2204 + - macos + - macos_arm64 + - windows + +tasks: + run_tests: + name: Run tests + version: + platform: ${{ platform }} + bazel: 7.x + build_targets: + - '@jsoncons//:unit_tests' diff --git a/modules/jsoncons/0.177.0/source.json b/modules/jsoncons/0.177.0/source.json new file mode 100644 index 00000000000..b891d56da9f --- /dev/null +++ b/modules/jsoncons/0.177.0/source.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/danielaparker/jsoncons/archive/refs/tags/v0.177.0.zip", + "integrity": "sha256-zp8O4dvNxnczz55QsDj4HTYSG4APjRKj2J6lIyRX7dY=", + "strip_prefix": "jsoncons-0.177.0", + "patches": { + "add_build_file.patch": "sha256-YBWr5cjfLlKXvzgDKL8m2JD02s1OBGa/OReLKIDL0xc=", + "module_dot_bazel.patch": "sha256-7N+QhtRM69GuJtVqGLqkLZXLQYedIuaUXUlY1MdsxnM=", + "test_dot_sh.patch": "sha256-GoFJ7IcWoprnDCKUuDcPHrP4OPYfA1jDfPeausQEnl0=" + }, + "patch_strip": 0 +} diff --git a/modules/jsoncons/metadata.json b/modules/jsoncons/metadata.json new file mode 100644 index 00000000000..84dedb46f3a --- /dev/null +++ b/modules/jsoncons/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/danielaparker/jsoncons", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:danielaparker/jsoncons" + ], + "versions": [ + "0.177.0" + ], + "yanked_versions": {} +}