Index: mojo/shell/runner/host/BUILD.gn |
diff --git a/mojo/shell/runner/host/BUILD.gn b/mojo/shell/runner/host/BUILD.gn |
index b4e38f7179d96391d501d66203eba9c55fd798d4..911ee1179a26b77968d52b3f7804a05598e1b904 100644 |
--- a/mojo/shell/runner/host/BUILD.gn |
+++ b/mojo/shell/runner/host/BUILD.gn |
@@ -15,6 +15,10 @@ group("host") { |
] |
} |
+config("native_application_support_with_gles2") { |
+ defines = [ "NATIVE_APPLICATION_USE_GLES2_IMPL" ] |
+} |
+ |
source_set("native_application_support") { |
sources = [ |
"native_application_support.cc", |
@@ -23,11 +27,15 @@ source_set("native_application_support") { |
deps = [ |
"//base", |
- "//mojo/gles2", |
"//mojo/platform_handle:platform_handle_impl", |
"//mojo/shell", |
] |
+ if (!is_mac) { |
+ configs += [ ":native_application_support_with_gles2" ] |
+ deps += [ "//mojo/gles2" ] |
+ } |
+ |
# This target has to include the public thunk headers, which generally |
# shouldn't be included without picking an implementation. We are providing |
# the implementation but the thunk header target cannot declare that we are |