Skip to content

Commit 5c01e4e

Browse files
Google APIscopybara-github
authored andcommitted
chore(ruby): Configure Bazel to generate a Ruby library for locations clients
PiperOrigin-RevId: 402631864
1 parent e12aa99 commit 5c01e4e

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

google/cloud/location/BUILD.bazel

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package(default_visibility = ["//visibility:public"])
77
# Common
88
##############################################################################
99
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
1011

1112
proto_library(
1213
name = "location_proto",
@@ -20,6 +21,14 @@ proto_library(
2021
],
2122
)
2223

24+
proto_library_with_info(
25+
name = "location_proto_with_info",
26+
deps = [
27+
":location_proto",
28+
"//google/cloud:common_resources_proto",
29+
],
30+
)
31+
2332
##############################################################################
2433
# Java
2534
##############################################################################
@@ -124,6 +133,8 @@ load(
124133
##############################################################################
125134
load(
126135
"@com_google_googleapis_imports//:imports.bzl",
136+
"ruby_cloud_gapic_library",
137+
"ruby_gapic_assembly_pkg",
127138
"ruby_grpc_library",
128139
"ruby_proto_library",
129140
)
@@ -139,6 +150,30 @@ ruby_grpc_library(
139150
deps = [":location_ruby_proto"],
140151
)
141152

153+
ruby_cloud_gapic_library(
154+
name = "location_ruby_gapic",
155+
srcs = [":location_proto_with_info"],
156+
extra_protoc_parameters = [
157+
"ruby-cloud-gem-name=google-cloud-location",
158+
],
159+
ruby_cloud_description = "An add-on interface used by some Google API clients to provide location management calls.",
160+
ruby_cloud_title = "Locations",
161+
deps = [
162+
":location_ruby_grpc",
163+
":location_ruby_proto",
164+
],
165+
)
166+
167+
# Open Source Packages
168+
ruby_gapic_assembly_pkg(
169+
name = "google-cloud-location-ruby",
170+
deps = [
171+
":location_ruby_gapic",
172+
":location_ruby_grpc",
173+
":location_ruby_proto",
174+
],
175+
)
176+
142177
##############################################################################
143178
# C#
144179
##############################################################################

0 commit comments

Comments
 (0)