| 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 declare_args() { | 9 declare_args() { |
| 10 use_wayland_egl = true | 10 use_wayland_egl = true |
| 11 } | 11 } |
| 12 | 12 |
| 13 if (use_wayland_egl) { | 13 if (use_wayland_egl) { |
| 14 pkg_config("wayland-egl") { | 14 pkg_config("wayland-egl") { |
| 15 packages = [ "wayland-egl" ] | 15 packages = [ "wayland-egl" ] |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 source_set("wayland") { | 19 source_set("wayland") { |
| 20 sources = [ | 20 sources = [ |
| 21 "client_native_pixmap_factory_wayland.cc", | 21 "client_native_pixmap_factory_wayland.cc", |
| 22 "client_native_pixmap_factory_wayland.h", | 22 "client_native_pixmap_factory_wayland.h", |
| 23 "ozone_platform_wayland.cc", | 23 "ozone_platform_wayland.cc", |
| 24 "ozone_platform_wayland.h", | 24 "ozone_platform_wayland.h", |
| 25 "wayland_display.cc", | 25 "wayland_connection.cc", |
| 26 "wayland_display.h", | 26 "wayland_connection.h", |
| 27 "wayland_object.cc", | 27 "wayland_object.cc", |
| 28 "wayland_object.h", | 28 "wayland_object.h", |
| 29 "wayland_pointer.cc", | 29 "wayland_pointer.cc", |
| 30 "wayland_pointer.h", | 30 "wayland_pointer.h", |
| 31 "wayland_surface_factory.cc", | 31 "wayland_surface_factory.cc", |
| 32 "wayland_surface_factory.h", | 32 "wayland_surface_factory.h", |
| 33 "wayland_window.cc", | 33 "wayland_window.cc", |
| 34 "wayland_window.h", | 34 "wayland_window.h", |
| 35 ] | 35 ] |
| 36 | 36 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 source_set("wayland_unittests") { | 66 source_set("wayland_unittests") { |
| 67 testonly = true | 67 testonly = true |
| 68 | 68 |
| 69 sources = [ | 69 sources = [ |
| 70 "fake_server.cc", | 70 "fake_server.cc", |
| 71 "fake_server.h", | 71 "fake_server.h", |
| 72 "mock_platform_window_delegate.cc", | 72 "mock_platform_window_delegate.cc", |
| 73 "wayland_display_unittest.cc", | 73 "wayland_connection_unittest.cc", |
| 74 "wayland_pointer_unittest.cc", | 74 "wayland_pointer_unittest.cc", |
| 75 "wayland_surface_factory_unittest.cc", | 75 "wayland_surface_factory_unittest.cc", |
| 76 "wayland_test.cc", | 76 "wayland_test.cc", |
| 77 "wayland_test.h", | 77 "wayland_test.h", |
| 78 "wayland_window_unittest.cc", | 78 "wayland_window_unittest.cc", |
| 79 ] | 79 ] |
| 80 | 80 |
| 81 deps = [ | 81 deps = [ |
| 82 ":wayland", | 82 ":wayland", |
| 83 "//testing/gmock", | 83 "//testing/gmock", |
| 84 "//testing/gtest", | 84 "//testing/gtest", |
| 85 "//third_party/wayland:wayland_server", | 85 "//third_party/wayland:wayland_server", |
| 86 "//third_party/wayland-protocols:xdg_shell_protocol", | 86 "//third_party/wayland-protocols:xdg_shell_protocol", |
| 87 "//ui/gfx:test_support", | 87 "//ui/gfx:test_support", |
| 88 "//ui/ozone:platform", | 88 "//ui/ozone:platform", |
| 89 ] | 89 ] |
| 90 | 90 |
| 91 defines = [ "WL_HIDE_DEPRECATED" ] | 91 defines = [ "WL_HIDE_DEPRECATED" ] |
| 92 } | 92 } |
| OLD | NEW |