Index: ui/ozone/platform/wayland/wayland.gypi |
diff --git a/ui/ozone/platform/wayland/wayland.gypi b/ui/ozone/platform/wayland/wayland.gypi |
index c71b6346172f02f572d3a56e0c5522162f95814e..01db4b6c345e5f46d8c840bf8166303c0f17e66c 100644 |
--- a/ui/ozone/platform/wayland/wayland.gypi |
+++ b/ui/ozone/platform/wayland/wayland.gypi |
@@ -13,6 +13,7 @@ |
'internal_ozone_platforms': [ |
'wayland' |
], |
+ 'use_wayland_egl%': 0, |
}, |
'targets': [ |
{ |
@@ -47,6 +48,20 @@ |
'wayland_window.cc', |
'wayland_window.h', |
], |
+ 'conditions': [ |
+ ['use_wayland_egl==1', { |
+ 'defines': [ |
+ 'USE_WAYLAND_EGL', |
+ ], |
+ 'dependencies': [ |
+ '../../build/linux/system.gyp:wayland-egl', |
+ ], |
+ 'sources': [ |
+ 'wayland_egl_surface.cc', |
+ 'wayland_egl_surface.h', |
+ ], |
+ }], |
+ ], |
}, |
{ |
'target_name': 'ozone_platform_wayland_unittests', |