diff --git a/modules/cppzmq/4.10.0/MODULE.bazel b/modules/cppzmq/4.10.0/MODULE.bazel new file mode 100644 index 00000000000..43006b4295a --- /dev/null +++ b/modules/cppzmq/4.10.0/MODULE.bazel @@ -0,0 +1,9 @@ +"""cppzmq is a C++ binding for libzmq.""" + +module( + name = "cppzmq", + version = "4.10.0", + compatibility_level = 4, +) + +bazel_dep(name = "libzmq", version = "4.3.5.bcr.1") diff --git a/modules/cppzmq/4.10.0/patches/add_build_file.patch b/modules/cppzmq/4.10.0/patches/add_build_file.patch new file mode 100644 index 00000000000..27715b349a9 --- /dev/null +++ b/modules/cppzmq/4.10.0/patches/add_build_file.patch @@ -0,0 +1,10 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,7 @@ ++""" Builds cppzmq.""" ++cc_library( ++ name = "cppzmq", ++ hdrs = glob(["*.hpp"]), ++ visibility = ["//visibility:public"], ++ deps = ["@libzmq//:libzmq_headers_only"], ++) diff --git a/modules/cppzmq/4.10.0/patches/module_dot_bazel.patch b/modules/cppzmq/4.10.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..4d73cf9bfa2 --- /dev/null +++ b/modules/cppzmq/4.10.0/patches/module_dot_bazel.patch @@ -0,0 +1,12 @@ +--- /dev/null ++++ MODULE.bazel +@@ -0,0 +1,9 @@ ++"""cppzmq is a C++ binding for libzmq.""" ++ ++module( ++ name = "cppzmq", ++ version = "4.10.0", ++ compatibility_level = 4, ++) ++ ++bazel_dep(name = "libzmq", version = "4.3.5.bcr.1") diff --git a/modules/cppzmq/4.10.0/presubmit.yml b/modules/cppzmq/4.10.0/presubmit.yml new file mode 100644 index 00000000000..c15cc4546b1 --- /dev/null +++ b/modules/cppzmq/4.10.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@cppzmq' diff --git a/modules/cppzmq/4.10.0/source.json b/modules/cppzmq/4.10.0/source.json new file mode 100644 index 00000000000..4e8b333e143 --- /dev/null +++ b/modules/cppzmq/4.10.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/zeromq/cppzmq/archive/refs/tags/v4.10.0.tar.gz", + "integrity": "sha256-yByBu6inZEyEkyIl8Bi1CIdDoimZxtgqK19c0eaUK3Q=", + "strip_prefix": "cppzmq-4.10.0", + "patch_strip": 0, + "patches": { + "add_build_file.patch": "sha256-ZzJqhqtYIENHu1c9cGtT7LAG7kq4dBTsb6OI12vvYyY=", + "module_dot_bazel.patch": "sha256-vHfFQXdCxh98DPj9OOBemKICfd+NSzNs+b+NF237WG8=" + } +} diff --git a/modules/cppzmq/metadata.json b/modules/cppzmq/metadata.json new file mode 100644 index 00000000000..68c034075c3 --- /dev/null +++ b/modules/cppzmq/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://www.zeromq.org/", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:zeromq/cppzmq" + ], + "versions": [ + "4.10.0" + ], + "yanked_versions": {} +} diff --git a/modules/libzmq/4.3.5.bcr.1/MODULE.bazel b/modules/libzmq/4.3.5.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..ae0d7fb85d3 --- /dev/null +++ b/modules/libzmq/4.3.5.bcr.1/MODULE.bazel @@ -0,0 +1,13 @@ +""" +The ZeroMQ lightweight messaging kernel is a library which extends the +standard socket interfaces with features traditionally provided by +specialised messaging middleware products. +""" + +module( + name = "libzmq", + version = "4.3.5.bcr.1", + compatibility_level = 4, +) + +bazel_dep(name = "rules_foreign_cc", version = "0.10.1") diff --git a/modules/libzmq/4.3.5.bcr.1/patches/add_build_file.patch b/modules/libzmq/4.3.5.bcr.1/patches/add_build_file.patch new file mode 100644 index 00000000000..302724ae113 --- /dev/null +++ b/modules/libzmq/4.3.5.bcr.1/patches/add_build_file.patch @@ -0,0 +1,27 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,24 @@ ++""" Builds libzmq. ++""" ++load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") ++ ++filegroup( ++ name = "srcs", ++ srcs = glob(["**"]), ++) ++ ++cmake( ++ name = "libzmq", ++ env = {"CMAKE_BUILD_TYPE": "Release"}, ++ lib_source = ":srcs", ++ out_include_dir = "include", ++ out_static_libs = ["libzmq.a"], ++ visibility = ["//visibility:public"], ++) ++ ++cc_library( ++ name = "libzmq_headers_only", ++ hdrs = glob(["include/*.h"]), ++ strip_include_prefix = "include", ++ visibility = ["//visibility:public"], ++) diff --git a/modules/libzmq/4.3.5.bcr.1/patches/module_dot_bazel.patch b/modules/libzmq/4.3.5.bcr.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..e94cdf1ab04 --- /dev/null +++ b/modules/libzmq/4.3.5.bcr.1/patches/module_dot_bazel.patch @@ -0,0 +1,16 @@ +--- /dev/null ++++ MODULE.bazel +@@ -0,0 +1,13 @@ ++""" ++The ZeroMQ lightweight messaging kernel is a library which extends the ++standard socket interfaces with features traditionally provided by ++specialised messaging middleware products. ++""" ++ ++module( ++ name = "libzmq", ++ version = "4.3.5.bcr.1", ++ compatibility_level = 4, ++) ++ ++bazel_dep(name = "rules_foreign_cc", version = "0.10.1") diff --git a/modules/libzmq/4.3.5.bcr.1/presubmit.yml b/modules/libzmq/4.3.5.bcr.1/presubmit.yml new file mode 100644 index 00000000000..9a245351d9e --- /dev/null +++ b/modules/libzmq/4.3.5.bcr.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + # - macos_arm64 + # - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@libzmq' diff --git a/modules/libzmq/4.3.5.bcr.1/source.json b/modules/libzmq/4.3.5.bcr.1/source.json new file mode 100644 index 00000000000..f85f202b896 --- /dev/null +++ b/modules/libzmq/4.3.5.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz", + "integrity": "sha256-ZlPvWRDxeVSGH+cjMuaLA8puTZxxYOs6jeWlqRO/q0M=", + "strip_prefix": "zeromq-4.3.5", + "patch_strip": 0, + "patches": { + "add_build_file.patch": "sha256-YpAn1nkWTR2mna+Cgx9TtHG6Y7mMum3nAVa73RJhFbQ=", + "module_dot_bazel.patch": "sha256-qBWgWwH10wWBjANRdTK8/Z9HoDTiFS87qoios+T7dO8=" + } +} diff --git a/modules/libzmq/metadata.json b/modules/libzmq/metadata.json index aa99b55d434..f9a2752dbe8 100644 --- a/modules/libzmq/metadata.json +++ b/modules/libzmq/metadata.json @@ -10,7 +10,8 @@ "github:zeromq/libzmq" ], "versions": [ - "4.3.5" + "4.3.5", + "4.3.5.bcr.1" ], "yanked_versions": {} }