Skip to content

Commit a6e55ae

Browse files
committed
feat: initial bzlmod support
1 parent c6e7712 commit a6e55ae

File tree

7 files changed

+66
-168
lines changed

7 files changed

+66
-168
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 & 168 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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "boost.stacktrace",
7+
hdrs = glob([
8+
"include/**/*.hpp",
9+
"include/**/*.h",
10+
]),
11+
includes = ["include"],
12+
deps = [
13+
"@boost.array",
14+
"@boost.config",
15+
"@boost.container_hash",
16+
"@boost.core",
17+
"@boost.predef",
18+
"@boost.static_assert",
19+
"@boost.type_traits",
20+
"@boost.winapi",
21+
],
22+
)

MODULE.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module(
2+
name = "boost.stacktrace",
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.array", version = "1.83.0.bzl.1")
9+
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
10+
bazel_dep(name = "boost.container_hash", version = "1.83.0.bzl.1")
11+
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
12+
bazel_dep(name = "boost.predef", version = "1.83.0.bzl.1")
13+
bazel_dep(name = "boost.static_assert", version = "1.83.0.bzl.1")
14+
bazel_dep(name = "boost.type_traits", version = "1.83.0.bzl.1")
15+
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)