Chromium Code Reviews| 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") { |