Index: ui/ozone/platform/wayland/BUILD.gn |
diff --git a/ui/ozone/platform/wayland/BUILD.gn b/ui/ozone/platform/wayland/BUILD.gn |
index 1d8e6113da0f03ada6e2c49bc0f245205134e09f..3ac24d09442e47bb40aa6bf205d0e064337b1bc9 100644 |
--- a/ui/ozone/platform/wayland/BUILD.gn |
+++ b/ui/ozone/platform/wayland/BUILD.gn |
@@ -4,6 +4,18 @@ |
visibility = [ "//ui/ozone/*" ] |
+import("//build/config/linux/pkg_config.gni") |
+ |
+declare_args() { |
+ use_wayland_egl = true |
+} |
+ |
+if (use_wayland_egl) { |
+ pkg_config("wayland-egl") { |
+ packages = [ "wayland-egl" ] |
+ } |
+} |
+ |
source_set("wayland") { |
sources = [ |
"client_native_pixmap_factory_wayland.cc", |
@@ -37,6 +49,15 @@ source_set("wayland") { |
] |
defines = [ "OZONE_IMPLEMENTATION" ] |
+ |
+ if (use_wayland_egl) { |
+ sources += [ |
+ "wayland_egl_surface.cc", |
+ "wayland_egl_surface.h", |
+ ] |
+ configs += [ ":wayland-egl" ] |
+ defines += [ "USE_WAYLAND_EGL" ] |
+ } |
} |
source_set("wayland_unittests") { |