diff --git a/modules/boost.mysql/1.89.0/MODULE.bazel b/modules/boost.mysql/1.89.0/MODULE.bazel new file mode 100644 index 00000000000..869640eb47b --- /dev/null +++ b/modules/boost.mysql/1.89.0/MODULE.bazel @@ -0,0 +1,24 @@ +module( + name = "boost.mysql", + version = "1.89.0", + bazel_compatibility = [">=7.6.0"], + compatibility_level = 108900, +) + +bazel_dep(name = "boost.asio", version = "1.89.0") +bazel_dep(name = "boost.assert", version = "1.89.0") +bazel_dep(name = "boost.charconv", version = "1.89.0") +bazel_dep(name = "boost.compat", version = "1.89.0") +bazel_dep(name = "boost.config", version = "1.89.0") +bazel_dep(name = "boost.core", version = "1.89.0") +bazel_dep(name = "boost.describe", version = "1.89.0") +bazel_dep(name = "boost.endian", version = "1.89.0") +bazel_dep(name = "boost.intrusive", version = "1.89.0") +bazel_dep(name = "boost.mp11", version = "1.89.0") +bazel_dep(name = "boost.optional", version = "1.89.0") +bazel_dep(name = "boost.pfr", version = "1.89.0") +bazel_dep(name = "boost.system", version = "1.89.0") +bazel_dep(name = "boost.throw_exception", version = "1.89.0") +bazel_dep(name = "boost.variant2", version = "1.89.0") +bazel_dep(name = "boost.pin_version", version = "1.89.0") +bazel_dep(name = "rules_cc", version = "0.2.2") diff --git a/modules/boost.mysql/1.89.0/overlay/BUILD.bazel b/modules/boost.mysql/1.89.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..250c7be1408 --- /dev/null +++ b/modules/boost.mysql/1.89.0/overlay/BUILD.bazel @@ -0,0 +1,28 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +cc_library( + name = "boost.mysql", + hdrs = glob([ + "include/**/*.hpp", + ]), + features = ["parse_headers"], + includes = ["include"], + visibility = ["//visibility:public"], + deps = [ + "@boost.asio", + "@boost.assert", + "@boost.charconv", + "@boost.compat", + "@boost.config", + "@boost.core", + "@boost.describe", + "@boost.endian", + "@boost.intrusive", + "@boost.mp11", + "@boost.optional", + "@boost.pfr", + "@boost.system", + "@boost.throw_exception", + "@boost.variant2", + ], +) diff --git a/modules/boost.mysql/1.89.0/overlay/MODULE.bazel b/modules/boost.mysql/1.89.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/boost.mysql/1.89.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/boost.mysql/1.89.0/overlay/example/BUILD.bazel b/modules/boost.mysql/1.89.0/overlay/example/BUILD.bazel new file mode 100644 index 00000000000..ccd1b83e729 --- /dev/null +++ b/modules/boost.mysql/1.89.0/overlay/example/BUILD.bazel @@ -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", + ], +) diff --git a/modules/boost.mysql/1.89.0/overlay/example/MODULE.bazel b/modules/boost.mysql/1.89.0/overlay/example/MODULE.bazel new file mode 100644 index 00000000000..d33125cab40 --- /dev/null +++ b/modules/boost.mysql/1.89.0/overlay/example/MODULE.bazel @@ -0,0 +1,7 @@ +bazel_dep(name = "boost.mysql") +local_path_override( + module_name = "boost.mysql", + path = "..", +) + +bazel_dep(name = "rules_cc", version = "0.2.2") diff --git a/modules/boost.mysql/1.89.0/presubmit.yml b/modules/boost.mysql/1.89.0/presubmit.yml new file mode 100644 index 00000000000..bb326077d24 --- /dev/null +++ b/modules/boost.mysql/1.89.0/presubmit.yml @@ -0,0 +1,103 @@ +matrix: + unix_platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - windows + bazel: [7.x, 8.x, rolling] +tasks: + verify_targets_use_boringssl: + name: Verify boringssl build targets + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++17' + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=boringssl' + build_targets: + - '@boost.mysql//:boost.mysql' + verify_targets_use_boringssl_on_windows: + name: Verify boringssl build targets + platform: windows + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=/std:c++17' + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=boringssl' + build_targets: + - '@boost.mysql//:boost.mysql' + verify_targets_use_openssl: + name: Verify openssl build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=openssl' + build_targets: + - '@boost.mysql//:boost.mysql' +bcr_example_module: + module_path: example + matrix: + unix_platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + - windows + bazel: [7.x, 8.x, rolling] + tasks: + run_example_module_on_boringssl: + name: Run example(boringssl) module + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++17' + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=boringssl' + build_targets: + - //... + test_targets: + - //... + run_example_module_on_boringssl_windows: + name: Run example(boringssl) module + platform: windows + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=/std:c++17' + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=boringssl' + build_targets: + - //... + test_targets: + - //... + run_example_module_on_openssl: + name: Run example(openssl) module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--process_headers_in_dependencies' + - '--@boost.mysql//:ssl=openssl' + build_targets: + - //... + test_targets: + - //... diff --git a/modules/boost.mysql/1.89.0/source.json b/modules/boost.mysql/1.89.0/source.json new file mode 100644 index 00000000000..746672dd692 --- /dev/null +++ b/modules/boost.mysql/1.89.0/source.json @@ -0,0 +1,12 @@ +{ + "integrity": "sha256-jn+vgasKSgd3fRW0h9DqDmsCaEH5RUecP0XdiALTL44=", + "strip_prefix": "mysql-boost-1.89.0", + "url": "https://github.com/boostorg/mysql/archive/refs/tags/boost-1.89.0.tar.gz", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-getnFPYl8gnuG3CDB6lZ+ZCmLOExKtnrYCjh5Uow+ho=", + "MODULE.bazel": "sha256-6wZsRcdc3w4oF9rv1TKtTgPC6KBPD+VdW+8fZGZ/rP4=", + "example/BUILD.bazel": "sha256-vcRL7c+2FPzP9x2wEcSICMooBPgeU/5YJ4qDX/wuvGQ=", + "example/MODULE.bazel": "sha256-BAMSeLzEIenIVO9hiqjH01V3bddguVVl2QzCKOaXHkc=" + } +} diff --git a/modules/boost.mysql/metadata.json b/modules/boost.mysql/metadata.json index 549f16b2ee6..68cf5e06fc4 100644 --- a/modules/boost.mysql/metadata.json +++ b/modules/boost.mysql/metadata.json @@ -1,25 +1,26 @@ { - "homepage": "http://boost.org/libs/mysql", - "maintainers": [ - { - "email": "caesar@kekxv.com", - "github": "kekxv", - "name": "kekxv", - "github_user_id": 15551108 - }, - { - "email": "julian.amann@tum.de", - "github": "Vertexwahn", - "github_user_id": 3775001, - "name": "Julian Amann" - } - ], - "repository": [ - "github:boostorg/mysql" - ], - "versions": [ - "1.87.0", - "1.88.0" - ], - "yanked_versions": {} + "homepage": "http://boost.org/libs/mysql", + "maintainers": [ + { + "email": "caesar@kekxv.com", + "github": "kekxv", + "github_user_id": 15551108, + "name": "kekxv" + }, + { + "email": "julian.amann@tum.de", + "github": "Vertexwahn", + "github_user_id": 3775001, + "name": "Julian Amann" + } + ], + "repository": [ + "github:boostorg/mysql" + ], + "versions": [ + "1.87.0", + "1.88.0", + "1.89.0" + ], + "yanked_versions": {} }