Skip to content

Commit ab27536

Browse files
committed
feat: initial bzlmod support
1 parent 47d5bc7 commit ab27536

File tree

5 files changed

+86
-0
lines changed

5 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

BUILD.bazel

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "boost.python",
7+
hdrs = glob([
8+
"include/**/*.hpp",
9+
"include/**/*.h",
10+
]),
11+
includes = ["include"],
12+
deps = [
13+
"@boost.align",
14+
"@boost.bind",
15+
"@boost.config",
16+
"@boost.conversion",
17+
"@boost.core",
18+
"@boost.detail",
19+
"@boost.foreach",
20+
"@boost.function",
21+
"@boost.graph",
22+
"@boost.integer",
23+
"@boost.iterator",
24+
"@boost.lexical_cast",
25+
"@boost.mpl",
26+
"@boost.numeric_conversion",
27+
"@boost.preprocessor",
28+
"@boost.property_map",
29+
"@boost.smart_ptr",
30+
"@boost.static_assert",
31+
"@boost.tuple",
32+
"@boost.type_traits",
33+
"@boost.utility",
34+
],
35+
)

MODULE.bazel

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module(
2+
name = "boost.python",
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.bind", version = "1.83.0.bzl.1")
10+
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
11+
bazel_dep(name = "boost.conversion", version = "1.83.0.bzl.1")
12+
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
13+
bazel_dep(name = "boost.detail", version = "1.83.0.bzl.1")
14+
bazel_dep(name = "boost.foreach", version = "1.83.0.bzl.1")
15+
bazel_dep(name = "boost.function", version = "1.83.0.bzl.1")
16+
bazel_dep(name = "boost.graph", version = "1.83.0.bzl.1")
17+
bazel_dep(name = "boost.integer", version = "1.83.0.bzl.1")
18+
bazel_dep(name = "boost.iterator", version = "1.83.0.bzl.1")
19+
bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bzl.1")
20+
bazel_dep(name = "boost.mpl", version = "1.83.0.bzl.1")
21+
bazel_dep(name = "boost.numeric_conversion", version = "1.83.0.bzl.1")
22+
bazel_dep(name = "boost.preprocessor", version = "1.83.0.bzl.1")
23+
bazel_dep(name = "boost.property_map", version = "1.83.0.bzl.1")
24+
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bzl.1")
25+
bazel_dep(name = "boost.static_assert", version = "1.83.0.bzl.1")
26+
bazel_dep(name = "boost.tuple", version = "1.83.0.bzl.1")
27+
bazel_dep(name = "boost.type_traits", version = "1.83.0.bzl.1")
28+
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)