Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 16f2687

Browse files
committedDec 9, 2023
Add Bazel build files
1 parent 7b9f7bb commit 16f2687

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed
 

‎.bazelrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
common --enable_bzlmod

‎.bazelversion

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.4.0

‎BUILD.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cc_library(
2+
name = "xtl",
3+
hdrs = glob(["include/**"]),
4+
strip_include_prefix = "include",
5+
visibility = ["//visibility:public"],
6+
)

‎MODULE.bazel

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module(
2+
name = "xtl",
3+
)
4+
5+
bazel_dep(
6+
name = "doctest",
7+
version = "2.4.11",
8+
dev_dependency = True,
9+
)

‎test/BUILD.bazel

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cc_test(
2+
name = "test_xbase64",
3+
srcs = [
4+
"test_common_macros.hpp",
5+
"test_xbase64.cpp",
6+
],
7+
deps = [
8+
"//:xtl",
9+
"@doctest//doctest:main",
10+
],
11+
)

0 commit comments

Comments
 (0)
Please sign in to comment.