Solve iOS build error for gpu_buffer.cc

PiperOrigin-RevId: 515473643
This commit is contained in:
Sebastian Schmidt 2023-03-09 16:26:34 -08:00 committed by Copybara-Service
parent 2d8f937913
commit ef4a8cde42

View File

@ -272,14 +272,6 @@ selects.config_setting_group(
], ],
) )
selects.config_setting_group(
name = "platform_ios_without_gpu",
match_all = [
":disable_gpu",
"//mediapipe:ios",
],
)
selects.config_setting_group( selects.config_setting_group(
name = "platform_macos_with_gpu", name = "platform_macos_with_gpu",
match_all = [ match_all = [
@ -310,7 +302,6 @@ cc_library(
":platform_ios_with_gpu": [ ":platform_ios_with_gpu": [
":gl_texture_view", ":gl_texture_view",
":gpu_buffer_storage_cv_pixel_buffer", ":gpu_buffer_storage_cv_pixel_buffer",
"//mediapipe/objc:util",
"//mediapipe/objc:CFHolder", "//mediapipe/objc:CFHolder",
], ],
":platform_macos_with_gpu": [ ":platform_macos_with_gpu": [
@ -318,10 +309,12 @@ cc_library(
":gl_texture_view", ":gl_texture_view",
":gl_texture_buffer", ":gl_texture_buffer",
], ],
":platform_ios_without_gpu": [ ":disable_gpu": [],
}) + select({
"//conditions:default": [],
"//mediapipe:ios": [
"//mediapipe/objc:util", "//mediapipe/objc:util",
], ],
":disable_gpu": [],
}), }),
) )