Skip to content

Commit

Permalink
feat: add boost.detail
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 committed Aug 10, 2024
1 parent 72a22de commit f1a66c0
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/boost.detail/1.83.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module(
name = "boost.detail",
version = "1.83.0",
compatibility_level = 108300,
)

bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "boost.array", version = "1.83.0", dev_dependency = True)
bazel_dep(name = "boost.config", version = "1.83.0")
bazel_dep(name = "boost.core", version = "1.83.0")
bazel_dep(name = "boost.preprocessor", version = "1.83.0")
bazel_dep(name = "boost.static_assert", version = "1.83.0")
bazel_dep(name = "boost.type_traits", version = "1.83.0")
20 changes: 20 additions & 0 deletions modules/boost.detail/1.83.0/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.detail",
hdrs = glob([
"include/**/*.hpp",
"include/**/*.h",
"include/**/*.ipp",
]),
includes = ["include"],
deps = [
"@boost.config",
"@boost.core",
"@boost.preprocessor",
"@boost.static_assert",
"@boost.type_traits",
],
)
1 change: 1 addition & 0 deletions modules/boost.detail/1.83.0/overlay/MODULE.bazel
67 changes: 67 additions & 0 deletions modules/boost.detail/1.83.0/overlay/test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
load("@rules_cc//cc:defs.bzl", "cc_test")

cc_test(
name = "allocator_utilities_test",
srcs = ["allocator_utilities_test.cpp"],
deps = [
"@boost.array",
"@boost.detail",
],
)

cc_test(
name = "binary_search_test",
srcs = ["binary_search_test.cpp"],
deps = [
"@boost.detail",
],
)

cc_test(
name = "blank_test",
srcs = ["blank_test.cpp"],
deps = [
"@boost.detail",
],
)

cc_test(
name = "is_sorted_test",
srcs = ["is_sorted_test.cpp"],
deps = [
"@boost.array",
"@boost.detail",
],
)

cc_test(
name = "is_xxx_test",
srcs = ["is_xxx_test.cpp"],
deps = [
"@boost.detail",
],
)

cc_test(
name = "numeric_traits_test",
srcs = ["numeric_traits_test.cpp"],
deps = [
"@boost.detail",
],
)

cc_test(
name = "reference_content_test",
srcs = ["reference_content_test.cpp"],
deps = [
"@boost.detail",
],
)

cc_test(
name = "test_utf8_codecvt",
srcs = ["test_utf8_codecvt.cpp"],
deps = [
"@boost.detail",
],
)
6 changes: 6 additions & 0 deletions modules/boost.detail/1.83.0/overlay/test/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bazel_dep(name = "boost.array", version = "1.83.0")
bazel_dep(name = "boost.detail")
local_path_override(
module_name = "boost.detail",
path = "..",
)
21 changes: 21 additions & 0 deletions modules/boost.detail/1.83.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
matrix:
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@boost.detail//:boost.detail'
test_targets:
- "//..."
12 changes: 12 additions & 0 deletions modules/boost.detail/1.83.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"integrity": "sha256-bR2mqmLf56CyWpmlciUYscTTKAq9S05hEloNTWLBuuE=",
"strip_prefix": "detail-boost-1.83.0",
"url": "https://github.com/boostorg/detail/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-kkSVx2o+ukvU0KhbAnKKw3WhwDV5rCHLLupufJzJmkc=",
"BUILD.bazel": "sha256-K/6wtHQohc/Ibxug7LqzmiEPstFHL607S7THJUvETqo=",
"test/MODULE.bazel": "sha256-TVUZuHd0ox1Vn5d3HlrNeSxdFxz9mRlp4F+PLFq5OYE=",
"test/BUILD.bazel": "sha256-oyxh1d0QbD/J6eAo44Tb60bNuDHix6dBorsm+L+k7nI="
}
}
22 changes: 22 additions & 0 deletions modules/boost.detail/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"homepage": "http://boost.org/libs/detail",
"maintainers": [
{
"email": "daisuke.nishimatsu1021@gmail.com",
"github": "wep21",
"name": "Daisuke Nishimatsu"
},
{
"email": "julian.amann@tum.de",
"github": "Vertexwahn",
"name": "Julian Amann"
}
],
"repository": [
"github:boostorg/detail"
],
"versions": [
"1.83.0"
],
"yanked_versions": {}
}

0 comments on commit f1a66c0

Please sign in to comment.