diff --git a/modules/boost.timer/1.83.0.bcr.1/MODULE.bazel b/modules/boost.timer/1.83.0.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..d79d0601f91 --- /dev/null +++ b/modules/boost.timer/1.83.0.bcr.1/MODULE.bazel @@ -0,0 +1,17 @@ +module( + name = "boost.timer", + version = "1.83.0.bcr.1", + bazel_compatibility = [">=7.2.1"], # need support for "overlay" directory + compatibility_level = 108300, +) + +bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.io", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.predef", version = "1.83.0.bcr.1") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.15") + +# For tests +bazel_dep(name = "boost.chrono", 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.1") diff --git a/modules/boost.timer/1.83.0.bcr.1/overlay/BUILD.bazel b/modules/boost.timer/1.83.0.bcr.1/overlay/BUILD.bazel new file mode 100644 index 00000000000..7e82d453abc --- /dev/null +++ b/modules/boost.timer/1.83.0.bcr.1/overlay/BUILD.bazel @@ -0,0 +1,70 @@ +load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") + +cc_library( + name = "boost.timer", + srcs = glob(["src/*.cpp"]), + hdrs = glob( + ["include/**/*.hpp"], + # These headers are deprecated and should not be used. + exclude = [ + "include/boost/progress.hpp", + "include/boost/timer.hpp", + ], + ), + features = ["parse_headers"], + includes = ["include"], + visibility = ["//visibility:public"], + deps = [ + "@boost.config", + "@boost.io", + "@boost.predef", + ], +) + +cc_test( + name = "chrono_conflict_test", + srcs = ["test/chrono_conflict_test.cpp"], + deps = [ + ":boost.timer", + "@boost.chrono", + ], + target_compatible_with = select({ + "@platforms//os:macos": ["@platforms//:incompatible"], + "//conditions:default": [], + }), +) + +cc_test( + name = "cpu_timer_info_test", + srcs = ["test/cpu_timer_info.cpp"], + local_defines = select({ + "@platforms//os:windows": ["BOOST_ALL_NO_LIB"], + "//conditions:default": [], + }), + deps = [ + ":boost.timer", + "@boost.detail", + ], +) + +cc_test( + name = "cpu_timer_test", + srcs = ["test/cpu_timer_test.cpp"], + local_defines = select({ + "@platforms//os:windows": ["BOOST_ALL_NO_LIB"], + "//conditions:default": [], + }), + deps = [ + ":boost.timer", + "@boost.detail", + ], +) + +cc_test( + name = "progress_display_test", + srcs = ["test/progress_display_test.cpp"], + deps = [ + ":boost.timer", + "@boost.core", + ], +) diff --git a/modules/boost.timer/1.83.0.bcr.1/overlay/MODULE.bazel b/modules/boost.timer/1.83.0.bcr.1/overlay/MODULE.bazel new file mode 100644 index 00000000000..d79d0601f91 --- /dev/null +++ b/modules/boost.timer/1.83.0.bcr.1/overlay/MODULE.bazel @@ -0,0 +1,17 @@ +module( + name = "boost.timer", + version = "1.83.0.bcr.1", + bazel_compatibility = [">=7.2.1"], # need support for "overlay" directory + compatibility_level = 108300, +) + +bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.io", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.predef", version = "1.83.0.bcr.1") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.15") + +# For tests +bazel_dep(name = "boost.chrono", 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.1") diff --git a/modules/boost.timer/1.83.0.bcr.1/presubmit.yml b/modules/boost.timer/1.83.0.bcr.1/presubmit.yml new file mode 100644 index 00000000000..c2202760277 --- /dev/null +++ b/modules/boost.timer/1.83.0.bcr.1/presubmit.yml @@ -0,0 +1,24 @@ +matrix: + platform: + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + - macos + - macos_arm64 + - windows + bazel: [7.x] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--process_headers_in_dependencies" + build_targets: + - "@boost.timer" + test_flags: + - "--process_headers_in_dependencies" + test_targets: + - "@boost.timer//:all" + diff --git a/modules/boost.timer/1.83.0.bcr.1/source.json b/modules/boost.timer/1.83.0.bcr.1/source.json new file mode 100644 index 00000000000..0faa25b9aa0 --- /dev/null +++ b/modules/boost.timer/1.83.0.bcr.1/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/boostorg/timer/archive/refs/tags/boost-1.83.0.tar.gz", + "integrity": "sha256-CGzESZRhRsrUlZCiwYSbcpJehk2qMWt7dHvEvgeFht8=", + "strip_prefix": "timer-boost-1.83.0", + "overlay": { + "BUILD.bazel": "sha256-jnRjnByNNvvlGGkeuH8KLdcNfLZDyK0UdPpXYHfgdSk=", + "MODULE.bazel": "sha256-JbMp2oE6bqQfckU6H+94NbJTtrDWyvMVcLtV6mPrPik=" + } +} diff --git a/modules/boost.timer/metadata.json b/modules/boost.timer/metadata.json index 2c10b91c5b5..04a4888d9bf 100644 --- a/modules/boost.timer/metadata.json +++ b/modules/boost.timer/metadata.json @@ -18,6 +18,7 @@ "github:boostorg/timer" ], "versions": [ + "1.83.0.bcr.1", "1.87.0", "1.88.0.bcr.1", "1.88.0.bcr.2",