From 61133313306341663460f0e9b65871220c96a88c Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 24 Aug 2022 18:23:22 -0700 Subject: Exports multiple targets including //third_party/tensorflow/cc:client_session and //third_party/tensorflow/cc:scope from libtensorflow_cc.so to make relevant symbols available for downstream projects including TFDF. PiperOrigin-RevId: 469873962 --- tensorflow/BUILD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tensorflow/BUILD b/tensorflow/BUILD index cf97153fe06..19ee8000206 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -1176,12 +1176,16 @@ tf_cc_shared_library( ], }), per_os_targets = True, + roots = [ + "//tensorflow/cc:cc_ops", + "//tensorflow/cc:client_session", + "//tensorflow/cc:const_op", + "//tensorflow/cc:scope", + ], soversion = VERSION, static_deps = PACKAGE_STATIC_DEPS, visibility = ["//visibility:public"], - # copybara:comment_begin(OSS Windows only: DEF file for exported symbols) win_def_file = ":tensorflow_filtered_def_file", - # copybara:comment_end deps = [ "//tensorflow/c:c_api", "//tensorflow/c:env", @@ -1192,9 +1196,6 @@ tf_cc_shared_library( "//tensorflow/c/eager:c_api", "//tensorflow/c/experimental/filesystem:filesystem_interface", "//tensorflow/c/experimental/stream_executor:stream_executor", - "//tensorflow/cc:cc_ops", - "//tensorflow/cc:client_session", - "//tensorflow/cc:scope", "//tensorflow/cc/saved_model:fingerprinting_impl", "//tensorflow/cc/saved_model:loader_lite_impl", "//tensorflow/cc/saved_model:metrics_impl", -- cgit v1.2.3