diff options
author | 2018-07-11 11:09:16 -0700 | |
---|---|---|
committer | 2018-07-11 11:12:54 -0700 | |
commit | 158cd6220231fcf758a45c2dcd40d93cd0aec9e0 (patch) | |
tree | 5dab4860d7d691344a348781a907db2514c73f43 /tensorflow/core/BUILD | |
parent | 135e419e780423a888ddd45e479129493336c52b (diff) |
Split out lib/png into a separate library from the rest of TensorFlow to avoid
unnecessary transitive dependencies.
PiperOrigin-RevId: 204154526
Diffstat (limited to 'tensorflow/core/BUILD')
-rw-r--r-- | tensorflow/core/BUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD index 9d4f7092fa..dbe87a6dbb 100644 --- a/tensorflow/core/BUILD +++ b/tensorflow/core/BUILD @@ -1952,8 +1952,10 @@ LIB_INTERNAL_PRIVATE_HEADERS = ["framework/resource_handle.h"] + glob( "**/*test*", "lib/gif/**/*", "lib/jpeg/**/*", + "lib/png/**/*", "platform/gif.h", "platform/jpeg.h", + "platform/png.h", "platform/**/cuda.h", "platform/**/stream_executor.h", ], @@ -2048,6 +2050,7 @@ cc_library( "lib/hash/crc32c_accelerate.cc", "lib/gif/**/*", "lib/jpeg/**/*", + "lib/png/**/*", "platform/**/env_time.cc", "platform/**/cuda_libdevice_path.cc", "platform/**/device_tracer.cc", @@ -2144,6 +2147,39 @@ cc_library( ) cc_library( + name = "png_internal", + srcs = ["lib/png/png_io.cc"], + hdrs = [ + "lib/bfloat16/bfloat16.h", + "lib/core/casts.h", + "lib/core/stringpiece.h", + "lib/png/png_io.h", + "platform/byte_order.h", + "platform/cpu_info.h", + "platform/default/integral_types.h", + "platform/default/logging.h", + "platform/logging.h", + "platform/macros.h", + "platform/platform.h", + "platform/png.h", + "platform/types.h", + ], + copts = tf_copts(), + linkopts = select({ + "//tensorflow:freebsd": [], + "//tensorflow:windows": [], + "//tensorflow:windows_msvc": [], + "//conditions:default": ["-ldl"], + }), + deps = [ + ":lib", + ":lib_internal", + "//tensorflow/core/platform/default/build_config:png", + "@zlib_archive//:zlib", + ], +) + +cc_library( name = "tflite_portable_logging", srcs = [], hdrs = [ |