Skip to content

Commit

Permalink
Fix empty glob in boost.math (#3130)
Browse files Browse the repository at this point in the history
Needs skip-url-check
  • Loading branch information
hofbi authored Nov 7, 2024
1 parent 1aead64 commit 2f1c5db
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 1 deletion.
18 changes: 18 additions & 0 deletions modules/boost.math/1.83.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module(
name = "boost.math",
version = "1.83.0.bcr.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108300,
)

bazel_dep(name = "boost.assert", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.concept_check", 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.integer", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.lexical_cast", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.predef", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.random", 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 = "rules_cc", version = "0.0.14")
101 changes: 101 additions & 0 deletions modules/boost.math/1.83.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.math",
hdrs = glob(
[
"include/**/*.hpp",
"include/**/*.ipp",
],
exclude = [
"include/boost/math/*/detail/**/*.hpp",
"include/boost/math/bindings/mpfr.hpp",
"include/boost/math/bindings/mpreal.hpp",
"include/boost/math/bindings/rr.hpp",
"include/boost/math/ccmath/*.hpp",
"include/boost/math/concepts/distributions.hpp",
"include/boost/math/constants/calculate_constants.hpp",
"include/boost/math/cstdfloat/cstdfloat_complex_std.hpp",
"include/boost/math/differentiation/autodiff_cpp11.hpp",
"include/boost/math/differentiation/lanczos_smoothing.hpp",
"include/boost/math/distributions/empirical_cumulative_distribution_function.hpp",
"include/boost/math/filters/daubechies.hpp",
"include/boost/math/interpolators/cardinal_quadratic_b_spline.hpp",
"include/boost/math/interpolators/cardinal_quintic_b_spline.hpp",
"include/boost/math/interpolators/cardinal_trigonometric.hpp",
"include/boost/math/quadrature/wavelet_transforms.hpp",
"include/boost/math/special_functions/bessel_iterators.hpp",
"include/boost/math/special_functions/chebyshev_transform.hpp",
"include/boost/math/special_functions/daubechies_scaling.hpp",
"include/boost/math/special_functions/daubechies_wavelet.hpp",
"include/boost/math/special_functions/fourier_transform_daubechies.hpp",
"include/boost/math/special_functions/rsqrt.hpp",
"include/boost/math/special_functions/detail/lambert_w_lookup_table.ipp",
"include/boost/math/statistics/signal_statistics.hpp",
"include/boost/math/tools/bivariate_statistics.hpp",
"include/boost/math/tools/centered_continued_fraction.hpp",
"include/boost/math/tools/color_maps.hpp",
"include/boost/math/tools/engel_expansion.hpp",
"include/boost/math/tools/luroth_expansion.hpp",
"include/boost/math/tools/norms.hpp",
"include/boost/math/tools/recurrence.hpp",
"include/boost/math/tools/signal_statistics.hpp",
"include/boost/math/tools/simple_continued_fraction.hpp",
"include/boost/math/tools/univariate_statistics.hpp",
],
),
features = [
"parse_headers",
],
includes = ["include"],
textual_hdrs = [
"include/boost/math/bindings/mpfr.hpp",
"include/boost/math/bindings/mpreal.hpp",
"include/boost/math/bindings/rr.hpp",
"include/boost/math/concepts/distributions.hpp",
"include/boost/math/constants/calculate_constants.hpp",
"include/boost/math/cstdfloat/cstdfloat_complex_std.hpp",
"include/boost/math/differentiation/autodiff_cpp11.hpp",
"include/boost/math/differentiation/lanczos_smoothing.hpp",
"include/boost/math/distributions/empirical_cumulative_distribution_function.hpp",
"include/boost/math/filters/daubechies.hpp",
"include/boost/math/interpolators/cardinal_quadratic_b_spline.hpp",
"include/boost/math/interpolators/cardinal_quintic_b_spline.hpp",
"include/boost/math/interpolators/cardinal_trigonometric.hpp",
"include/boost/math/special_functions/bessel_iterators.hpp",
"include/boost/math/special_functions/chebyshev_transform.hpp",
"include/boost/math/special_functions/daubechies_scaling.hpp",
"include/boost/math/special_functions/daubechies_wavelet.hpp",
"include/boost/math/special_functions/fourier_transform_daubechies.hpp",
"include/boost/math/special_functions/rsqrt.hpp",
"include/boost/math/special_functions/detail/lambert_w_lookup_table.ipp",
"include/boost/math/statistics/signal_statistics.hpp",
"include/boost/math/tools/bivariate_statistics.hpp",
"include/boost/math/tools/centered_continued_fraction.hpp",
"include/boost/math/tools/color_maps.hpp",
"include/boost/math/tools/engel_expansion.hpp",
"include/boost/math/tools/luroth_expansion.hpp",
"include/boost/math/tools/norms.hpp",
"include/boost/math/tools/recurrence.hpp",
"include/boost/math/tools/signal_statistics.hpp",
"include/boost/math/tools/simple_continued_fraction.hpp",
"include/boost/math/tools/univariate_statistics.hpp",
] + glob([
"include/boost/math/*/detail/**/*.hpp",
"include/boost/math/ccmath/*.hpp",
]),
deps = [
"@boost.assert",
"@boost.concept_check",
"@boost.config",
"@boost.core",
"@boost.integer",
"@boost.lexical_cast",
"@boost.predef",
"@boost.random",
"@boost.static_assert",
"@boost.throw_exception",
],
)
1 change: 1 addition & 0 deletions modules/boost.math/1.83.0.bcr.1/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/boost.math/1.83.0.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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.math//:boost.math'
10 changes: 10 additions & 0 deletions modules/boost.math/1.83.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-U+X3U5pmiZ/g/KMIBAXL1feVnaU5TsE2ZHRnQa7OFwU=",
"strip_prefix": "math-boost-1.83.0",
"url": "https://github.com/boostorg/math/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-ZZ0CXIfhsqDu+coAEVa2uWQyA0My6b6dkBMo9EjiIRE=",
"BUILD.bazel": "sha256-0QBIcED4jF8YuEh392NnFhLL8rVkvzAs7HZKqvO7JHs="
}
}
3 changes: 2 additions & 1 deletion modules/boost.math/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"github:boostorg/math"
],
"versions": [
"1.83.0"
"1.83.0",
"1.83.0.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit 2f1c5db

Please sign in to comment.