aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/BUILD')
-rw-r--r--tensorflow/core/BUILD85
1 files changed, 82 insertions, 3 deletions
diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD
index 8c475cd232..38d9ac7eaa 100644
--- a/tensorflow/core/BUILD
+++ b/tensorflow/core/BUILD
@@ -64,6 +64,7 @@ load(
"//tensorflow:tensorflow.bzl",
"full_path",
"if_android",
+ "if_not_android_mips_and_mips64",
"if_ios",
"if_linux_x86_64",
"if_not_mobile",
@@ -932,9 +933,7 @@ filegroup(
cc_library(
name = "android_tensorflow_lib_lite",
srcs = if_android(["//tensorflow/core:android_srcs"]),
- copts = tf_copts() + [
- "-Os",
- ],
+ copts = tf_copts() + if_not_android_mips_and_mips64(["-Os"]),
linkopts = ["-lz"],
tags = [
"manual",
@@ -1429,6 +1428,86 @@ cc_library(
],
)
+cc_library(
+ name = "android_jpeg_internal",
+ srcs = [
+ "lib/jpeg/jpeg_handle.cc",
+ "lib/jpeg/jpeg_mem.cc",
+ "platform/jpeg.h",
+ ],
+ hdrs = [
+ "lib/core/stringpiece.h",
+ "lib/jpeg/jpeg_handle.h",
+ "lib/jpeg/jpeg_mem.h",
+ "platform/default/dynamic_annotations.h",
+ "platform/default/integral_types.h",
+ "platform/default/logging.h",
+ "platform/dynamic_annotations.h",
+ "platform/logging.h",
+ "platform/macros.h",
+ "platform/mem.h",
+ "platform/platform.h",
+ "platform/types.h",
+ ],
+ copts = tf_copts(),
+ linkopts = ["-ldl"],
+ deps = [
+ "//tensorflow/core/platform/default/build_config:jpeg",
+ ],
+)
+
+cc_library(
+ name = "android_gif_internal",
+ srcs = [
+ "lib/gif/gif_io.cc",
+ "platform/gif.h",
+ ],
+ hdrs = [
+ "lib/core/stringpiece.h",
+ "lib/gif/gif_io.h",
+ "lib/gtl/cleanup.h",
+ "platform/default/dynamic_annotations.h",
+ "platform/default/integral_types.h",
+ "platform/default/logging.h",
+ "platform/dynamic_annotations.h",
+ "platform/logging.h",
+ "platform/macros.h",
+ "platform/mem.h",
+ "platform/platform.h",
+ "platform/types.h",
+ ],
+ copts = tf_copts(),
+ linkopts = ["-ldl"],
+ deps = [
+ "//tensorflow/core/platform/default/build_config:gif",
+ ],
+)
+
+cc_library(
+ name = "android_png_internal",
+ srcs = [
+ "lib/png/png_io.cc",
+ "platform/png.h",
+ ],
+ hdrs = [
+ "lib/core/casts.h",
+ "lib/core/stringpiece.h",
+ "lib/png/png_io.h",
+ "platform/cpu_info.h",
+ "platform/default/integral_types.h",
+ "platform/default/logging.h",
+ "platform/logging.h",
+ "platform/macros.h",
+ "platform/platform.h",
+ "platform/types.h",
+ ],
+ copts = tf_copts(),
+ linkopts = ["-ldl"],
+ deps = [
+ "@png_archive//:png",
+ ],
+)
+
proto_text_hdrs_and_srcs = tf_generate_proto_text_sources(
name = "proto_text_srcs_all",
srcs = CORE_PROTO_SRCS,