|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | | -load("//mediapipe/tasks/java/com/google/mediapipe/tasks:mediapipe_tasks_aar.bzl", "mediapipe_tasks_vision_aar") |
| 15 | +load("//mediapipe/tasks/java/com/google/mediapipe/tasks:mediapipe_tasks_aar.bzl", "mediapipe_build_aar_with_jni") |
16 | 16 |
|
17 | 17 | licenses(["notice"]) |
18 | 18 |
|
@@ -462,13 +462,74 @@ android_library( |
462 | 462 | ], |
463 | 463 | ) |
464 | 464 |
|
465 | | -mediapipe_tasks_vision_aar( |
466 | | - name = "tasks_vision", |
| 465 | +android_library( |
| 466 | + name = "tasks_vision_aar_library", |
467 | 467 | srcs = glob( |
468 | 468 | ["**/*.java"], |
469 | 469 | exclude = [ |
470 | 470 | "imagegenerator/**", |
471 | 471 | ], |
472 | 472 | ), |
473 | | - native_library = ":libmediapipe_tasks_vision_jni_lib", |
| 473 | + manifest = "AndroidManifest.xml", |
| 474 | + deps = [ |
| 475 | + ":libmediapipe_tasks_vision_jni_lib", |
| 476 | + "//mediapipe/framework:calculator_java_proto_lite", |
| 477 | + "//mediapipe/framework:calculator_options_java_proto_lite", |
| 478 | + "//mediapipe/framework/formats:classification_java_proto_lite", |
| 479 | + "//mediapipe/framework/formats:detection_java_proto_lite", |
| 480 | + "//mediapipe/framework/formats:landmark_java_proto_lite", |
| 481 | + "//mediapipe/framework/formats:matrix_data_java_proto_lite", |
| 482 | + "//mediapipe/framework/formats:rect_java_proto_lite", |
| 483 | + "//mediapipe/java/com/google/mediapipe/framework:android_framework_no_mff", |
| 484 | + "//mediapipe/java/com/google/mediapipe/framework/image", |
| 485 | + "//mediapipe/tasks/cc/components/containers/proto:classifications_java_proto_lite", |
| 486 | + "//mediapipe/tasks/cc/components/containers/proto:embeddings_java_proto_lite", |
| 487 | + "//mediapipe/tasks/cc/components/processors/proto:classifier_options_java_proto_lite", |
| 488 | + "//mediapipe/tasks/cc/components/processors/proto:embedder_options_java_proto_lite", |
| 489 | + "//mediapipe/tasks/cc/core/proto:base_options_java_proto_lite", |
| 490 | + "//mediapipe/tasks/cc/vision/face_detector/proto:face_detector_graph_options_java_proto_lite", |
| 491 | + "//mediapipe/tasks/cc/vision/face_geometry/proto:face_geometry_java_proto_lite", |
| 492 | + "//mediapipe/tasks/cc/vision/face_landmarker/proto:face_landmarker_graph_options_java_proto_lite", |
| 493 | + "//mediapipe/tasks/cc/vision/face_landmarker/proto:face_landmarks_detector_graph_options_java_proto_lite", |
| 494 | + "//mediapipe/tasks/cc/vision/face_stylizer/proto:face_stylizer_graph_options_java_proto_lite", |
| 495 | + "//mediapipe/tasks/cc/vision/gesture_recognizer/proto:gesture_classifier_graph_options_java_proto_lite", |
| 496 | + "//mediapipe/tasks/cc/vision/gesture_recognizer/proto:gesture_recognizer_graph_options_java_proto_lite", |
| 497 | + "//mediapipe/tasks/cc/vision/gesture_recognizer/proto:hand_gesture_recognizer_graph_options_java_proto_lite", |
| 498 | + "//mediapipe/tasks/cc/vision/hand_detector/proto:hand_detector_graph_options_java_proto_lite", |
| 499 | + "//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_landmarker_graph_options_java_proto_lite", |
| 500 | + "//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_landmarks_detector_graph_options_java_proto_lite", |
| 501 | + "//mediapipe/tasks/cc/vision/holistic_landmarker/proto:holistic_landmarker_graph_options_java_proto_lite", |
| 502 | + "//mediapipe/tasks/cc/vision/image_classifier/proto:image_classifier_graph_options_java_proto_lite", |
| 503 | + "//mediapipe/tasks/cc/vision/image_embedder/proto:image_embedder_graph_options_java_proto_lite", |
| 504 | + "//mediapipe/tasks/cc/vision/image_segmenter/calculators:tensors_to_segmentation_calculator_java_proto_lite", |
| 505 | + "//mediapipe/tasks/cc/vision/image_segmenter/proto:image_segmenter_graph_options_java_proto_lite", |
| 506 | + "//mediapipe/tasks/cc/vision/image_segmenter/proto:segmenter_options_java_proto_lite", |
| 507 | + "//mediapipe/tasks/cc/vision/object_detector/proto:object_detector_options_java_proto_lite", |
| 508 | + "//mediapipe/tasks/cc/vision/pose_detector/proto:pose_detector_graph_options_java_proto_lite", |
| 509 | + "//mediapipe/tasks/cc/vision/pose_landmarker/proto:pose_landmarker_graph_options_java_proto_lite", |
| 510 | + "//mediapipe/tasks/cc/vision/pose_landmarker/proto:pose_landmarks_detector_graph_options_java_proto_lite", |
| 511 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:category", |
| 512 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:classificationresult", |
| 513 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:connection", |
| 514 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:detection", |
| 515 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:embedding", |
| 516 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:embeddingresult", |
| 517 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:landmark", |
| 518 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:normalized_landmark", |
| 519 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/containers:normalizedkeypoint", |
| 520 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/processors:classifieroptions", |
| 521 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/components/utils:cosinesimilarity", |
| 522 | + "//mediapipe/tasks/java/com/google/mediapipe/tasks/core:core_java", |
| 523 | + "//mediapipe/util:color_java_proto_lite", |
| 524 | + "//mediapipe/util:render_data_java_proto_lite", |
| 525 | + "//third_party:any_java_proto", |
| 526 | + "//third_party:autovalue", |
| 527 | + "@maven//:androidx_annotation_annotation", |
| 528 | + "@maven//:com_google_guava_guava", |
| 529 | + ], |
| 530 | +) |
| 531 | + |
| 532 | +mediapipe_build_aar_with_jni( |
| 533 | + name = "tasks_vision", |
| 534 | + android_library = ":tasks_vision_aar_library", |
474 | 535 | ) |
0 commit comments