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

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, fix scoped_ptr NULL check, make use_wayland_egl default to true Created 4 years, 8 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
« no previous file with comments | « build/linux/system.gyp ('k') | ui/ozone/platform/wayland/wayland.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = true
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 13 matching lines...) Expand all
30 "//ui/events", 42 "//ui/events",
31 "//ui/events/platform", 43 "//ui/events/platform",
32 "//ui/gfx", 44 "//ui/gfx",
33 "//ui/gfx/geometry", 45 "//ui/gfx/geometry",
34 "//ui/ozone:ozone_base", 46 "//ui/ozone:ozone_base",
35 "//ui/ozone/common", 47 "//ui/ozone/common",
36 "//ui/platform_window", 48 "//ui/platform_window",
37 ] 49 ]
38 50
39 defines = [ "OZONE_IMPLEMENTATION" ] 51 defines = [ "OZONE_IMPLEMENTATION" ]
52
53 if (use_wayland_egl) {
54 sources += [
55 "wayland_egl_surface.cc",
56 "wayland_egl_surface.h",
57 ]
58 configs += [ ":wayland-egl" ]
59 defines += [ "USE_WAYLAND_EGL" ]
60 }
40 } 61 }
41 62
42 source_set("wayland_unittests") { 63 source_set("wayland_unittests") {
43 testonly = true 64 testonly = true
44 65
45 sources = [ 66 sources = [
46 "fake_server.cc", 67 "fake_server.cc",
47 "fake_server.h", 68 "fake_server.h",
48 "mock_platform_window_delegate.cc", 69 "mock_platform_window_delegate.cc",
49 "wayland_display_unittest.cc", 70 "wayland_display_unittest.cc",
50 "wayland_pointer_unittest.cc", 71 "wayland_pointer_unittest.cc",
51 "wayland_surface_factory_unittest.cc", 72 "wayland_surface_factory_unittest.cc",
52 "wayland_test.cc", 73 "wayland_test.cc",
53 "wayland_test.h", 74 "wayland_test.h",
54 "wayland_window_unittest.cc", 75 "wayland_window_unittest.cc",
55 ] 76 ]
56 77
57 deps = [ 78 deps = [
58 ":wayland", 79 ":wayland",
59 "//testing/gmock", 80 "//testing/gmock",
60 "//testing/gtest", 81 "//testing/gtest",
61 "//third_party/wayland:wayland_server", 82 "//third_party/wayland:wayland_server",
62 "//third_party/wayland-protocols:xdg_shell_protocol", 83 "//third_party/wayland-protocols:xdg_shell_protocol",
63 "//ui/gfx:test_support", 84 "//ui/gfx:test_support",
64 "//ui/ozone:platform", 85 "//ui/ozone:platform",
65 ] 86 ]
66 87
67 defines = [ "WL_HIDE_DEPRECATED" ] 88 defines = [ "WL_HIDE_DEPRECATED" ]
68 } 89 }
OLDNEW
« 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