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

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, drop dependency on pointer patchset Created 4 years, 10 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
Index: ui/ozone/platform/wayland/BUILD.gn
diff --git a/ui/ozone/platform/wayland/BUILD.gn b/ui/ozone/platform/wayland/BUILD.gn
index 8f72aef1e85a280332c6582938aea0081c4edb96..465a2adc84cd5bf2f614d8e9cf91a45e454dd5b2 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 = false
spang 2016/02/24 16:12:11 Does it need to be configurable (is the library ev
Michael Forney 2016/02/24 22:46:41 It could be missing if the user has no mesa or bui
spang 2016/02/25 00:37:30 Users don't build chrome. Whatever features there
Michael Forney 2016/04/01 18:19:33 Users build chromium (in source-based distribution
+}
+
+if (use_wayland_egl) {
+ pkg_config("wayland-egl") {
+ packages = [ "wayland-egl" ]
+ }
+}
+
source_set("wayland") {
sources = [
"client_native_pixmap_factory_wayland.cc",
@@ -34,6 +46,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") {

Powered by Google App Engine
This is Rietveld 408576698