| 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 |
| 37 import("//ui/base/ui_features.gni") |
| 38 if (use_xkbcommon) { |
| 39 sources += [ |
| 40 "wayland_xkb_keyboard_layout_engine.cc", |
| 41 "wayland_xkb_keyboard_layout_engine.h", |
| 42 ] |
| 43 } |
| 44 |
| 35 deps = [ | 45 deps = [ |
| 36 "//base", | 46 "//base", |
| 37 "//skia", | 47 "//skia", |
| 38 "//third_party/wayland:wayland_client", | 48 "//third_party/wayland:wayland_client", |
| 39 "//third_party/wayland-protocols:xdg_shell_protocol", | 49 "//third_party/wayland-protocols:xdg_shell_protocol", |
| 50 "//ui/base:ui_features", |
| 40 "//ui/display", | 51 "//ui/display", |
| 41 "//ui/events", | 52 "//ui/events", |
| 53 "//ui/events/ozone:events_ozone_layout", |
| 42 "//ui/events/platform", | 54 "//ui/events/platform", |
| 43 "//ui/gfx", | 55 "//ui/gfx", |
| 44 "//ui/gfx/geometry", | 56 "//ui/gfx/geometry", |
| 45 "//ui/ozone:ozone_base", | 57 "//ui/ozone:ozone_base", |
| 46 "//ui/ozone/common", | 58 "//ui/ozone/common", |
| 47 "//ui/platform_window", | 59 "//ui/platform_window", |
| 48 ] | 60 ] |
| 49 | 61 |
| 50 defines = [ "OZONE_IMPLEMENTATION" ] | 62 defines = [ "OZONE_IMPLEMENTATION" ] |
| 51 | 63 |
| 52 configs += [ | 64 configs += [ |
| 53 ":wayland-egl", | 65 ":wayland-egl", |
| 54 "//third_party/khronos:khronos_headers", | 66 "//third_party/khronos:khronos_headers", |
| 55 ] | 67 ] |
| 56 } | 68 } |
| 57 | 69 |
| 58 source_set("wayland_unittests") { | 70 source_set("wayland_unittests") { |
| 59 testonly = true | 71 testonly = true |
| 60 | 72 |
| 61 sources = [ | 73 sources = [ |
| 62 "fake_server.cc", | 74 "fake_server.cc", |
| 63 "fake_server.h", | 75 "fake_server.h", |
| 64 "mock_platform_window_delegate.cc", | 76 "mock_platform_window_delegate.cc", |
| 65 "wayland_connection_unittest.cc", | 77 "wayland_connection_unittest.cc", |
| 78 "wayland_keyboard_unittest.cc", |
| 66 "wayland_pointer_unittest.cc", | 79 "wayland_pointer_unittest.cc", |
| 67 "wayland_surface_factory_unittest.cc", | 80 "wayland_surface_factory_unittest.cc", |
| 68 "wayland_test.cc", | 81 "wayland_test.cc", |
| 69 "wayland_test.h", | 82 "wayland_test.h", |
| 70 "wayland_window_unittest.cc", | 83 "wayland_window_unittest.cc", |
| 71 ] | 84 ] |
| 72 | 85 |
| 73 deps = [ | 86 deps = [ |
| 74 ":wayland", | 87 ":wayland", |
| 75 "//testing/gmock", | 88 "//testing/gmock", |
| 76 "//testing/gtest", | 89 "//testing/gtest", |
| 77 "//third_party/wayland:wayland_server", | 90 "//third_party/wayland:wayland_server", |
| 78 "//third_party/wayland-protocols:xdg_shell_protocol", | 91 "//third_party/wayland-protocols:xdg_shell_protocol", |
| 79 "//ui/gfx:test_support", | 92 "//ui/gfx:test_support", |
| 80 "//ui/ozone:platform", | 93 "//ui/ozone:platform", |
| 81 ] | 94 ] |
| 82 | 95 |
| 83 defines = [ "WL_HIDE_DEPRECATED" ] | 96 defines = [ "WL_HIDE_DEPRECATED" ] |
| 84 } | 97 } |
| OLD | NEW |