This CL makes an enormous swathe of TF Lite's tests buildable on Android
targets (and helps for many iOS tests, as well).
The only reason the tests dependended on tensorflow/core:lib was because lib was
the most common target that includes logging.h, which is necessary for
log-related tests.
This set of utilities may not be perfect (e.g. it still means that certain
TF-related test resources, like FLAGs, are not accessible), but it is an
improvement.
PiperOrigin-RevId:
187940806
"//tensorflow/contrib/lite:schema_fbs_version",
"//tensorflow/contrib/lite:string_util",
"//tensorflow/contrib/lite/testing:util",
- "//tensorflow/core:lib",
+ "//tensorflow/core:tflite_portable_logging",
"@com_google_googletest//:gtest",
],
)
)
cc_library(
+ name = "tflite_portable_logging",
+ srcs = [],
+ hdrs = [
+ "lib/bfloat16/bfloat16.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 = [
+ "//tensorflow/core/platform/default/build_config:logging",
+ ],
+)
+
+cc_library(
name = "android_jpeg_internal",
srcs = if_android([
"lib/jpeg/jpeg_handle.cc",