fix: build objectron calculators for iOS
This commit is contained in:
parent
a92cff7a60
commit
72e78d093b
|
@ -181,6 +181,15 @@ cc_library(
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"tensor_util.h",
|
"tensor_util.h",
|
||||||
],
|
],
|
||||||
|
copts = select({
|
||||||
|
# Needed for "//mediapipe/framework/formats:tensor" compatibility on Apple
|
||||||
|
# platforms for Metal pulled in via the tensor.h header.
|
||||||
|
"//mediapipe:apple": [
|
||||||
|
"-x objective-c++",
|
||||||
|
"-fobjc-arc", # enable reference-counting
|
||||||
|
],
|
||||||
|
"//conditions:default": [],
|
||||||
|
}),
|
||||||
deps = [
|
deps = [
|
||||||
"//mediapipe/framework/formats:tensor",
|
"//mediapipe/framework/formats:tensor",
|
||||||
"//mediapipe/framework/port:logging",
|
"//mediapipe/framework/port:logging",
|
||||||
|
@ -296,6 +305,15 @@ cc_library(
|
||||||
name = "lift_2d_frame_annotation_to_3d_calculator",
|
name = "lift_2d_frame_annotation_to_3d_calculator",
|
||||||
srcs = ["lift_2d_frame_annotation_to_3d_calculator.cc"],
|
srcs = ["lift_2d_frame_annotation_to_3d_calculator.cc"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
|
copts = select({
|
||||||
|
# Needed for "//mediapipe/framework/formats:tensor" compatibility on Apple
|
||||||
|
# platforms for Metal pulled in via the tensor.h header.
|
||||||
|
"//mediapipe:apple": [
|
||||||
|
"-x objective-c++",
|
||||||
|
"-fobjc-arc", # enable reference-counting
|
||||||
|
],
|
||||||
|
"//conditions:default": [],
|
||||||
|
}),
|
||||||
deps = [
|
deps = [
|
||||||
":annotation_cc_proto",
|
":annotation_cc_proto",
|
||||||
":belief_decoder_config_cc_proto",
|
":belief_decoder_config_cc_proto",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user