diff --git a/mediapipe/framework/formats/BUILD b/mediapipe/framework/formats/BUILD index 26525b5da..bab5ecd75 100644 --- a/mediapipe/framework/formats/BUILD +++ b/mediapipe/framework/formats/BUILD @@ -13,6 +13,7 @@ # limitations under the License. # +load("@bazel_skylib//lib:selects.bzl", "selects") load("//mediapipe/framework/port:build_config.bzl", "mediapipe_proto_library") load("//mediapipe/framework:mediapipe_register_type.bzl", "mediapipe_register_type") @@ -23,6 +24,14 @@ package( licenses(["notice"]) +selects.config_setting_group( + name = "ios_or_disable_gpu", + match_any = [ + "//mediapipe/gpu:disable_gpu", + "//mediapipe:ios", + ], +) + mediapipe_proto_library( name = "detection_proto", srcs = ["detection.proto"], @@ -336,9 +345,7 @@ cc_library( "//conditions:default": [ "//mediapipe/gpu:gl_texture_buffer", ], - "//mediapipe:ios": [ - ], - "//mediapipe/gpu:disable_gpu": [], + "ios_or_disable_gpu": [], }) + select({ "//conditions:default": [], "//mediapipe:apple": [