chore(ruby): Configure Bazel to generate a Ruby library for locations clients

PiperOrigin-RevId: 402631864
pull/675/head
Google APIs 3 years ago committed by Copybara-Service
parent e12aa99706
commit 5c01e4e63c
  1. 35
      google/cloud/location/BUILD.bazel

@ -7,6 +7,7 @@ package(default_visibility = ["//visibility:public"])
# Common # Common
############################################################################## ##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_proto//proto:defs.bzl", "proto_library")
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
proto_library( proto_library(
name = "location_proto", name = "location_proto",
@ -20,6 +21,14 @@ proto_library(
], ],
) )
proto_library_with_info(
name = "location_proto_with_info",
deps = [
":location_proto",
"//google/cloud:common_resources_proto",
],
)
############################################################################## ##############################################################################
# Java # Java
############################################################################## ##############################################################################
@ -124,6 +133,8 @@ load(
############################################################################## ##############################################################################
load( load(
"@com_google_googleapis_imports//:imports.bzl", "@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library", "ruby_grpc_library",
"ruby_proto_library", "ruby_proto_library",
) )
@ -139,6 +150,30 @@ ruby_grpc_library(
deps = [":location_ruby_proto"], deps = [":location_ruby_proto"],
) )
ruby_cloud_gapic_library(
name = "location_ruby_gapic",
srcs = [":location_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-location",
],
ruby_cloud_description = "An add-on interface used by some Google API clients to provide location management calls.",
ruby_cloud_title = "Locations",
deps = [
":location_ruby_grpc",
":location_ruby_proto",
],
)
# Open Source Packages
ruby_gapic_assembly_pkg(
name = "google-cloud-location-ruby",
deps = [
":location_ruby_gapic",
":location_ruby_grpc",
":location_ruby_proto",
],
)
############################################################################## ##############################################################################
# C# # C#
############################################################################## ##############################################################################

Loading…
Cancel
Save