Internal change only.

PiperOrigin-RevId: 310919530
Change-Id: I001957cc435c019c3611d728c8954cfe610ea6c8
This commit is contained in:
A. Unique TensorFlower 2020-05-11 08:42:41 -07:00 committed by TensorFlower Gardener
parent 1631fa86e7
commit 1514dd4025
4 changed files with 10 additions and 5 deletions

View File

@ -112,6 +112,7 @@ load(
"tf_kernel_tests_linkstatic", "tf_kernel_tests_linkstatic",
"tf_lib_proto_parsing_deps", "tf_lib_proto_parsing_deps",
"tf_portable_deps_no_runtime", "tf_portable_deps_no_runtime",
"tf_portable_proto_lib",
"tf_proto_library", "tf_proto_library",
"tf_proto_library_cc", "tf_proto_library_cc",
"tf_protos_all_impl", "tf_protos_all_impl",
@ -1378,10 +1379,9 @@ cc_library(
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
":protos_all_cc_impl",
"//tensorflow/core/util:stats_calculator_portable", "//tensorflow/core/util:stats_calculator_portable",
"//tensorflow/core:mobile_additional_lib_deps", "//tensorflow/core:mobile_additional_lib_deps",
] + tf_portable_deps_no_runtime(), ] + tf_portable_proto_lib() + tf_portable_deps_no_runtime(),
alwayslink = 1, alwayslink = 1,
) )

View File

@ -26,6 +26,7 @@ load(
_tf_platform_alias = "tf_platform_alias", _tf_platform_alias = "tf_platform_alias",
_tf_platform_deps = "tf_platform_deps", _tf_platform_deps = "tf_platform_deps",
_tf_portable_deps_no_runtime = "tf_portable_deps_no_runtime", _tf_portable_deps_no_runtime = "tf_portable_deps_no_runtime",
_tf_portable_proto_lib = "tf_portable_proto_lib",
_tf_proto_library = "tf_proto_library", _tf_proto_library = "tf_proto_library",
_tf_proto_library_cc = "tf_proto_library_cc", _tf_proto_library_cc = "tf_proto_library_cc",
_tf_proto_library_py = "tf_proto_library_py", _tf_proto_library_py = "tf_proto_library_py",
@ -65,6 +66,7 @@ tf_lib_proto_parsing_deps = _tf_lib_proto_parsing_deps
tf_logging_deps = _tf_logging_deps tf_logging_deps = _tf_logging_deps
tf_platform_alias = _tf_platform_alias tf_platform_alias = _tf_platform_alias
tf_platform_deps = _tf_platform_deps tf_platform_deps = _tf_platform_deps
tf_portable_proto_lib = _tf_portable_proto_lib
tf_portable_deps_no_runtime = _tf_portable_deps_no_runtime tf_portable_deps_no_runtime = _tf_portable_deps_no_runtime
tf_proto_library = _tf_proto_library tf_proto_library = _tf_proto_library
tf_proto_library_cc = _tf_proto_library_cc tf_proto_library_cc = _tf_proto_library_cc

View File

@ -727,6 +727,9 @@ def tf_protobuf_deps():
otherwise = [clean_dep("@com_google_protobuf//:protobuf_headers")], otherwise = [clean_dep("@com_google_protobuf//:protobuf_headers")],
) )
def tf_portable_proto_lib():
return ["//tensorflow/core:protos_all_cc_impl"]
def tf_protobuf_compiler_deps(): def tf_protobuf_compiler_deps():
return if_static( return if_static(
[ [
@ -764,7 +767,7 @@ def tf_portable_deps_no_runtime():
"@nsync//:nsync_cpp", "@nsync//:nsync_cpp",
"@com_googlesource_code_re2//:re2", "@com_googlesource_code_re2//:re2",
"@farmhash_archive//:farmhash", "@farmhash_archive//:farmhash",
] + tf_protobuf_deps() ]
def tf_google_mobile_srcs_no_runtime(): def tf_google_mobile_srcs_no_runtime():
return [] return []

View File

@ -193,10 +193,10 @@ def if_macos(a, otherwise = []):
"//conditions:default": otherwise, "//conditions:default": otherwise,
}) })
def if_ios(a): def if_ios(a, otherwise = []):
return select({ return select({
clean_dep("//tensorflow:ios"): a, clean_dep("//tensorflow:ios"): a,
"//conditions:default": [], "//conditions:default": otherwise,
}) })
def if_ios_x86_64(a): def if_ios_x86_64(a):