Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]: Remove define #3282

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions modules/boost.program_options/1.83.0.bcr.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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")
29 changes: 29 additions & 0 deletions modules/boost.program_options/1.83.0.bcr.2/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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",
],
)
Original file line number Diff line number Diff line change
@@ -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]
Original file line number Diff line number Diff line change
@@ -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")
44 changes: 44 additions & 0 deletions modules/boost.program_options/1.83.0.bcr.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- //...
12 changes: 12 additions & 0 deletions modules/boost.program_options/1.83.0.bcr.2/source.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
3 changes: 2 additions & 1 deletion modules/boost.program_options/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {}
}
Loading