Skip to content

Commit

Permalink
Add nlohmann_json 3.11.2 (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Jan 19, 2023
1 parent 1484f4c commit 03b96a6
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/nlohmann_json/3.11.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "nlohmann_json",
version = "3.11.2",
compatibility_level = 1,
)
14 changes: 14 additions & 0 deletions modules/nlohmann_json/3.11.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,11 @@
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+ name = "json",
+ srcs = glob(
+ ["include/nlohmann/**/*.hpp"],
+ exclude = ["include/nlohmann/json.hpp"],
+ ),
+ hdrs = ["include/nlohmann/json.hpp"],
+ includes = ["include"],
+)
8 changes: 8 additions & 0 deletions modules/nlohmann_json/3.11.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "nlohmann_json",
+ version = "3.11.2",
+ compatibility_level = 1,
+)
13 changes: 13 additions & 0 deletions modules/nlohmann_json/3.11.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@nlohmann_json//:json'
9 changes: 9 additions & 0 deletions modules/nlohmann_json/3.11.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip",
"integrity": "sha256-5cep9JoWgUvifk7Q7pAOzQCSv7fb/KZbWkIbd03Mqu0=",
"patches": {
"add_build_file.patch": "sha256-q7pmw7dn3H7Le3BgkydhrvZG+1e75JisnM+PLaPjCI0=",
"module_dot_bazel.patch": "sha256-4E6P0FnfLJWN8VA/XZ5FYHckplxTTGMS3BZS7YtA26A="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/nlohmann_json/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"github:nlohmann/json"
],
"versions": [
"3.6.1"
"3.6.1",
"3.11.2"
],
"yanked_versions": {}
}

0 comments on commit 03b96a6

Please sign in to comment.