Skip to content

Commit 9e42a0e

Browse files
committed
feat: initial bzlmod support
1 parent f2fbbd8 commit 9e42a0e

File tree

6 files changed

+86
-0
lines changed

6 files changed

+86
-0
lines changed

.bazelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
common --enable_bzlmod
3+
build --incompatible_use_platforms_repo_for_constraints
4+
build --incompatible_enable_cc_toolchain_resolution
5+
build --incompatible_strict_action_env
6+
build --enable_runfiles
7+
build --registry=https://raw.githubusercontent.com/bazelboost/registry/main
8+
build --registry=https://bcr.bazel.build
9+
10+
try-import %workspace%/user.bazelrc
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Bzlmod Archive
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
bzlmod-archive:
9+
uses: bazelboost/registry/.github/workflows/bzlmod-archive.yml@main
10+
secrets: inherit
11+
permissions:
12+
contents: write

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
/bazel-*
3+
/external
4+
/.cache
5+
/compile_commands.json
6+
user.bazelrc

BUILD.bazel

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "boost.asio",
7+
hdrs = glob([
8+
"include/**/*.hpp",
9+
"include/**/*.h",
10+
]),
11+
includes = ["include"],
12+
deps = [
13+
"@boost.align",
14+
"@boost.array",
15+
"@boost.assert",
16+
"@boost.bind",
17+
"@boost.chrono",
18+
"@boost.config",
19+
"@boost.context",
20+
"@boost.core",
21+
"@boost.coroutine",
22+
"@boost.date_time",
23+
"@boost.exception",
24+
"@boost.function",
25+
"@boost.regex",
26+
"@boost.smart_ptr",
27+
"@boost.system",
28+
"@boost.throw_exception",
29+
"@boost.type_traits",
30+
"@boost.utility",
31+
],
32+
)

MODULE.bazel

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module(
2+
name = "boost.asio",
3+
version = "1.83.0.bzl.1",
4+
compatibility_level = 108300,
5+
)
6+
7+
bazel_dep(name = "rules_cc", version = "0.0.8")
8+
bazel_dep(name = "boost.align", version = "1.83.0.bzl.1")
9+
bazel_dep(name = "boost.array", version = "1.83.0.bzl.1")
10+
bazel_dep(name = "boost.assert", version = "1.83.0.bzl.1")
11+
bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1")
12+
bazel_dep(name = "boost.chrono", version = "1.83.0.bzl.1")
13+
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
14+
bazel_dep(name = "boost.context", version = "1.83.0.bzl.1")
15+
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
16+
bazel_dep(name = "boost.coroutine", version = "1.83.0.bzl.1")
17+
bazel_dep(name = "boost.date_time", version = "1.83.0.bzl.1")
18+
bazel_dep(name = "boost.exception", version = "1.83.0.bzl.1")
19+
bazel_dep(name = "boost.function", version = "1.83.0.bzl.1")
20+
bazel_dep(name = "boost.regex", version = "1.83.0.bzl.1")
21+
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bzl.1")
22+
bazel_dep(name = "boost.system", version = "1.83.0.bzl.1")
23+
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bzl.1")
24+
bazel_dep(name = "boost.type_traits", version = "1.83.0.bzl.1")
25+
bazel_dep(name = "boost.utility", version = "1.83.0.bzl.1")

WORKSPACE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SEE: MODULE.bazel

0 commit comments

Comments
 (0)