From 51547c943629ae2a9753ae1490ea53d01264eacc Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 22 Dec 2020 14:37:37 -0800 Subject: [PATCH] feat: C++ rules for frequently-mentioned services These services come up in random bugs, requests for help on GitHub, etc. We think having the C++ rules for them would be useful, as there is some demand for them. PiperOrigin-RevId: 348695619 --- google/cloud/speech/v1/BUILD.bazel | 18 +++++++++++++++++- google/cloud/texttospeech/v1/BUILD.bazel | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/google/cloud/speech/v1/BUILD.bazel b/google/cloud/speech/v1/BUILD.bazel index 5f07d6cf..dded7044 100644 --- a/google/cloud/speech/v1/BUILD.bazel +++ b/google/cloud/speech/v1/BUILD.bazel @@ -330,4 +330,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "speech_cc_proto", + deps = [":speech_proto"], +) + +cc_grpc_library( + name = "speech_cc_grpc", + srcs = [":speech_proto"], + grpc_only = True, + deps = [":speech_cc_proto"], +) diff --git a/google/cloud/texttospeech/v1/BUILD.bazel b/google/cloud/texttospeech/v1/BUILD.bazel index 37c84ff5..0f212b71 100644 --- a/google/cloud/texttospeech/v1/BUILD.bazel +++ b/google/cloud/texttospeech/v1/BUILD.bazel @@ -353,4 +353,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "texttospeech_cc_proto", + deps = [":texttospeech_proto"], +) + +cc_grpc_library( + name = "texttospeech_cc_grpc", + srcs = [":texttospeech_proto"], + grpc_only = True, + deps = [":texttospeech_cc_proto"], +)