diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 000000000..dd6962b54 --- /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 000000000..d1823b663 --- /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/.gitignore b/.gitignore new file mode 100644 index 000000000..b0f492924 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + +/bazel-* +/external +/.cache +/compile_commands.json +user.bazelrc diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 000000000..3ffacc4ce --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,31 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "boost.algorithm", + hdrs = glob([ + "include/**/*.hpp", + "include/**/*.h", + ]), + includes = ["include"], + deps = [ + "@boost.array", + "@boost.assert", + "@boost.bind", + "@boost.concept_check", + "@boost.config", + "@boost.core", + "@boost.exception", + "@boost.function", + "@boost.iterator", + "@boost.mpl", + "@boost.range", + "@boost.regex", + "@boost.static_assert", + "@boost.throw_exception", + "@boost.tuple", + "@boost.type_traits", + "@boost.unordered", + ], +) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 000000000..ebf17acb7 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,24 @@ +module( + name = "boost.algorithm", + version = "1.83.0.bzl.1", + compatibility_level = 108300, +) + +bazel_dep(name = "rules_cc", version = "0.0.8") +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.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.core", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.exception", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.function", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.iterator", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.mpl", 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.static_assert", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.throw_exception", 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.unordered", version = "1.83.0.bzl.1") diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel new file mode 100644 index 000000000..be0754f66 --- /dev/null +++ b/WORKSPACE.bazel @@ -0,0 +1 @@ +# SEE: MODULE.bazel diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index bc67f7def..8fe780172 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -16,18 +16,18 @@ using quickbook ; using doxygen ; using boostbook ; -doxygen autodoc - : - [ glob ../../../boost/algorithm/*.hpp +doxygen autodoc + : + [ glob ../../../boost/algorithm/*.hpp ../../../boost/algorithm/searching/*.hpp ../../../boost/algorithm/cxx11/*.hpp ../../../boost/algorithm/cxx14/*.hpp ../../../boost/algorithm/cxx17/*.hpp ] - : + : "PREDEFINED=\"BOOST_ALGORITHM_DOXYGEN=1\"" WARNINGS=YES # Default NO, but useful to see warnings, especially in a logfile. - ; + ; xml algorithm : algorithm.qbk ; @@ -36,7 +36,7 @@ boostbook standalone : algorithm : - autodoc + autodoc boost.root=../../../.. "boost.doxygen.reftitle=Boost.Algorithms C++ Reference" chapter.autolabel=0