internal change

PiperOrigin-RevId: 553250547
This commit is contained in:
MediaPipe Team 2023-08-02 14:04:17 -07:00 committed by Copybara-Service
parent 366a3290cf
commit e56636b6d1
2 changed files with 45 additions and 7 deletions

View File

@ -16,6 +16,20 @@ package(default_visibility = ["//visibility:public"])
android_library( android_library(
name = "core", name = "core",
javacopts = [
"-Xep:AndroidJdkLibsChecker:OFF",
],
manifest = "AndroidManifest.xml",
exports = [
":core_java",
"//mediapipe/java/com/google/mediapipe/framework:android_framework",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni:model_resources_cache_jni",
],
deps = ["@maven//:com_google_guava_guava"],
)
android_library(
name = "core_java",
srcs = glob(["*.java"]), srcs = glob(["*.java"]),
javacopts = [ javacopts = [
"-Xep:AndroidJdkLibsChecker:OFF", "-Xep:AndroidJdkLibsChecker:OFF",
@ -27,11 +41,10 @@ android_library(
"//mediapipe/calculators/tensor:inference_calculator_java_proto_lite", "//mediapipe/calculators/tensor:inference_calculator_java_proto_lite",
"//mediapipe/framework:calculator_java_proto_lite", "//mediapipe/framework:calculator_java_proto_lite",
"//mediapipe/framework:calculator_options_java_proto_lite", "//mediapipe/framework:calculator_options_java_proto_lite",
"//mediapipe/java/com/google/mediapipe/framework:android_framework", "//mediapipe/java/com/google/mediapipe/framework:android_framework_no_mff",
"//mediapipe/tasks/cc/core/proto:acceleration_java_proto_lite", "//mediapipe/tasks/cc/core/proto:acceleration_java_proto_lite",
"//mediapipe/tasks/cc/core/proto:base_options_java_proto_lite", "//mediapipe/tasks/cc/core/proto:base_options_java_proto_lite",
"//mediapipe/tasks/cc/core/proto:external_file_java_proto_lite", "//mediapipe/tasks/cc/core/proto:external_file_java_proto_lite",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core/jni:model_resources_cache_jni",
"//third_party:any_java_proto", "//third_party:any_java_proto",
"//third_party:autovalue", "//third_party:autovalue",
"@com_google_protobuf//:protobuf_javalite", "@com_google_protobuf//:protobuf_javalite",

View File

@ -18,16 +18,27 @@ package(default_visibility = ["//visibility:public"])
android_library( android_library(
name = "core", name = "core",
javacopts = [
"-Xep:AndroidJdkLibsChecker:OFF",
],
exports = [
":core_java",
":libmediapipe_tasks_vision_jni_lib",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core",
],
)
android_library(
name = "core_java",
srcs = glob(["core/*.java"]), srcs = glob(["core/*.java"]),
javacopts = [ javacopts = [
"-Xep:AndroidJdkLibsChecker:OFF", "-Xep:AndroidJdkLibsChecker:OFF",
], ],
deps = [ deps = [
":libmediapipe_tasks_vision_jni_lib",
"//mediapipe/framework/formats:rect_java_proto_lite", "//mediapipe/framework/formats:rect_java_proto_lite",
"//mediapipe/java/com/google/mediapipe/framework:android_framework_no_mff", "//mediapipe/java/com/google/mediapipe/framework:android_framework_no_mff",
"//mediapipe/java/com/google/mediapipe/framework/image", "//mediapipe/java/com/google/mediapipe/framework/image",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core", "//mediapipe/tasks/java/com/google/mediapipe/tasks/core:core_java",
"//third_party:autovalue", "//third_party:autovalue",
"@maven//:com_google_guava_guava", "@maven//:com_google_guava_guava",
], ],
@ -246,6 +257,20 @@ android_library(
android_library( android_library(
name = "imagesegmenter", name = "imagesegmenter",
javacopts = [
"-Xep:AndroidJdkLibsChecker:OFF",
],
manifest = "imagesegmenter/AndroidManifest.xml",
exports = [
":core",
":imagesegmenter_java",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core",
],
deps = ["@maven//:com_google_guava_guava"],
)
android_library(
name = "imagesegmenter_java",
srcs = [ srcs = [
"imagesegmenter/ImageSegmenter.java", "imagesegmenter/ImageSegmenter.java",
"imagesegmenter/ImageSegmenterResult.java", "imagesegmenter/ImageSegmenterResult.java",
@ -255,15 +280,15 @@ android_library(
], ],
manifest = "imagesegmenter/AndroidManifest.xml", manifest = "imagesegmenter/AndroidManifest.xml",
deps = [ deps = [
":core", ":core_java",
"//mediapipe/framework:calculator_options_java_proto_lite", "//mediapipe/framework:calculator_options_java_proto_lite",
"//mediapipe/java/com/google/mediapipe/framework:android_framework", "//mediapipe/java/com/google/mediapipe/framework:android_framework_no_mff",
"//mediapipe/java/com/google/mediapipe/framework/image", "//mediapipe/java/com/google/mediapipe/framework/image",
"//mediapipe/tasks/cc/core/proto:base_options_java_proto_lite", "//mediapipe/tasks/cc/core/proto:base_options_java_proto_lite",
"//mediapipe/tasks/cc/vision/image_segmenter/calculators:tensors_to_segmentation_calculator_java_proto_lite", "//mediapipe/tasks/cc/vision/image_segmenter/calculators:tensors_to_segmentation_calculator_java_proto_lite",
"//mediapipe/tasks/cc/vision/image_segmenter/proto:image_segmenter_graph_options_java_proto_lite", "//mediapipe/tasks/cc/vision/image_segmenter/proto:image_segmenter_graph_options_java_proto_lite",
"//mediapipe/tasks/cc/vision/image_segmenter/proto:segmenter_options_java_proto_lite", "//mediapipe/tasks/cc/vision/image_segmenter/proto:segmenter_options_java_proto_lite",
"//mediapipe/tasks/java/com/google/mediapipe/tasks/core", "//mediapipe/tasks/java/com/google/mediapipe/tasks/core:core_java",
"//third_party:autovalue", "//third_party:autovalue",
"@maven//:com_google_guava_guava", "@maven//:com_google_guava_guava",
], ],