Skip to content

Commit ec2e0e8

Browse files
authored
cleanup: streaming.cc in build files (#14253)
1 parent 430aef9 commit ec2e0e8

7 files changed

Lines changed: 11 additions & 2 deletions

File tree

bazel/gapic.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def cc_gapic_library(name, service_dirs = [], googleapis_deps = []):
3434
"*.cc",
3535
]]
3636

37-
sources_glob = [d + "internal/*_sources.cc" for d in service_dirs] + [d + "internal/streaming.cc" for d in service_dirs]
37+
sources_glob = [d + "internal/*_sources.cc" for d in service_dirs]
3838

3939
native.filegroup(
4040
name = "srcs",

cmake/GoogleCloudCppLibrary.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function (google_cloud_cpp_add_gapic_library library display_name)
189189
endif ()
190190
string(REPLACE "/" "_" ns "${dir}")
191191
list(APPEND source_globs "${dir}*.h" "${dir}internal/*.h"
192-
"${dir}internal/*_sources.cc" "${dir}internal/streaming.cc")
192+
"${dir}internal/*_sources.cc")
193193
list(APPEND mocks_globs "${dir}mocks/*.h")
194194
list(APPEND DOXYGEN_EXCLUDE_SYMBOLS "${library}_${ns}internal")
195195
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${dir}samples")

generator/internal/descriptor_utils.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,9 @@ VarsDictionary CreateServiceVars(
841841
vars["sources_cc_path"] =
842842
absl::StrCat(vars["product_path"], "internal/",
843843
ServiceNameToFilePath(service_name), "_sources.cc");
844+
vars["streaming_cc_path"] =
845+
absl::StrCat(vars["product_path"], "internal/",
846+
ServiceNameToFilePath(service_name), "_streaming.cc");
844847
vars["stub_class_name"] = absl::StrCat(service_name, "Stub");
845848
vars["stub_cc_path"] =
846849
absl::StrCat(vars["product_path"], "internal/",

generator/internal/descriptor_utils_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ INSTANTIATE_TEST_SUITE_P(
322322
std::make_pair("service_name", "FrobberService"),
323323
std::make_pair("sources_cc_path",
324324
"google/cloud/frobber/internal/frobber_sources.cc"),
325+
std::make_pair("streaming_cc_path",
326+
"google/cloud/frobber/internal/frobber_streaming.cc"),
325327
std::make_pair("stub_class_name", "FrobberServiceStub"),
326328
std::make_pair("stub_cc_path",
327329
"google/cloud/frobber/internal/frobber_stub.cc"),

generator/internal/make_generators.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ std::vector<std::unique_ptr<GeneratorInterface>> MakeGenerators(
179179
sources.push_back(service_vars["metadata_cc_path"]);
180180
sources.push_back(service_vars["stub_cc_path"]);
181181
sources.push_back(service_vars["tracing_stub_cc_path"]);
182+
if (get_flag("omit_streaming_updater")) {
183+
sources.push_back(service_vars["streaming_cc_path"]);
184+
}
182185
}
183186

184187
if (generate_rest_transport) {

google/cloud/bigquery/storage/v1/internal/bigquery_read_sources.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_logging_decorator.cc"
2626
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_metadata_decorator.cc"
2727
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_option_defaults.cc"
28+
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_streaming.cc"
2829
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_stub.cc"
2930
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_stub_factory.cc"
3031
#include "google/cloud/bigquery/storage/v1/internal/bigquery_read_tracing_connection.cc"

google/cloud/bigquery/storage/v1/internal/streaming.cc renamed to google/cloud/bigquery/storage/v1/internal/bigquery_read_streaming.cc

File renamed without changes.

0 commit comments

Comments
 (0)