Skip to content

Commit

Permalink
Add Bazel build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn committed Dec 9, 2023
1 parent 7b9f7bb commit 16f2687
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
common --enable_bzlmod
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.0
6 changes: 6 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cc_library(
name = "xtl",
hdrs = glob(["include/**"]),
strip_include_prefix = "include",
visibility = ["//visibility:public"],
)
9 changes: 9 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module(
name = "xtl",
)

bazel_dep(
name = "doctest",
version = "2.4.11",
dev_dependency = True,
)
11 changes: 11 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cc_test(
name = "test_xbase64",
srcs = [
"test_common_macros.hpp",
"test_xbase64.cpp",
],
deps = [
"//:xtl",
"@doctest//doctest:main",
],
)

0 comments on commit 16f2687

Please sign in to comment.