From 4512145315a45e09ec7e5aadcf43076be45ba253 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Thu, 28 Nov 2024 00:11:49 +0100 Subject: [PATCH] boost.program_options@1.83.0 --- .../1.83.0.bcr.2/MODULE.bazel | 21 +++++++++ .../1.83.0.bcr.2/overlay/BUILD.bazel | 29 ++++++++++++ .../1.83.0.bcr.2/overlay/MODULE.bazel | 1 + .../1.83.0.bcr.2/overlay/test/BUILD.bazel | 34 ++++++++++++++ .../1.83.0.bcr.2/overlay/test/MODULE.bazel | 9 ++++ .../1.83.0.bcr.2/presubmit.yml | 44 +++++++++++++++++++ .../1.83.0.bcr.2/source.json | 12 +++++ modules/boost.program_options/metadata.json | 3 +- 8 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 modules/boost.program_options/1.83.0.bcr.2/MODULE.bazel create mode 100644 modules/boost.program_options/1.83.0.bcr.2/overlay/BUILD.bazel create mode 120000 modules/boost.program_options/1.83.0.bcr.2/overlay/MODULE.bazel create mode 100644 modules/boost.program_options/1.83.0.bcr.2/overlay/test/BUILD.bazel create mode 100644 modules/boost.program_options/1.83.0.bcr.2/overlay/test/MODULE.bazel create mode 100644 modules/boost.program_options/1.83.0.bcr.2/presubmit.yml create mode 100644 modules/boost.program_options/1.83.0.bcr.2/source.json diff --git a/modules/boost.program_options/1.83.0.bcr.2/MODULE.bazel b/modules/boost.program_options/1.83.0.bcr.2/MODULE.bazel new file mode 100644 index 00000000000..ef8c5e94d62 --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/MODULE.bazel @@ -0,0 +1,21 @@ +module( + name = "boost.program_options", + version = "1.83.0.bcr.2", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 108300, +) + +bazel_dep(name = "boost.any", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.bind", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.core", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.detail", version = "1.83.0.bcr.3") +bazel_dep(name = "boost.function", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.iterator", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.static_assert", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.throw_exception", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.tokenizer", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.type_traits", version = "1.83.0.bcr.1") +bazel_dep(name = "rules_cc", version = "0.1.0") diff --git a/modules/boost.program_options/1.83.0.bcr.2/overlay/BUILD.bazel b/modules/boost.program_options/1.83.0.bcr.2/overlay/BUILD.bazel new file mode 100644 index 00000000000..5bca9d302fb --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/overlay/BUILD.bazel @@ -0,0 +1,29 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "boost.program_options", + srcs = glob([ + "src/**/*.cpp", + ]), + hdrs = glob([ + "include/**/*.hpp", + ]), + includes = ["include"], + deps = [ + "@boost.any", + "@boost.bind", + "@boost.config", + "@boost.core", + "@boost.detail", + "@boost.function", + "@boost.iterator", + "@boost.lexical_cast", + "@boost.smart_ptr", + "@boost.static_assert", + "@boost.throw_exception", + "@boost.tokenizer", + "@boost.type_traits", + ], +) diff --git a/modules/boost.program_options/1.83.0.bcr.2/overlay/MODULE.bazel b/modules/boost.program_options/1.83.0.bcr.2/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/boost.program_options/1.83.0.bcr.2/overlay/test/BUILD.bazel b/modules/boost.program_options/1.83.0.bcr.2/overlay/test/BUILD.bazel new file mode 100644 index 00000000000..7a144410eff --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/overlay/test/BUILD.bazel @@ -0,0 +1,34 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") + +_TESTS = { + "cmdline_test": [], + "exception_test": [], + "exception_txt_test": [], + "optional_test": [], + "options_description_test": [], + # Fails without logs "parsers_test": [], + "positional_options_test": [], + # Fails without logs "required_test": [], + "split_test": [], + # Fails because it uses a deprecated header "test_convert": ["@boost.timer"], + "unicode_test": [], + "unrecognized_test": [], + "variable_map_test": [], + "winmain": [], +} + +[cc_test( + name = test, + srcs = ["{}.cpp".format(test)] + glob(["*.hpp"]), + defines = select({ + "//conditions:default": [], + "@platforms//os:macos": [], + "@platforms//os:windows": ["WIN32_LEAN_AND_MEAN=1"], + }), + linkstatic = True, + deps = [ + "@boost.program_options", + "@boost.test", + "@boost.test//:unit_test_main", + ] + _TESTS[test], +) for test in _TESTS] diff --git a/modules/boost.program_options/1.83.0.bcr.2/overlay/test/MODULE.bazel b/modules/boost.program_options/1.83.0.bcr.2/overlay/test/MODULE.bazel new file mode 100644 index 00000000000..3a3948f98ce --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/overlay/test/MODULE.bazel @@ -0,0 +1,9 @@ +bazel_dep(name = "boost.program_options") +local_path_override( + module_name = "boost.program_options", + path = "..", +) + +bazel_dep(name = "boost.test", version = "1.83.0.bcr.1") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.1.0") diff --git a/modules/boost.program_options/1.83.0.bcr.2/presubmit.yml b/modules/boost.program_options/1.83.0.bcr.2/presubmit.yml new file mode 100644 index 00000000000..bfb21317a56 --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/presubmit.yml @@ -0,0 +1,44 @@ +matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + - windows + bazel: [7.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--process_headers_in_dependencies' + build_targets: + - '@boost.program_options//:boost.program_options' +bcr_test_module: + module_path: test + matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + - windows + bazel: [7.x, rolling] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--process_headers_in_dependencies' + build_targets: + - //... + test_targets: + - //... diff --git a/modules/boost.program_options/1.83.0.bcr.2/source.json b/modules/boost.program_options/1.83.0.bcr.2/source.json new file mode 100644 index 00000000000..7ad4e0baf65 --- /dev/null +++ b/modules/boost.program_options/1.83.0.bcr.2/source.json @@ -0,0 +1,12 @@ +{ + "integrity": "sha256-2EN+J4h3kekduKqeVhbJOuX3kvA0ftAiBTipkSYkjMY=", + "strip_prefix": "program_options-boost-1.83.0", + "url": "https://github.com/boostorg/program_options/archive/refs/tags/boost-1.83.0.tar.gz", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-kXQzhk3OOfGtvJN+RiXbs3DDVjLD91EYY0YObFX01xU=", + "MODULE.bazel": "sha256-qvcDsM/eQ9MW5hcij9zjqgEITBROPWX2w4EgiyNdRFI=", + "test/BUILD.bazel": "sha256-+1enM8MMlFALT+tvQK6hp+jFEh7rfbdfDb+niTjfN6I=", + "test/MODULE.bazel": "sha256-vAy4M9pArvzKUmtI7bEHMwjtz14RXEf1X4eUpXspst4=" + } +} diff --git a/modules/boost.program_options/metadata.json b/modules/boost.program_options/metadata.json index 22b154c8bdd..348a0eb1f8d 100644 --- a/modules/boost.program_options/metadata.json +++ b/modules/boost.program_options/metadata.json @@ -17,7 +17,8 @@ ], "versions": [ "1.83.0", - "1.83.0.bcr.1" + "1.83.0.bcr.1", + "1.83.0.bcr.2" ], "yanked_versions": {} }