Skip to content

Commit

Permalink
Add boost.units to modules (#3492)
Browse files Browse the repository at this point in the history
Closes #3489

---------

Co-authored-by: Daisuke Nishimatsu <[email protected]>
  • Loading branch information
kgreenek and wep21 authored Dec 26, 2024
1 parent 2133584 commit 0d1e990
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/boost.units/1.83.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module(
name = "boost.units",
version = "1.83.0",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108300,
)

bazel_dep(name = "boost.assert", 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.io", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.lambda", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.math", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.mpl", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.preprocessor", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.static_assert", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.type_traits", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.utility", version = "1.83.0.bcr.1")
bazel_dep(name = "rules_cc", version = "0.0.9")
36 changes: 36 additions & 0 deletions modules/boost.units/1.83.0/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.units",
hdrs = glob(
[
"include/**/*.hpp",
],
exclude = glob([
"include/boost/units/detail/**/*.hpp",
]),
),
features = [
"parse_headers",
],
includes = ["include"],
textual_hdrs = glob([
"include/boost/units/detail/**/*.hpp",
]),
deps = [
"@boost.assert",
"@boost.config",
"@boost.core",
"@boost.integer",
"@boost.io",
"@boost.lambda",
"@boost.math",
"@boost.mpl",
"@boost.preprocessor",
"@boost.static_assert",
"@boost.type_traits",
"@boost.utility",
],
)
1 change: 1 addition & 0 deletions modules/boost.units/1.83.0/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/boost.units/1.83.0/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, 8.x, rolling]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--process_headers_in_dependencies'
build_targets:
- '@boost.units//:boost.units'
10 changes: 10 additions & 0 deletions modules/boost.units/1.83.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-govV7ZYdjARezF6Zer4Bf45HkCS0JJR/oTaOi//R/2w=",
"strip_prefix": "units-boost-1.83.0",
"url": "https://github.com/boostorg/units/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"BUILD.bazel": "sha256-B0Rjgky4kaM8Z0rOnmNyzbdU2SztMmeWY+kgtqpyl1w=",
"MODULE.bazel": "sha256-wbW/q7p90xAUM8OYsnDkzYIdL0UbkHTmGRoRNF5sgIU="
}
}
27 changes: 27 additions & 0 deletions modules/boost.units/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"homepage": "http://boost.org/libs/units",
"maintainers": [
{
"email": "[email protected]",
"github": "wep21",
"name": "Daisuke Nishimatsu"
},
{
"email": "[email protected]",
"github": "Vertexwahn",
"name": "Julian Amann"
},
{
"email": "[email protected]",
"github": "kgreenek",
"name": "Kevin Greene"
}
],
"repository": [
"github:boostorg/units"
],
"versions": [
"1.83.0"
],
"yanked_versions": {}
}

0 comments on commit 0d1e990

Please sign in to comment.