mediapipe/mediapipe/tasks/ios/vision/core/BUILD
2023-05-10 13:09:44 +05:30

67 lines
1.8 KiB
Python

package(default_visibility = ["//mediapipe/tasks:internal"])
licenses(["notice"])
objc_library(
name = "MPPImage",
srcs = ["sources/MPPImage.m"],
hdrs = ["sources/MPPImage.h"],
copts = [
"-ObjC++",
"-std=c++17",
],
module_name = "MPPImage",
deps = [
"//mediapipe/tasks/ios/common:MPPCommon",
"//mediapipe/tasks/ios/common/utils:MPPCommonUtils",
"//third_party/apple_frameworks:CoreMedia",
"//third_party/apple_frameworks:CoreVideo",
"//third_party/apple_frameworks:UIKit",
],
)
objc_library(
name = "MPPRunningMode",
hdrs = ["sources/MPPRunningMode.h"],
module_name = "MPPRunningMode",
)
objc_library(
name = "MPPVisionPacketCreator",
srcs = ["sources/MPPVisionPacketCreator.mm"],
hdrs = ["sources/MPPVisionPacketCreator.h"],
copts = [
"-ObjC++",
"-std=c++17",
],
deps = [
":MPPImage",
"//mediapipe/framework:packet",
"//mediapipe/framework:timestamp",
"//mediapipe/framework/formats:image",
"//mediapipe/framework/formats:rect_cc_proto",
"//mediapipe/tasks/ios/vision/core/utils:MPPImageUtils",
],
)
objc_library(
name = "MPPVisionTaskRunner",
srcs = ["sources/MPPVisionTaskRunner.mm"],
hdrs = ["sources/MPPVisionTaskRunner.h"],
copts = [
"-ObjC++",
"-std=c++17",
],
deps = [
":MPPRunningMode",
"//mediapipe/calculators/core:flow_limiter_calculator",
"//mediapipe/framework/formats:rect_cc_proto",
"//mediapipe/tasks/ios/common:MPPCommon",
"//mediapipe/tasks/ios/common/utils:MPPCommonUtils",
"//mediapipe/tasks/ios/common/utils:NSStringHelpers",
"//mediapipe/tasks/ios/core:MPPTaskRunner",
"//third_party/apple_frameworks:UIKit",
"@com_google_absl//absl/status:statusor",
],
)