message: Make FRAMEWORK_INTERNAL_PRIVATE_HEADERS and FRAMEWORK_INTERNAL_PUBLIC_HEADERS filegroups.
diff: @@ -2146,16 +2146,22 @@ alias(
  actual = "//tensorflow/core/util:version_info",
  )
  -FRAMEWORK_INTERNAL_PRIVATE_HEADERS = [
  - "//tensorflow/core/graph:framework_internal_private_headers",
  - "//tensorflow/core/util/sparse:framework_internal_private_headers_group",
  +filegroup(
  + name = "framework_internal_private_headers",
  + srcs = [
  + "//tensorflow/core/example:feature_util.h",
  "//tensorflow/core/framework:framework_internal_private_hdrs",
  + "//tensorflow/core/graph:framework_internal_private_headers",
  "//tensorflow/core/util:framework_internal_private_hdrs",
  "//tensorflow/core/util:memmapped_file_system_hdrs",
  - "//tensorflow/core/example:feature_util.h",
  -]
  + "//tensorflow/core/util/sparse:framework_internal_private_headers_group",
  + ],
  + visibility = ["//visibility:private"],
  +)
  -FRAMEWORK_INTERNAL_PUBLIC_HEADERS = [
  +filegroup(
  + name = "framework_internal_public_headers",
  + srcs = [
  "//tensorflow/core/framework:model.h", # only needed for tests
  "//tensorflow/core/framework:op_segment.h",
  "//tensorflow/core/framework:rendezvous.h", # only needed for tests
  @@ -2168,12 +2174,14 @@ FRAMEWORK_INTERNAL_PUBLIC_HEADERS = [
  "//tensorflow/core/framework:unique_tensor_references.h",
  "//tensorflow/core/framework:variant.h",
  "//tensorflow/core/util:framework_internal_public_hdrs",
  -]
  + ],
  + visibility = ["//visibility:private"],
  +)
  tf_cuda_library(
  name = "framework_internal",
  - srcs = FRAMEWORK_INTERNAL_PRIVATE_HEADERS,
  - hdrs = FRAMEWORK_INTERNAL_PUBLIC_HEADERS,
  + srcs = [":framework_internal_private_headers"],
  + hdrs = [":framework_internal_public_headers"],
  deps = [
  ":framework_internal_headers_lib",
  "//third_party/eigen3",
  @@ -2217,7 +2225,8 @@ cc_header_only_library(
  tf_cuda_library(
  name = "framework_internal_impl",
  - srcs = FRAMEWORK_INTERNAL_PRIVATE_HEADERS + [
  + srcs = [
  + ":framework_internal_private_headers",
  "//tensorflow/core/framework:framework_internal_impl_srcs",
  "//tensorflow/core/graph:framework_internal_impl_srcs",
  "//tensorflow/core/util:framework_internal_impl_srcs",
  @@ -2231,7 +2240,7 @@ tf_cuda_library(
  "**/*main.cc",
  ],
  ),
  - hdrs = FRAMEWORK_INTERNAL_PUBLIC_HEADERS,
  + hdrs = [":framework_internal_public_headers"],
  copts = tf_copts(),
  linkopts = select({
  "//tensorflow:freebsd": ["-lm"],
  