Chromium Code Reviews| OLD | NEW | 
|---|---|
| 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") | 7 import("//build/config/linux/pkg_config.gni") | 
| 8 | 8 | 
| 9 pkg_config("wayland-egl") { | 9 pkg_config("wayland-egl") { | 
| 10 packages = [ "wayland-egl" ] | 10 packages = [ "wayland-egl" ] | 
| 11 } | 11 } | 
| 12 | 12 | 
| 13 source_set("wayland") { | 13 source_set("wayland") { | 
| 14 sources = [ | 14 sources = [ | 
| 15 "client_native_pixmap_factory_wayland.cc", | 15 "client_native_pixmap_factory_wayland.cc", | 
| 16 "client_native_pixmap_factory_wayland.h", | 16 "client_native_pixmap_factory_wayland.h", | 
| 17 "gl_surface_wayland.cc", | 17 "gl_surface_wayland.cc", | 
| 18 "gl_surface_wayland.h", | 18 "gl_surface_wayland.h", | 
| 19 "ozone_platform_wayland.cc", | 19 "ozone_platform_wayland.cc", | 
| 20 "ozone_platform_wayland.h", | 20 "ozone_platform_wayland.h", | 
| 21 "wayland_connection.cc", | 21 "wayland_connection.cc", | 
| 22 "wayland_connection.h", | 22 "wayland_connection.h", | 
| 23 "wayland_keyboard.cc", | |
| 24 "wayland_keyboard.h", | |
| 23 "wayland_object.cc", | 25 "wayland_object.cc", | 
| 24 "wayland_object.h", | 26 "wayland_object.h", | 
| 25 "wayland_output.cc", | 27 "wayland_output.cc", | 
| 26 "wayland_output.h", | 28 "wayland_output.h", | 
| 27 "wayland_pointer.cc", | 29 "wayland_pointer.cc", | 
| 28 "wayland_pointer.h", | 30 "wayland_pointer.h", | 
| 29 "wayland_surface_factory.cc", | 31 "wayland_surface_factory.cc", | 
| 30 "wayland_surface_factory.h", | 32 "wayland_surface_factory.h", | 
| 31 "wayland_window.cc", | 33 "wayland_window.cc", | 
| 32 "wayland_window.h", | 34 "wayland_window.h", | 
| 33 ] | 35 ] | 
| 34 | 36 | 
| 35 deps = [ | 37 deps = [ | 
| 36 "//base", | 38 "//base", | 
| 37 "//skia", | 39 "//skia", | 
| 38 "//third_party/wayland:wayland_client", | 40 "//third_party/wayland:wayland_client", | 
| 39 "//third_party/wayland-protocols:xdg_shell_protocol", | 41 "//third_party/wayland-protocols:xdg_shell_protocol", | 
| 42 "//ui/base:ui_features", | |
| 40 "//ui/display", | 43 "//ui/display", | 
| 41 "//ui/events", | 44 "//ui/events", | 
| 45 | |
| 46 # This dependency is needed because XkbkeyboardLayoutEngine ctor takes a | |
| 47 # XkbKeyCodeConverter instance. | |
| 48 # TODO(tonikitoo): Remove this dependency for non-ChromeOS builds. | |
| 
 
spang
2017/01/24 23:27:03
I don't follow. XkbKeyCodeConverter is not in ui/e
 
 | |
| 49 "//ui/events/ozone:events_ozone_evdev", | |
| 50 "//ui/events/ozone:events_ozone_layout", | |
| 42 "//ui/events/platform", | 51 "//ui/events/platform", | 
| 43 "//ui/gfx", | 52 "//ui/gfx", | 
| 44 "//ui/gfx/geometry", | 53 "//ui/gfx/geometry", | 
| 45 "//ui/ozone:ozone_base", | 54 "//ui/ozone:ozone_base", | 
| 46 "//ui/ozone/common", | 55 "//ui/ozone/common", | 
| 47 "//ui/platform_window", | 56 "//ui/platform_window", | 
| 48 ] | 57 ] | 
| 49 | 58 | 
| 50 defines = [ "OZONE_IMPLEMENTATION" ] | 59 defines = [ "OZONE_IMPLEMENTATION" ] | 
| 51 | 60 | 
| 52 configs += [ | 61 configs += [ | 
| 53 ":wayland-egl", | 62 ":wayland-egl", | 
| 54 "//third_party/khronos:khronos_headers", | 63 "//third_party/khronos:khronos_headers", | 
| 55 ] | 64 ] | 
| 56 } | 65 } | 
| 57 | 66 | 
| 58 source_set("wayland_unittests") { | 67 source_set("wayland_unittests") { | 
| 59 testonly = true | 68 testonly = true | 
| 60 | 69 | 
| 61 sources = [ | 70 sources = [ | 
| 62 "fake_server.cc", | 71 "fake_server.cc", | 
| 63 "fake_server.h", | 72 "fake_server.h", | 
| 64 "mock_platform_window_delegate.cc", | 73 "mock_platform_window_delegate.cc", | 
| 65 "wayland_connection_unittest.cc", | 74 "wayland_connection_unittest.cc", | 
| 75 "wayland_keyboard_unittest.cc", | |
| 66 "wayland_pointer_unittest.cc", | 76 "wayland_pointer_unittest.cc", | 
| 67 "wayland_surface_factory_unittest.cc", | 77 "wayland_surface_factory_unittest.cc", | 
| 68 "wayland_test.cc", | 78 "wayland_test.cc", | 
| 69 "wayland_test.h", | 79 "wayland_test.h", | 
| 70 "wayland_window_unittest.cc", | 80 "wayland_window_unittest.cc", | 
| 71 ] | 81 ] | 
| 72 | 82 | 
| 73 deps = [ | 83 deps = [ | 
| 74 ":wayland", | 84 ":wayland", | 
| 75 "//testing/gmock", | 85 "//testing/gmock", | 
| 76 "//testing/gtest", | 86 "//testing/gtest", | 
| 77 "//third_party/wayland:wayland_server", | 87 "//third_party/wayland:wayland_server", | 
| 78 "//third_party/wayland-protocols:xdg_shell_protocol", | 88 "//third_party/wayland-protocols:xdg_shell_protocol", | 
| 79 "//ui/gfx:test_support", | 89 "//ui/gfx:test_support", | 
| 80 "//ui/ozone:platform", | 90 "//ui/ozone:platform", | 
| 81 ] | 91 ] | 
| 82 | 92 | 
| 83 defines = [ "WL_HIDE_DEPRECATED" ] | 93 defines = [ "WL_HIDE_DEPRECATED" ] | 
| 84 } | 94 } | 
| OLD | NEW |