Skip to content

Commit

Permalink
feat: nlohmann_json add single_header package
Browse files Browse the repository at this point in the history
  • Loading branch information
lromor committed Oct 1, 2024
1 parent f05a80a commit a26590b
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/nlohmann_json/3.11.3.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "nlohmann_json",
version = "3.11.3.bcr.1",
compatibility_level = 1,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- BUILD.bazel
+++ BUILD.bazel
@@ -51,3 +51,12 @@
visibility = ["//visibility:public"],
alwayslink = True,
)
+
+cc_library(
+ name = "singleheader/json",
+ hdrs = [
+ "single_include/nlohmann/json.hpp",
+ ],
+ includes = ["single_include"],
+ visibility = ["//visibility:public"],
+)
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.3.bcr.1",
+ compatibility_level = 1,
+)
14 changes: 14 additions & 0 deletions modules/nlohmann_json/3.11.3.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@nlohmann_json//:json'
- '@nlohmann_json//:singleheader/json'
9 changes: 9 additions & 0 deletions modules/nlohmann_json/3.11.3.bcr.1/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.3/include.zip",
"integrity": "sha256-oiRh0TEZrFx48gXT3x2xNAPljOG7F5TtyTE2dzE/Sp0=",
"patches": {
"module_dot_bazel.patch": "sha256-hPXI9p5q2IsjLrlh75uXr4zaNpsVkSxRebNg8FjgyS8=",
"add_singleheader_target.patch": "sha256-R1EUE5FIaDwmVXsuLFQ9d0vsjAxuWcGgVmSXJ7DcX6I="
},
"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 @@ -13,7 +13,8 @@
"versions": [
"3.6.1",
"3.11.2",
"3.11.3"
"3.11.3",
"3.11.3.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit a26590b

Please sign in to comment.