From 52b26693c22e0d8614234b6708c459541121122f Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 11 Mar 2024 00:15:11 +0100 Subject: [PATCH] chore(bazel): add MODULE.bazel files for bzlmod Signed-off-by: Matthieu MOREL --- .gitignore | 3 +++ BUILD.bazel | 4 +++- MODULE.bazel | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 MODULE.bazel diff --git a/.gitignore b/.gitignore index 9682782fa..b91741d2b 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,6 @@ compile_commands.json # temps /version + +# Bazel +MODULE.bazel.lock diff --git a/BUILD.bazel b/BUILD.bazel index 6d7ac3da9..f0583a810 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["unencumbered"]) # Public Domain or MIT exports_files(["LICENSE"]) @@ -14,9 +16,9 @@ cc_library( "include/json/allocator.h", "include/json/assertions.h", "include/json/config.h", - "include/json/json_features.h", "include/json/forwards.h", "include/json/json.h", + "include/json/json_features.h", "include/json/reader.h", "include/json/value.h", "include/json/version.h", diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 000000000..ad208089c --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "jsoncpp", + version = "1.9.5", +) + +bazel_dep( + name = "rules_cc", + version = "0.0.9", +) +# -- bazel_dep definitions -- #