Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nlohmann_json add single_include package #2865

Merged
merged 4 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
+)
16 changes: 16 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,16 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
keith marked this conversation as resolved.
Show resolved Hide resolved
bazel: [6.x, 7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
keith marked this conversation as resolved.
Show resolved Hide resolved
bazel: ${{ bazel }}
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-y2YcVMHHyumnPj3LQ/YO+SEFtVUtMsBBbbNDvp7QMbo="
},
"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": {}
}
Loading