Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup usage of the protobuf workspace. #19032

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow/compiler/xla/service/interpreter/BUILD
Expand Up @@ -61,8 +61,8 @@ cc_library(
srcs = ["platform_id.cc"],
hdrs = ["platform_id.h"],
deps = ["//tensorflow/core:stream_executor_headers_lib"] + if_static(
["@protobuf_archive//:protobuf"],
["@protobuf_archive//:protobuf_headers"],
["@com_google_protobuf//:protobuf"],
["@com_google_protobuf//:protobuf_headers"],
),
)

Expand Down
6 changes: 3 additions & 3 deletions tensorflow/compiler/xla/xla.bzl
Expand Up @@ -13,10 +13,10 @@ def xla_proto_library(name, srcs=[], deps=[], visibility=None, testonly=0, **kwa
srcs=srcs,
deps=deps,
cc_libs = if_static(
["@protobuf_archive//:protobuf"],
otherwise=["@protobuf_archive//:protobuf_headers"],
["@com_google_protobuf//:protobuf"],
otherwise=["@com_google_protobuf//:protobuf_headers"],
),
protoc="@protobuf_archive//:protoc",
protoc="@com_google_protobuf//:protoc",
testonly=testonly,
visibility=visibility,
**kwargs)
Expand Down
8 changes: 4 additions & 4 deletions tensorflow/contrib/factorization/kernels/BUILD
Expand Up @@ -14,7 +14,7 @@ cc_library(
":clustering_ops",
":masked_matmul_ops",
":wals_solver_ops",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand All @@ -24,7 +24,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand All @@ -35,7 +35,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand All @@ -47,7 +47,7 @@ cc_library(
"//tensorflow/core:framework_headers_lib",
"//tensorflow/core/kernels:bounds_check",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/ffmpeg/default/BUILD
Expand Up @@ -20,7 +20,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/hadoop/BUILD
Expand Up @@ -46,7 +46,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/contrib/ignite/BUILD
Expand Up @@ -67,7 +67,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"@boringssl//:ssl",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand All @@ -86,7 +86,7 @@ cc_library(
":ignite_client",
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/image/BUILD
Expand Up @@ -353,7 +353,7 @@ tf_custom_op_library(
"ops/single_image_random_dot_stereograms_ops.cc",
],
deps = [
"@protobuf_archive//:protobuf",
"@com_google_protobuf//:protobuf",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/input_pipeline/kernels/BUILD
Expand Up @@ -13,7 +13,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
2 changes: 1 addition & 1 deletion tensorflow/contrib/kafka/BUILD
Expand Up @@ -39,8 +39,8 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf_headers",
"@kafka",
"@protobuf_archive//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/kinesis/BUILD
Expand Up @@ -43,7 +43,7 @@ cc_library(
"//tensorflow/core/platform/s3:aws_crypto",
"//third_party/eigen3",
"@aws",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/layers/kernels/BUILD
Expand Up @@ -13,8 +13,8 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf_headers",
"@farmhash_archive//:farmhash",
"@protobuf_archive//:protobuf_headers",
],
alwayslink = 1,
)
2 changes: 1 addition & 1 deletion tensorflow/contrib/periodic_resample/BUILD
Expand Up @@ -21,7 +21,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/proto/python/kernel_tests/BUILD
Expand Up @@ -109,7 +109,7 @@ py_library(
":proto_op_test_base",
"//third_party/py/numpy",
"@absl_py//absl/testing:parameterized",
"@protobuf_archive//:protobuf_python",
"@com_google_protobuf//:protobuf_python",
],
)

Expand Down
6 changes: 3 additions & 3 deletions tensorflow/contrib/tensor_forest/BUILD
Expand Up @@ -42,7 +42,7 @@ cc_library(
":tree_utils",
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
alwayslink = 1,
)
Expand Down Expand Up @@ -387,7 +387,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand All @@ -411,7 +411,7 @@ tf_cc_shared_object(
deps = [
":forest_proto_impl",
"//tensorflow/contrib/tensor_forest/kernels/v4:decision-tree-resource_impl",
"@protobuf_archive//:protobuf",
"@com_google_protobuf//:protobuf",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/tensor_forest/hybrid/BUILD
Expand Up @@ -76,7 +76,7 @@ cc_library(
deps = [
"//tensorflow/core:framework_headers_lib",
"//third_party/eigen3",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/tensorrt/BUILD
Expand Up @@ -375,7 +375,7 @@ cc_library(
"//tensorflow/core:graph",
"//tensorflow/core:lib_proto_parsing",
"//tensorflow/core:protos_all_cc",
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
)

Expand Down
24 changes: 12 additions & 12 deletions tensorflow/core/BUILD
Expand Up @@ -426,7 +426,7 @@ cc_library(
":platform_base",
":platform_port",
"//tensorflow/core/platform/default/build_config:protobuf",
"@protobuf_archive//:protobuf",
"@com_google_protobuf//:protobuf",
],
)

Expand Down Expand Up @@ -1661,9 +1661,9 @@ cc_library(
":protos_all_cc_impl",
":stats_calculator_portable",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf",
"@double_conversion//:double-conversion",
"@nsync//:nsync_cpp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand Down Expand Up @@ -1694,9 +1694,9 @@ cc_library(
":protos_all_cc_impl",
"//third_party/eigen3",
"//third_party/fft2d:fft2d_headers",
"@com_google_protobuf//:protobuf",
"@fft2d",
"@gemmlowp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand All @@ -1711,9 +1711,9 @@ cc_library(
":protos_all_cc_impl",
":stats_calculator_portable",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf",
"@double_conversion//:double-conversion",
"@nsync//:nsync_cpp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand Down Expand Up @@ -1752,7 +1752,7 @@ cc_library(
":protos_all_cc_impl",
"//tensorflow/core/kernels:android_tensorflow_kernels",
"//third_party/eigen3",
"@protobuf_archive//:protobuf",
"@com_google_protobuf//:protobuf",
],
alwayslink = 1,
)
Expand All @@ -1776,9 +1776,9 @@ cc_library(
deps = [
":protos_all_cc_impl",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf",
"@double_conversion//:double-conversion",
"@nsync//:nsync_cpp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand All @@ -1800,9 +1800,9 @@ cc_library(
deps = [
":protos_all_cc_impl",
"//third_party/eigen3",
"@com_google_protobuf//:protobuf",
"@double_conversion//:double-conversion",
"@nsync//:nsync_cpp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand Down Expand Up @@ -2217,10 +2217,10 @@ cc_library(
":core_stringpiece",
"//third_party/eigen3",
"//tensorflow/core/platform/default/build_config:platformlib",
"@com_google_protobuf//:protobuf",
"@snappy",
"@zlib_archive//:zlib",
"@double_conversion//:double-conversion",
"@protobuf_archive//:protobuf",
] + tf_protos_all_impl() + tf_protos_grappler_impl(),
)

Expand Down Expand Up @@ -2548,10 +2548,10 @@ tf_cuda_library(
] + if_static(
extra_deps = [
":framework_internal_impl",
"@protobuf_archive//:protobuf",
"@com_google_protobuf//:protobuf",
],
otherwise = [
"@protobuf_archive//:protobuf_headers",
"@com_google_protobuf//:protobuf_headers",
],
),
alwayslink = 1,
Expand Down Expand Up @@ -2645,8 +2645,8 @@ tf_cuda_library(
"//tensorflow/core/kernels:bounds_check",
"//third_party/eigen3",
] + if_static(
extra_deps = ["@protobuf_archive//:protobuf"],
otherwise = ["@protobuf_archive//:protobuf_headers"],
extra_deps = ["@com_google_protobuf//:protobuf"],
otherwise = ["@com_google_protobuf//:protobuf_headers"],
) + mkl_deps(),
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/kernels/BUILD
Expand Up @@ -5727,9 +5727,9 @@ cc_library(
"//tensorflow/core:protos_all_cc_impl",
"//third_party/eigen3",
"//third_party/fft2d:fft2d_headers",
"@com_google_protobuf//:protobuf",
"@fft2d",
"@gemmlowp",
"@protobuf_archive//:protobuf",
],
alwayslink = 1,
)
Expand Down