Skip to content

Commit

Permalink
feat: initial bzlmod support
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Sep 8, 2023
1 parent a649be5 commit a448bbf
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 266 deletions.
10 changes: 10 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

common --enable_bzlmod
build --incompatible_use_platforms_repo_for_constraints
build --incompatible_enable_cc_toolchain_resolution
build --incompatible_strict_action_env
build --enable_runfiles
build --registry=https://raw.githubusercontent.com/bazelboost/registry/main
build --registry=https://bcr.bazel.build

try-import %workspace%/user.bazelrc
12 changes: 12 additions & 0 deletions .github/workflows/bzlmod-archive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Bzlmod Archive

on:
release:
types: [published]

jobs:
bzlmod-archive:
uses: bazelboost/registry/.github/workflows/bzlmod-archive.yml@main
secrets: inherit
permissions:
contents: write
266 changes: 0 additions & 266 deletions .github/workflows/ci.yml

This file was deleted.

55 changes: 55 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

cc_library(
name = "boost.graph",
hdrs = glob([
"include/**/*.hpp",
"include/**/*.h",
]),
includes = ["include"],
deps = [
"@boost.algorithm",
"@boost.any",
"@boost.array",
"@boost.assert",
"@boost.bimap",
"@boost.bind",
"@boost.concept_check",
"@boost.config",
"@boost.container_hash",
"@boost.conversion",
"@boost.core",
"@boost.detail",
"@boost.foreach",
"@boost.function",
"@boost.integer",
"@boost.iterator",
"@boost.lexical_cast",
"@boost.math",
"@boost.move",
"@boost.mpl",
"@boost.multi_index",
"@boost.optional",
"@boost.parameter",
"@boost.preprocessor",
"@boost.property_map",
"@boost.property_tree",
"@boost.random",
"@boost.range",
"@boost.regex",
"@boost.serialization",
"@boost.smart_ptr",
"@boost.spirit",
"@boost.static_assert",
"@boost.throw_exception",
"@boost.tti",
"@boost.tuple",
"@boost.type_traits",
"@boost.typeof",
"@boost.unordered",
"@boost.utility",
"@boost.xpressive",
],
)
48 changes: 48 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module(
name = "boost.graph",
version = "1.83.0.bzl.1",
compatibility_level = 108300,
)

bazel_dep(name = "rules_cc", version = "0.0.8")
bazel_dep(name = "boost.algorithm", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.any", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.array", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.assert", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.bimap", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.concept_check", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.config", version = "1.83.0.bzl.6")
bazel_dep(name = "boost.container_hash", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.conversion", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.core", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.detail", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.foreach", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.function", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.integer", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.iterator", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.math", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.move", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.mpl", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.multi_index", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.optional", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.parameter", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.preprocessor", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.property_map", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.property_tree", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.random", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.range", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.regex", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.serialization", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.spirit", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.static_assert", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.tti", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.tuple", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.type_traits", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.typeof", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.unordered", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.utility", version = "1.83.0.bzl.1")
bazel_dep(name = "boost.xpressive", version = "1.83.0.bzl.1")
1 change: 1 addition & 0 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# SEE: MODULE.bazel

0 comments on commit a448bbf

Please sign in to comment.