From f1a66c04e73d5bfd6af4469fd6085492cfdef33e Mon Sep 17 00:00:00 2001 From: wep21 Date: Sat, 10 Aug 2024 23:04:20 +0900 Subject: [PATCH] feat: add boost.detail Signed-off-by: wep21 --- modules/boost.detail/1.83.0/MODULE.bazel | 13 ++++ .../boost.detail/1.83.0/overlay/BUILD.bazel | 20 ++++++ .../boost.detail/1.83.0/overlay/MODULE.bazel | 1 + .../1.83.0/overlay/test/BUILD.bazel | 67 +++++++++++++++++++ .../1.83.0/overlay/test/MODULE.bazel | 6 ++ modules/boost.detail/1.83.0/presubmit.yml | 21 ++++++ modules/boost.detail/1.83.0/source.json | 12 ++++ modules/boost.detail/metadata.json | 22 ++++++ 8 files changed, 162 insertions(+) create mode 100644 modules/boost.detail/1.83.0/MODULE.bazel create mode 100644 modules/boost.detail/1.83.0/overlay/BUILD.bazel create mode 120000 modules/boost.detail/1.83.0/overlay/MODULE.bazel create mode 100644 modules/boost.detail/1.83.0/overlay/test/BUILD.bazel create mode 100644 modules/boost.detail/1.83.0/overlay/test/MODULE.bazel create mode 100644 modules/boost.detail/1.83.0/presubmit.yml create mode 100644 modules/boost.detail/1.83.0/source.json create mode 100644 modules/boost.detail/metadata.json diff --git a/modules/boost.detail/1.83.0/MODULE.bazel b/modules/boost.detail/1.83.0/MODULE.bazel new file mode 100644 index 00000000000..97f48602957 --- /dev/null +++ b/modules/boost.detail/1.83.0/MODULE.bazel @@ -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") diff --git a/modules/boost.detail/1.83.0/overlay/BUILD.bazel b/modules/boost.detail/1.83.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..ba781e669ba --- /dev/null +++ b/modules/boost.detail/1.83.0/overlay/BUILD.bazel @@ -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", + ], +) diff --git a/modules/boost.detail/1.83.0/overlay/MODULE.bazel b/modules/boost.detail/1.83.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/boost.detail/1.83.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/boost.detail/1.83.0/overlay/test/BUILD.bazel b/modules/boost.detail/1.83.0/overlay/test/BUILD.bazel new file mode 100644 index 00000000000..eb69c6f63a3 --- /dev/null +++ b/modules/boost.detail/1.83.0/overlay/test/BUILD.bazel @@ -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", + ], +) diff --git a/modules/boost.detail/1.83.0/overlay/test/MODULE.bazel b/modules/boost.detail/1.83.0/overlay/test/MODULE.bazel new file mode 100644 index 00000000000..c9ad46514d8 --- /dev/null +++ b/modules/boost.detail/1.83.0/overlay/test/MODULE.bazel @@ -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 = "..", +) diff --git a/modules/boost.detail/1.83.0/presubmit.yml b/modules/boost.detail/1.83.0/presubmit.yml new file mode 100644 index 00000000000..20760aa7916 --- /dev/null +++ b/modules/boost.detail/1.83.0/presubmit.yml @@ -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: + - "//..." diff --git a/modules/boost.detail/1.83.0/source.json b/modules/boost.detail/1.83.0/source.json new file mode 100644 index 00000000000..a071e04c113 --- /dev/null +++ b/modules/boost.detail/1.83.0/source.json @@ -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=" + } +} diff --git a/modules/boost.detail/metadata.json b/modules/boost.detail/metadata.json new file mode 100644 index 00000000000..411d344b7ec --- /dev/null +++ b/modules/boost.detail/metadata.json @@ -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": {} +}