Convert tensorflow/c:pywrap_required_headers from a filegroup to textual headers cc_library target.

PiperOrigin-RevId: 327511112
Change-Id: I22edce440f1f1a3c45512265f4412c4828251ba4
This commit is contained in:
Amit Patankar 2020-08-19 14:49:02 -07:00 committed by TensorFlower Gardener
parent da671e7e88
commit 8145595a35
2 changed files with 5 additions and 5 deletions

View File

@ -58,9 +58,9 @@ filegroup(
visibility = ["//visibility:public"],
)
filegroup(
cc_library(
name = "pywrap_required_hdrs",
srcs = [
textual_hdrs = [
"c_api_internal.h",
"c_api_macros.h",
"conversion_macros.h",

View File

@ -679,7 +679,6 @@ tf_python_pybind_extension(
"lib/core/numpy.h",
"lib/core/safe_ptr.h",
"//tensorflow/c:headers",
"//tensorflow/c:pywrap_required_hdrs",
"//tensorflow/c/eager:headers",
"//tensorflow/c/eager:pywrap_required_hdrs",
"//tensorflow/core/common_runtime/eager:pywrap_required_hdrs",
@ -692,6 +691,7 @@ tf_python_pybind_extension(
":pybind11_lib",
":pybind11_status",
"//third_party/py/numpy:headers",
"//tensorflow/c:pywrap_required_hdrs",
"@pybind11",
"//third_party/python_runtime:headers",
"//tensorflow/core:protos_all_cc",
@ -1022,7 +1022,6 @@ cc_library(
"lib/core/numpy.h",
"lib/core/safe_ptr.h",
"//tensorflow/c:headers",
"//tensorflow/c:pywrap_required_hdrs",
"//tensorflow/c/eager:headers",
],
features = [
@ -1033,6 +1032,7 @@ cc_library(
]),
deps = [
":numpy_lib",
"//tensorflow/c:pywrap_required_hdrs",
"//tensorflow/c:tf_status_headers",
"//tensorflow/core:framework_internal_headers_lib",
"//tensorflow/core/common_runtime:core_cpu_headers_lib",
@ -8344,7 +8344,6 @@ tf_python_pybind_extension(
"util/util.h",
":py_exception_registry_hdr",
"//tensorflow/c:headers",
"//tensorflow/c:pywrap_required_hdrs",
"//tensorflow/c/eager:headers",
"//tensorflow/c/eager:pywrap_required_hdrs",
"//tensorflow/core/common_runtime/eager:pywrap_required_hdrs",
@ -8362,6 +8361,7 @@ tf_python_pybind_extension(
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:optional",
"//tensorflow/c:pywrap_required_hdrs",
"@pybind11",
"//third_party/python_runtime:headers",
"//tensorflow/c/experimental/saved_model/core:pywrap_required_hdrs",