From 2f8472adc1cbf5d0b86d9ca52671f51363b41011 Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Tue, 6 Aug 2024 16:53:14 -0700 Subject: [PATCH] Introduce hpb_proto_library_bzl PiperOrigin-RevId: 660150036 --- hpb/bazel/BUILD | 11 +++++++++++ hpb/bazel/hpb_proto_library.bzl | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 hpb/bazel/hpb_proto_library.bzl diff --git a/hpb/bazel/BUILD b/hpb/bazel/BUILD index 7381375fed..69de8a767c 100644 --- a/hpb/bazel/BUILD +++ b/hpb/bazel/BUILD @@ -13,6 +13,17 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") licenses(["notice"]) +bzl_library( + name = "hpb_proto_library_bzl", + srcs = ["hpb_proto_library.bzl"], + visibility = ["//visibility:public"], + deps = [ + "//bazel:upb_proto_library_bzl", + "@bazel_skylib//lib:paths", + "@bazel_tools//tools/cpp:toolchain_utils.bzl", + ], +) + bzl_library( name = "upb_cc_proto_library_bzl", srcs = ["upb_cc_proto_library.bzl"], diff --git a/hpb/bazel/hpb_proto_library.bzl b/hpb/bazel/hpb_proto_library.bzl new file mode 100644 index 0000000000..2f393089e1 --- /dev/null +++ b/hpb/bazel/hpb_proto_library.bzl @@ -0,0 +1,14 @@ +# Copyright (c) 2024 Google LLC +# All rights reserved. +# +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file or at +# https://developers.google.com/open-source/licenses/bsd + +"""Public rules for using hpb: + - hpb_proto_library() +""" + +load("//hpb/bazel:upb_cc_proto_library.bzl", "upb_cc_proto_library") + +hpb_proto_library = upb_cc_proto_library