Skip to content

Commit 619d7fb

Browse files
committed
Added module.bazel
1 parent a01dc4a commit 619d7fb

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

MODULE.bazel

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
###############################################################################
2+
# Bazel now uses Bzlmod by default to manage external dependencies.
3+
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4+
#
5+
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
6+
###############################################################################
7+
module(name = "cpp-template", version = "1.0")
8+
9+
bazel_dep(name = "rules_cc", version = "0.0.12")
10+
11+
bazel_dep(name = "glog", version = "0.7.1")
12+
bazel_dep(name = "gflags", version = "2.2.2")
13+
bazel_dep(name = "abseil-cpp", version = "20250512.0")
14+
15+
bazel_dep(name = "usr_local", version = "1.0")
16+
bazel_dep(name = "zlib", version = "1.0")
17+
18+
local_path_override(
19+
module_name = "usr_local",
20+
path = "third_party/usr_local_override",
21+
)
22+
23+
local_path_override(
24+
module_name = "zlib",
25+
path = "third_party/zlib_override",
26+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module(name = "usr_local", version = "1.0")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cc_library(
2+
name = "usr_local_libs",
3+
hdrs = glob(["include/**/*.h"]),
4+
includes = ["include"],
5+
linkopts = ["-L/usr/local/lib"],
6+
visibility = ["//visibility:public"],
7+
)

0 commit comments

Comments
 (0)