Skip to content

Commit 52b2669

Browse files
committed
chore(bazel): add MODULE.bazel files for bzlmod
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 69098a1 commit 52b2669

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ compile_commands.json
5555

5656
# temps
5757
/version
58+
59+
# Bazel
60+
MODULE.bazel.lock

BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
licenses(["unencumbered"]) # Public Domain or MIT
24

35
exports_files(["LICENSE"])
@@ -14,9 +16,9 @@ cc_library(
1416
"include/json/allocator.h",
1517
"include/json/assertions.h",
1618
"include/json/config.h",
17-
"include/json/json_features.h",
1819
"include/json/forwards.h",
1920
"include/json/json.h",
21+
"include/json/json_features.h",
2022
"include/json/reader.h",
2123
"include/json/value.h",
2224
"include/json/version.h",

MODULE.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module(
2+
name = "jsoncpp",
3+
version = "1.9.5",
4+
)
5+
6+
bazel_dep(
7+
name = "rules_cc",
8+
version = "0.0.9",
9+
)
10+
# -- bazel_dep definitions -- #

0 commit comments

Comments
 (0)