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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 visibility = [ "//ui/ozone/*" ] 5 visibility = [ "//ui/ozone/*" ]
6 6
7 import("//build/config/linux/pkg_config.gni")
8
9 declare_args() {
10 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
11 }
12
13 if (use_wayland_egl) {
14 pkg_config("wayland-egl") {
15 packages = [ "wayland-egl" ]
16 }
17 }
18
7 source_set("wayland") { 19 source_set("wayland") {
8 sources = [ 20 sources = [
9 "client_native_pixmap_factory_wayland.cc", 21 "client_native_pixmap_factory_wayland.cc",
10 "client_native_pixmap_factory_wayland.h", 22 "client_native_pixmap_factory_wayland.h",
11 "ozone_platform_wayland.cc", 23 "ozone_platform_wayland.cc",
12 "ozone_platform_wayland.h", 24 "ozone_platform_wayland.h",
13 "wayland_display.cc", 25 "wayland_display.cc",
14 "wayland_display.h", 26 "wayland_display.h",
15 "wayland_object.cc", 27 "wayland_object.cc",
16 "wayland_object.h", 28 "wayland_object.h",
(...skipping 10 matching lines...) Expand all
27 "//third_party/wayland-protocols:xdg_shell_protocol", 39 "//third_party/wayland-protocols:xdg_shell_protocol",
28 "//ui/events/platform", 40 "//ui/events/platform",
29 "//ui/gfx", 41 "//ui/gfx",
30 "//ui/gfx/geometry", 42 "//ui/gfx/geometry",
31 "//ui/ozone:ozone_base", 43 "//ui/ozone:ozone_base",
32 "//ui/ozone/common", 44 "//ui/ozone/common",
33 "//ui/platform_window", 45 "//ui/platform_window",
34 ] 46 ]
35 47
36 defines = [ "OZONE_IMPLEMENTATION" ] 48 defines = [ "OZONE_IMPLEMENTATION" ]
49
50 if (use_wayland_egl) {
51 sources += [
52 "wayland_egl_surface.cc",
53 "wayland_egl_surface.h",
54 ]
55 configs += [ ":wayland-egl" ]
56 defines += [ "USE_WAYLAND_EGL" ]
57 }
37 } 58 }
38 59
39 source_set("wayland_unittests") { 60 source_set("wayland_unittests") {
40 testonly = true 61 testonly = true
41 62
42 sources = [ 63 sources = [
43 "fake_server.cc", 64 "fake_server.cc",
44 "fake_server.h", 65 "fake_server.h",
45 "mock_platform_window_delegate.cc", 66 "mock_platform_window_delegate.cc",
46 "wayland_display_unittest.cc", 67 "wayland_display_unittest.cc",
47 "wayland_surface_factory_unittest.cc", 68 "wayland_surface_factory_unittest.cc",
48 "wayland_window_unittest.cc", 69 "wayland_window_unittest.cc",
49 ] 70 ]
50 71
51 deps = [ 72 deps = [
52 ":wayland", 73 ":wayland",
53 "//testing/gmock", 74 "//testing/gmock",
54 "//testing/gtest", 75 "//testing/gtest",
55 "//third_party/wayland:wayland_server", 76 "//third_party/wayland:wayland_server",
56 "//third_party/wayland-protocols:xdg_shell_protocol", 77 "//third_party/wayland-protocols:xdg_shell_protocol",
57 "//ui/gfx:test_support", 78 "//ui/gfx:test_support",
58 "//ui/ozone:platform", 79 "//ui/ozone:platform",
59 ] 80 ]
60 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698