Skip to content

Add: boostorg/mysql #4520

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

Merged
merged 21 commits into from
May 13, 2025
Merged
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
13 changes: 13 additions & 0 deletions modules/boost.charconv/1.87.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module(
name = "boost.charconv",
version = "1.87.0",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108700,
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "boost.assert", version = "1.87.0")
bazel_dep(name = "boost.config", version = "1.87.0")
bazel_dep(name = "boost.core", version = "1.87.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.1.1")
44 changes: 44 additions & 0 deletions modules/boost.charconv/1.87.0/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@rules_cc//cc:defs.bzl", "cc_library")

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

string_flag(
name = "quadmath",
build_setting_default = "off",
values = [
"off",
"on",
],
visibility = ["//visibility:public"],
)

config_setting(
name = "off",
flag_values = {":quadmath": "off"},
)

config_setting(
name = "on",
flag_values = {":quadmath": "on"},
)

cc_library(
name = "boost.charconv",
srcs = glob(["src/*.cpp"]),
hdrs = glob([
"include/**/*.*pp",
"src/*.*pp",
]),
defines = ["BOOST_ALL_NO_LIB"] + select({
":on": ["BOOST_CHARCONV_HAS_QUADMATH"],
":off": ["BOOST_CHARCONV_NO_QUADMATH"],
}),
features = ["parse_headers"],
includes = ["include"],
deps = [
"@boost.assert",
"@boost.config",
"@boost.core",
],
)
1 change: 1 addition & 0 deletions modules/boost.charconv/1.87.0/overlay/MODULE.bazel
9 changes: 9 additions & 0 deletions modules/boost.charconv/1.87.0/overlay/test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
load("@rules_cc//cc:defs.bzl", "cc_test")

cc_test(
name = "test_boost_json_values",
srcs = ["test_boost_json_values.cpp"],
deps = [
"@boost.charconv",
],
)
10 changes: 10 additions & 0 deletions modules/boost.charconv/1.87.0/overlay/test/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bazel_dep(name = "boost.charconv")
bazel_dep(name = "boost.test", version = "1.87.0")

local_path_override(
module_name = "boost.charconv",
path = "..",
)

bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.1.1")
12 changes: 12 additions & 0 deletions modules/boost.charconv/1.87.0/patches/patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/include/boost/charconv/detail/type_traits.hpp b/include/boost/charconv/detail/type_traits.hpp
index 4160555..54b6d54 100644
--- a/include/boost/charconv/detail/type_traits.hpp
+++ b/include/boost/charconv/detail/type_traits.hpp
@@ -6,6 +6,7 @@
#define BOOST_CHARCONV_DETAIL_TYPE_TRAITS_HPP

#include <boost/charconv/detail/config.hpp>
+#include "emulated128.hpp"
#include <type_traits>

namespace boost { namespace charconv { namespace detail {
44 changes: 44 additions & 0 deletions modules/boost.charconv/1.87.0/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, 8.x, rolling]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--process_headers_in_dependencies'
build_targets:
- '@boost.charconv//:boost.charconv'
bcr_test_module:
module_path: test
matrix:
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- ubuntu2404
- windows
bazel: [7.x, 8.x, rolling]
tasks:
run_test_module:
name: Run test module
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--process_headers_in_dependencies'
build_targets:
- //...
test_targets:
- //...
15 changes: 15 additions & 0 deletions modules/boost.charconv/1.87.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"integrity": "sha256-IV+9lK9/jSNE/wDpeX6vGYRr0aZJleBsfjyztmpRLT0=",
"strip_prefix": "charconv-boost-1.87.0",
"url": "https://github.com/boostorg/charconv/archive/refs/tags/boost-1.87.0.tar.gz",
"patches": {
"patch.diff": "sha256-+tVCv1S3GSxrHeYeRMRpf2lJaB2oOpnesAXkkJ1dRXM="
},
"patch_strip": 1,
"overlay": {
"BUILD.bazel": "sha256-SVFTnql10ZLHs08Qh4crcygt5oENft+f2RWLa3SFzCY=",
"MODULE.bazel": "sha256-eJft/lwnvuS0BD+J1Rnn2oyM7yJIWO2UOPebs/hkrYU=",
"test/BUILD.bazel": "sha256-4vP2zJDOBECZnwhv+k0ywJhurfE+zbgvErCQbhO6hKo=",
"test/MODULE.bazel": "sha256-vReKWE529wY3g6L1ZWrYMKwY0vnPN/9VTSSP8g6M8Jw="
}
}
18 changes: 18 additions & 0 deletions modules/boost.charconv/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "http://boost.org/libs/charconv",
"maintainers": [
{
"email": "[email protected]",
"github": "kekxv",
"name": "kekxv",
"github_user_id": 15551108
}
],
"repository": [
"github:boostorg/charconv"
],
"versions": [
"1.87.0"
],
"yanked_versions": {}
}
12 changes: 12 additions & 0 deletions modules/boost.compat/1.87.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module(
name = "boost.compat",
version = "1.87.0",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108700,
)

bazel_dep(name = "boost.assert", version = "1.87.0")
bazel_dep(name = "boost.config", version = "1.87.0")
bazel_dep(name = "boost.throw_exception", version = "1.87.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.1.1")
19 changes: 19 additions & 0 deletions modules/boost.compat/1.87.0/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

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

cc_library(
name = "boost.compat",
hdrs = glob([
"include/boost/compat/**/*",
]),
features = [
"parse_headers",
],
includes = ["include"],
deps = [
"@boost.assert",
"@boost.config",
"@boost.throw_exception",
],
)
1 change: 1 addition & 0 deletions modules/boost.compat/1.87.0/overlay/MODULE.bazel
20 changes: 20 additions & 0 deletions modules/boost.compat/1.87.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.compat//:boost.compat'
10 changes: 10 additions & 0 deletions modules/boost.compat/1.87.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-mNTSa5OSQOVWIk92iGO/mTtMARuAIvriTWMOiU0T6RA=",
"strip_prefix": "compat-boost-1.87.0",
"url": "https://github.com/boostorg/compat/archive/refs/tags/boost-1.87.0.tar.gz",
"patch_strip": 0,
"overlay": {
"MODULE.bazel": "sha256-h+2gN6CfwS/a7/1ZKtmVjVm5X/0XVUnecFS7Bgk5xPo=",
"BUILD.bazel": "sha256-KDC7g6R8MghfWVrEGTKQIhyDz403AtzPKGDTnqVPwm8="
}
}
18 changes: 18 additions & 0 deletions modules/boost.compat/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "http://boost.org/libs/compat",
"maintainers": [
{
"email": "[email protected]",
"github": "kekxv",
"name": "kekxv",
"github_user_id": 15551108
}
],
"repository": [
"github:boostorg/compat"
],
"versions": [
"1.87.0"
],
"yanked_versions": {}
}
34 changes: 34 additions & 0 deletions modules/boost.mysql/1.87.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module(
name = "boost.mysql",
version = "1.87.0",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 108700,
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "boringssl", version = "0.20240913.0")
bazel_dep(name = "boost.align", version = "1.87.0")
bazel_dep(name = "boost.compat", version = "1.87.0")
bazel_dep(name = "boost.charconv", version = "1.87.0")
bazel_dep(name = "boost.asio", version = "1.87.0.bcr.1")
bazel_dep(name = "boost.array", version = "1.87.0")
bazel_dep(name = "boost.assert", version = "1.87.0")
bazel_dep(name = "boost.bind", version = "1.87.0")
bazel_dep(name = "boost.chrono", version = "1.87.0")
bazel_dep(name = "boost.config", version = "1.87.0")
bazel_dep(name = "boost.context", version = "1.87.0")
bazel_dep(name = "boost.core", version = "1.87.0")
bazel_dep(name = "boost.coroutine", version = "1.87.0")
bazel_dep(name = "boost.date_time", version = "1.87.0")
bazel_dep(name = "boost.endian", version = "1.87.0")
bazel_dep(name = "boost.exception", version = "1.87.0")
bazel_dep(name = "boost.function", version = "1.87.0")
bazel_dep(name = "boost.regex", version = "1.87.0")
bazel_dep(name = "boost.pfr", version = "1.87.0")
bazel_dep(name = "boost.smart_ptr", version = "1.87.0")
bazel_dep(name = "boost.system", version = "1.87.0")
bazel_dep(name = "boost.throw_exception", version = "1.87.0")
bazel_dep(name = "boost.type_traits", version = "1.87.0")
bazel_dep(name = "boost.utility", version = "1.87.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.1.1")
86 changes: 86 additions & 0 deletions modules/boost.mysql/1.87.0/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@rules_cc//cc:defs.bzl", "cc_library")

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

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

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.mysql.src.cpp",
content = ["#include <boost/mysql/src.hpp>"],
visibility = ["//visibility:private"],
)

cc_library(
name = "boost.mysql",
srcs = [":src"],
defines = ["BOOST_MYSQL_SEPARATE_COMPILATION"],
features = [
"parse_headers",
],
includes = ["include"],
textual_hdrs = glob([
"include/**/*.*pp",
]),
deps = [
"@boost.align",
"@boost.array",
"@boost.asio",
"@boost.assert",
"@boost.bind",
"@boost.charconv",
"@boost.chrono",
"@boost.compat",
"@boost.config",
"@boost.context",
"@boost.core",
"@boost.coroutine",
"@boost.date_time",
"@boost.endian",
"@boost.exception",
"@boost.function",
"@boost.pfr",
"@boost.regex",
"@boost.smart_ptr",
"@boost.system",
"@boost.throw_exception",
"@boost.type_traits",
"@boost.utility",
] + select({
":openssl": [
"@openssl//:crypto",
"@openssl//:ssl",
],
":boringssl": [
"@boringssl//:crypto",
"@boringssl//:ssl",
],
":no_ssl": [],
}),
)
1 change: 1 addition & 0 deletions modules/boost.mysql/1.87.0/overlay/MODULE.bazel
9 changes: 9 additions & 0 deletions modules/boost.mysql/1.87.0/overlay/example/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")

cc_binary(
name = "1_sync",
srcs = ["1_tutorial/1_sync.cpp"],
deps = [
"@boost.mysql",
],
)
Loading
Loading