Skip to content

Commit 613cb5e

Browse files
committed
feat: initial bzlmod support
1 parent 7bcbb4e commit 613cb5e

File tree

7 files changed

+76
-217
lines changed

7 files changed

+76
-217
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

.github/workflows/ci.yml

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

.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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "boost.program_options",
7+
hdrs = glob([
8+
"include/**/*.hpp",
9+
"include/**/*.h",
10+
]),
11+
includes = ["include"],
12+
deps = [
13+
"@boost.any",
14+
"@boost.bind",
15+
"@boost.config",
16+
"@boost.core",
17+
"@boost.detail",
18+
"@boost.function",
19+
"@boost.iterator",
20+
"@boost.lexical_cast",
21+
"@boost.smart_ptr",
22+
"@boost.static_assert",
23+
"@boost.throw_exception",
24+
"@boost.tokenizer",
25+
"@boost.type_traits",
26+
],
27+
)

MODULE.bazel

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module(
2+
name = "boost.program_options",
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.any", version = "1.83.0.bzl.1")
9+
bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1")
10+
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
11+
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
12+
bazel_dep(name = "boost.detail", version = "1.83.0.bzl.1")
13+
bazel_dep(name = "boost.function", version = "1.83.0.bzl.1")
14+
bazel_dep(name = "boost.iterator", version = "1.83.0.bzl.1")
15+
bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bzl.1")
16+
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bzl.1")
17+
bazel_dep(name = "boost.static_assert", version = "1.83.0.bzl.1")
18+
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bzl.1")
19+
bazel_dep(name = "boost.tokenizer", version = "1.83.0.bzl.1")
20+
bazel_dep(name = "boost.type_traits", 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)