diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 00000000..dd6962b5 --- /dev/null +++ b/.bazelrc @@ -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 diff --git a/.github/workflows/bzlmod-archive.yml b/.github/workflows/bzlmod-archive.yml new file mode 100644 index 00000000..d1823b66 --- /dev/null +++ b/.github/workflows/bzlmod-archive.yml @@ -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 diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 00000000..f3b5bdea --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,21 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "boost.histogram", + hdrs = glob([ + "include/**/*.hpp", + "include/**/*.h", + ]), + includes = ["include"], + deps = [ + "@boost.config", + "@boost.core", + "@boost.math", + "@boost.mp11", + "@boost.serialization", + "@boost.throw_exception", + "@boost.variant2", + ], +) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 00000000..40643374 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,14 @@ +module( + name = "boost.histogram", + version = "1.83.0.bzl.1", + compatibility_level = 108300, +) + +bazel_dep(name = "rules_cc", version = "0.0.8") +bazel_dep(name = "boost.config", version = "1.83.0.bzl.6") +bazel_dep(name = "boost.core", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.math", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.mp11", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.serialization", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.throw_exception", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.variant2", version = "1.83.0.bzl.1") diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel new file mode 100644 index 00000000..be0754f6 --- /dev/null +++ b/WORKSPACE.bazel @@ -0,0 +1 @@ +# SEE: MODULE.bazel