aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp30
1 files changed, 28 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 7cbcbc3fd7e..f3ffc15982f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -162,7 +162,7 @@ cc_library_static {
],
whole_static_libs: [
"libdoubleconversion",
- "tensorflow_core_proto_all",
+ "tensorflow_core_proto_cpp_lite",
],
shared_libs: [
"libz",
@@ -249,7 +249,7 @@ filegroup(
)
cc_library {
- name: "tensorflow_core_proto_all",
+ name: "tensorflow_core_proto_cpp_lite",
proto: {
export_proto_headers: true,
canonical_path_from_root: false,
@@ -273,3 +273,29 @@ cc_library {
],
export_include_dirs: ["."],
}
+
+java_library_static {
+ name: "tensorflow_core_proto_java_lite",
+ srcs: [
+ "tensorflow/core/framework/*.proto",
+ "tensorflow/core/example/example.proto",
+ "tensorflow/core/example/feature.proto",
+ "tensorflow/core/example/example_parser_configuration.proto",
+ "tensorflow/core/profiler/protobuf/xplane.proto",
+ "tensorflow/core/profiler/profiler_options.proto",
+ "tensorflow/core/util/saved_tensor_slice.proto",
+ "tensorflow/core/util/event.proto",
+ ":tensorflow_core_protobuf_src",
+ ":libprotobuf-internal-protos",
+ ],
+ proto: {
+ canonical_path_from_root: false,
+ include_dirs: [
+ "external/protobuf/src",
+ "external/protobuf/java",
+ ],
+ type: "lite",
+ },
+ static_libs: ["libprotobuf-java-lite"],
+ apex_available: ["com.android.ondevicepersonalization"],
+}