Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Unified Diff: ui/ozone/platform/wayland/BUILD.gn

Issue 1704243003: ozone/platform/wayland: Implement SurfaceOzoneEGL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, fix scoped_ptr NULL check, make use_wayland_egl default to true Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | ui/ozone/platform/wayland/wayland.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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") {
« no previous file with comments | « build/linux/system.gyp ('k') | ui/ozone/platform/wayland/wayland.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698