update build rules

pull/10196/head
theodorerose 2 years ago
parent 152f97d8c1
commit d296b2be9d
  1. 27
      src/google/protobuf/util/BUILD.bazel

@ -112,6 +112,20 @@ cc_test(
],
)
cc_library(
name = "zero_copy_sink",
srcs = ["zero_copy_sink.cc"],
hdrs = ["zero_copy_sink.h"],
copts = COPTS,
strip_include_prefix = "/src",
visibility = ["//visibility:private"],
deps = [
"//src/google/protobuf",
"//src/google/protobuf/io",
"//src/google/protobuf/stubs",
],
)
cc_library(
name = "json_util",
srcs = ["json_util.cc"],
@ -121,6 +135,7 @@ cc_library(
visibility = ["//:__subpackages__"],
deps = [
":type_resolver_util",
":zero_copy_sink",
"//src/google/protobuf",
"//src/google/protobuf/io",
"//src/google/protobuf/stubs",
@ -131,6 +146,18 @@ cc_library(
],
)
cc_test(
name = "zero_copy_sink_test",
srcs = ["zero_copy_sink_test.cc"],
copts = COPTS,
deps = [
":zero_copy_sink",
"//src/google/protobuf/stubs",
"@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "json_util_test",
srcs = ["json_util_test.cc"],

Loading…
Cancel
Save