Skip to content

Commit

Permalink
feat: update boost process (#3074)
Browse files Browse the repository at this point in the history
- as title
- need skip url stability check
- parse headers +
#3069
- closes #3081
- closes #3084

---------

Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 authored Nov 1, 2024
1 parent 78b94a9 commit 9d361f7
Show file tree
Hide file tree
Showing 209 changed files with 3,487 additions and 33 deletions.
25 changes: 25 additions & 0 deletions modules/boost.algorithm/1.83.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module(
name = "boost.algorithm",
version = "1.83.0.bcr.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108300,
)

bazel_dep(name = "boost.array", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.assert", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.bind", 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.exception", version = "1.83.0.bcr.1")
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.mpl", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.range", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.regex", 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.tuple", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.type_traits", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.unordered", version = "1.83.0.bcr.1")
bazel_dep(name = "rules_cc", version = "0.0.13")
43 changes: 43 additions & 0 deletions modules/boost.algorithm/1.83.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.algorithm",
hdrs = glob(
[
"include/**/*.hpp",
],
exclude = glob([
"include/boost/algorithm/string/detail/*.hpp",
"include/boost/algorithm/string/std/*.hpp",
]),
),
features = [
"parse_headers",
],
includes = ["include"],
textual_hdrs = glob([
"include/boost/algorithm/string/detail/*.hpp",
"include/boost/algorithm/string/std/*.hpp",
]),
deps = [
"@boost.array",
"@boost.assert",
"@boost.bind",
"@boost.concept_check",
"@boost.config",
"@boost.core",
"@boost.exception",
"@boost.function",
"@boost.iterator",
"@boost.mpl",
"@boost.range",
"@boost.regex",
"@boost.static_assert",
"@boost.throw_exception",
"@boost.tuple",
"@boost.type_traits",
"@boost.unordered",
],
)
1 change: 1 addition & 0 deletions modules/boost.algorithm/1.83.0.bcr.1/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/boost.algorithm/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.algorithm//:boost.algorithm'
10 changes: 10 additions & 0 deletions modules/boost.algorithm/1.83.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-N32JpqRiblBC1x5p4m/GNe6d/DGEZRR+eUsJ6o0+gp8=",
"strip_prefix": "algorithm-boost-1.83.0",
"url": "https://github.com/boostorg/algorithm/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-hldheteqVdF5B4+qFcEx8HrhvDXlNjQyEe7i2UI2iIE=",
"BUILD.bazel": "sha256-ZFYhqF2WKJQximc3ITRfGlXiAOSfJQiFrq2wH+sg9mc="
}
}
3 changes: 2 additions & 1 deletion modules/boost.algorithm/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"github:boostorg/algorithm"
],
"versions": [
"1.83.0"
"1.83.0",
"1.83.0.bcr.1"
],
"yanked_versions": {}
}
12 changes: 12 additions & 0 deletions modules/boost.align/1.83.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module(
name = "boost.align",
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.config", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.core", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.static_assert", version = "1.83.0.bcr.1")
bazel_dep(name = "rules_cc", version = "0.0.13")
28 changes: 28 additions & 0 deletions modules/boost.align/1.83.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.align",
hdrs = glob(
[
"include/**/*.hpp",
],
exclude = glob([
"include/boost/align/detail/**/*.hpp",
]),
),
includes = ["include"],
features = [
"parse_headers",
],
textual_hdrs = glob([
"include/boost/align/detail/**/*.hpp",
]),
deps = [
"@boost.assert",
"@boost.config",
"@boost.core",
"@boost.static_assert",
],
)
1 change: 1 addition & 0 deletions modules/boost.align/1.83.0.bcr.1/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/boost.align/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.align//:boost.align'
10 changes: 10 additions & 0 deletions modules/boost.align/1.83.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-z2TFJIdZBeHwmDjhcyvk4fMc/McVQ6HP9+ewtIRLzFQ=",
"strip_prefix": "align-boost-1.83.0",
"url": "https://github.com/boostorg/align/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-OkMgpcXyHj51AkVQ1NuZyxlXXbh920v9m3gh+HtqeZk=",
"BUILD.bazel": "sha256-fop9sPXCV2dW9c/cQBPITr3/YavTN10kce8p79uEBO0="
}
}
3 changes: 2 additions & 1 deletion modules/boost.align/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"github:boostorg/align"
],
"versions": [
"1.83.0"
"1.83.0",
"1.83.0.bcr.1"
],
"yanked_versions": {}
}
12 changes: 12 additions & 0 deletions modules/boost.array/1.83.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module(
name = "boost.array",
version = "1.83.0.bcr.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.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.13")
18 changes: 18 additions & 0 deletions modules/boost.array/1.83.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.array",
hdrs = glob([
"include/**/*.hpp",
]),
includes = ["include"],
deps = [
"@boost.assert",
"@boost.config",
"@boost.core",
"@boost.static_assert",
"@boost.throw_exception",
],
)
1 change: 1 addition & 0 deletions modules/boost.array/1.83.0.bcr.1/overlay/MODULE.bazel
18 changes: 18 additions & 0 deletions modules/boost.array/1.83.0.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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_targets:
- '@boost.array//:boost.array'
10 changes: 10 additions & 0 deletions modules/boost.array/1.83.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-b3X1Ov5KAosAdEY0DnPZaSVAnrTNofwY04kIS3ofNiA=",
"strip_prefix": "array-boost-1.83.0",
"url": "https://github.com/boostorg/array/archive/refs/tags/boost-1.83.0.tar.gz",
"patch_strip": 0,
"overlay": {
"BUILD.bazel": "sha256-edBJ77VAOx0bW/IK2VIqcYtISoe73tpdLm1Gh14hod0=",
"MODULE.bazel": "sha256-/+KVao9dkIOecQyymPCjQqzFodj9/u6VeMrpZX34fjg="
}
}
3 changes: 2 additions & 1 deletion modules/boost.array/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"github:boostorg/array"
],
"versions": [
"1.83.0"
"1.83.0",
"1.83.0.bcr.1"
],
"yanked_versions": {}
}
29 changes: 29 additions & 0 deletions modules/boost.asio/1.83.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module(
name = "boost.asio",
version = "1.83.0.bcr.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108300,
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "boringssl", version = "0.20240913.0")
bazel_dep(name = "boost.align", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.array", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.assert", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.bind", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.chrono", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.config", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.context", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.core", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.coroutine", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.date_time", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.exception", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.function", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.regex", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.smart_ptr", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.system", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.throw_exception", 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 = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.0.13")
84 changes: 84 additions & 0 deletions modules/boost.asio/1.83.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@bazel_skylib//rules:write_file.bzl", "write_file")

string_flag(
name = "ssl",
visibility = ["//visibility:public"],
values = ["no_ssl", "openssl", "boringssl"],
build_setting_default = "no_ssl",
)

config_setting(name = "no_ssl", flag_values = {":ssl": "no_ssl"})
config_setting(name = "openssl", flag_values = {":ssl": "openssl"})
config_setting(name = "boringssl", flag_values = {":ssl": "boringssl"})

write_file(
name = "src",
out = "boost.asio.src.cpp",
content = select({
":no_ssl": [
"#include <boost/asio/impl/src.hpp>",
],
"//conditions:default": [
"#include <boost/asio/impl/src.hpp>",
"#include <boost/asio/ssl/impl/src.hpp>",
],
}),
)

cc_library(
name = "boost.asio",
visibility = ["//visibility:public"],
defines = ["BOOST_ASIO_SEPARATE_COMPILATION"],
linkopts = select({
"@platforms//os:windows": [
"-DEFAULTLIB:ws2_32",
"-DEFAULTLIB:mswsock",
],
"//conditions:default": [
"-lpthread",
],
}),
hdrs = glob([
"include/**/*.hpp",
"include/**/*.ipp",
], exclude = [
"include/boost/asio/impl/src.hpp",
"include/boost/asio/ssl/impl/src.hpp",
]),
srcs = [":src"] + select({
":no_ssl": [
"include/boost/asio/impl/src.hpp",
],
"//conditions:default": [
"include/boost/asio/impl/src.hpp",
"include/boost/asio/ssl/impl/src.hpp",
],
}),
includes = ["include"],
deps = [
"@boost.align",
"@boost.array",
"@boost.assert",
"@boost.bind",
"@boost.chrono",
"@boost.config",
"@boost.context",
"@boost.core",
"@boost.coroutine",
"@boost.date_time",
"@boost.exception",
"@boost.function",
"@boost.regex",
"@boost.smart_ptr",
"@boost.system",
"@boost.throw_exception",
"@boost.type_traits",
"@boost.utility",
] + select({
":openssl": ["@openssl//:ssl"],
":boringssl": ["@boringssl//:ssl"],
":no_ssl": [],
}),
)
1 change: 1 addition & 0 deletions modules/boost.asio/1.83.0.bcr.1/overlay/MODULE.bazel
Loading

0 comments on commit 9d361f7

Please sign in to comment.