Skip to content

Commit 8d456b6

Browse files
committed
feat: initial bzlmod support
1 parent 52b62ee commit 8d456b6

File tree

6 files changed

+102
-81
lines changed

6 files changed

+102
-81
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

.github/workflows/bzlmod-archive.yml

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

.github/workflows/ci.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

BUILD.bazel

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "boost.thread",
7+
hdrs = glob([
8+
"include/**/*.hpp",
9+
"include/**/*.h",
10+
]),
11+
includes = ["include"],
12+
deps = [
13+
"@boost.algorithm",
14+
"@boost.assert",
15+
"@boost.atomic",
16+
"@boost.bind",
17+
"@boost.chrono",
18+
"@boost.concept_check",
19+
"@boost.config",
20+
"@boost.container",
21+
"@boost.container_hash",
22+
"@boost.core",
23+
"@boost.date_time",
24+
"@boost.exception",
25+
"@boost.function",
26+
"@boost.intrusive",
27+
"@boost.io",
28+
"@boost.iterator",
29+
"@boost.lexical_cast",
30+
"@boost.move",
31+
"@boost.optional",
32+
"@boost.predef",
33+
"@boost.preprocessor",
34+
"@boost.smart_ptr",
35+
"@boost.static_assert",
36+
"@boost.system",
37+
"@boost.throw_exception",
38+
"@boost.tuple",
39+
"@boost.type_traits",
40+
"@boost.utility",
41+
"@boost.winapi",
42+
],
43+
)

MODULE.bazel

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module(
2+
name = "boost.thread",
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.algorithm", version = "1.83.0.bzl.1")
9+
bazel_dep(name = "boost.assert", version = "1.83.0.bzl.1")
10+
bazel_dep(name = "boost.atomic", 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.concept_check", version = "1.83.0.bzl.1")
14+
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
15+
bazel_dep(name = "boost.container", version = "1.83.0.bzl.1")
16+
bazel_dep(name = "boost.container_hash", version = "1.83.0.bzl.1")
17+
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
18+
bazel_dep(name = "boost.date_time", version = "1.83.0.bzl.1")
19+
bazel_dep(name = "boost.exception", version = "1.83.0.bzl.1")
20+
bazel_dep(name = "boost.function", version = "1.83.0.bzl.1")
21+
bazel_dep(name = "boost.intrusive", version = "1.83.0.bzl.1")
22+
bazel_dep(name = "boost.io", version = "1.83.0.bzl.1")
23+
bazel_dep(name = "boost.iterator", version = "1.83.0.bzl.1")
24+
bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bzl.1")
25+
bazel_dep(name = "boost.move", version = "1.83.0.bzl.1")
26+
bazel_dep(name = "boost.optional", version = "1.83.0.bzl.1")
27+
bazel_dep(name = "boost.predef", version = "1.83.0.bzl.1")
28+
bazel_dep(name = "boost.preprocessor", version = "1.83.0.bzl.1")
29+
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bzl.1")
30+
bazel_dep(name = "boost.static_assert", version = "1.83.0.bzl.1")
31+
bazel_dep(name = "boost.system", version = "1.83.0.bzl.1")
32+
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bzl.1")
33+
bazel_dep(name = "boost.tuple", version = "1.83.0.bzl.1")
34+
bazel_dep(name = "boost.type_traits", version = "1.83.0.bzl.1")
35+
bazel_dep(name = "boost.utility", version = "1.83.0.bzl.1")
36+
bazel_dep(name = "boost.winapi", 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)