| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//chrome/common/features.gni") |
| 5 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 7 | 8 |
| 8 source_set("exo") { | 9 source_set("exo") { |
| 9 sources = [ | 10 sources = [ |
| 10 "buffer.cc", | 11 "buffer.cc", |
| 11 "buffer.h", | 12 "buffer.h", |
| 12 "compositor_frame_sink_holder.cc", | 13 "compositor_frame_sink_holder.cc", |
| 13 "compositor_frame_sink_holder.h", | 14 "compositor_frame_sink_holder.h", |
| 14 "display.cc", | 15 "display.cc", |
| 15 "display.h", | 16 "display.h", |
| 16 "gaming_seat.cc", | |
| 17 "gaming_seat.h", | 17 "gaming_seat.h", |
| 18 "keyboard.cc", | 18 "keyboard.cc", |
| 19 "keyboard.h", | 19 "keyboard.h", |
| 20 "keyboard_delegate.h", | 20 "keyboard_delegate.h", |
| 21 "keyboard_device_configuration_delegate.h", | 21 "keyboard_device_configuration_delegate.h", |
| 22 "notification_surface.cc", | 22 "notification_surface.cc", |
| 23 "notification_surface.h", | 23 "notification_surface.h", |
| 24 "notification_surface_manager.h", | 24 "notification_surface_manager.h", |
| 25 "pointer.cc", | 25 "pointer.cc", |
| 26 "pointer.h", | 26 "pointer.h", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 "//ui/events/devices:devices", | 64 "//ui/events/devices:devices", |
| 65 "//ui/gfx", | 65 "//ui/gfx", |
| 66 "//ui/gfx/geometry", | 66 "//ui/gfx/geometry", |
| 67 "//ui/gl", | 67 "//ui/gl", |
| 68 "//ui/views", | 68 "//ui/views", |
| 69 "//ui/views/mus", | 69 "//ui/views/mus", |
| 70 "//ui/wm", | 70 "//ui/wm", |
| 71 "//ui/wm/public", | 71 "//ui/wm/public", |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 if (use_ozone) { | 74 if (enable_exo_ozone_gamepad) { |
| 75 defines = [ "USE_OZONE_GAMEPAD" ] |
| 76 sources += [ "gaming_seat_ozone.cc" ] |
| 75 deps += [ "//ui/ozone" ] | 77 deps += [ "//ui/ozone" ] |
| 78 deps += [ "//ui/events/ozone:events_ozone_evdev" ] |
| 79 } else { |
| 80 sources += [ "gaming_seat.cc" ] |
| 76 } | 81 } |
| 77 | 82 |
| 78 if (is_chromeos) { | 83 if (is_chromeos) { |
| 79 deps += [ "//chromeos" ] | 84 deps += [ "//chromeos" ] |
| 80 } | 85 } |
| 81 } | 86 } |
| 82 | 87 |
| 83 source_set("test_support") { | 88 source_set("test_support") { |
| 84 testonly = true | 89 testonly = true |
| 85 | 90 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 105 "//ui/wm", | 110 "//ui/wm", |
| 106 ] | 111 ] |
| 107 } | 112 } |
| 108 | 113 |
| 109 source_set("unit_tests") { | 114 source_set("unit_tests") { |
| 110 testonly = true | 115 testonly = true |
| 111 | 116 |
| 112 sources = [ | 117 sources = [ |
| 113 "buffer_unittest.cc", | 118 "buffer_unittest.cc", |
| 114 "display_unittest.cc", | 119 "display_unittest.cc", |
| 115 "gaming_seat_unittest.cc", | |
| 116 "keyboard_unittest.cc", | 120 "keyboard_unittest.cc", |
| 117 "pointer_unittest.cc", | 121 "pointer_unittest.cc", |
| 118 "shared_memory_unittest.cc", | 122 "shared_memory_unittest.cc", |
| 119 "shell_surface_unittest.cc", | 123 "shell_surface_unittest.cc", |
| 120 "sub_surface_unittest.cc", | 124 "sub_surface_unittest.cc", |
| 121 "surface_unittest.cc", | 125 "surface_unittest.cc", |
| 122 "touch_unittest.cc", | 126 "touch_unittest.cc", |
| 123 ] | 127 ] |
| 124 | 128 |
| 125 deps = [ | 129 deps = [ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 145 "//ui/gfx", | 149 "//ui/gfx", |
| 146 "//ui/keyboard", | 150 "//ui/keyboard", |
| 147 "//ui/message_center", | 151 "//ui/message_center", |
| 148 "//ui/views", | 152 "//ui/views", |
| 149 "//ui/wm", | 153 "//ui/wm", |
| 150 ] | 154 ] |
| 151 | 155 |
| 152 if (use_ozone) { | 156 if (use_ozone) { |
| 153 deps += [ "//ui/ozone" ] | 157 deps += [ "//ui/ozone" ] |
| 154 } | 158 } |
| 159 |
| 160 if (enable_exo_ozone_gamepad) { |
| 161 sources += [ |
| 162 "../../ui/events/ozone/gamepad/gamepad_event.cc", |
| 163 "gaming_seat_unittest.cc", |
| 164 ] |
| 165 deps += [ "//ui/events/ozone:events_ozone_evdev" ] |
| 166 } |
| 155 } | 167 } |
| 156 | 168 |
| 157 test("exo_unittests") { | 169 test("exo_unittests") { |
| 158 sources = [ | 170 sources = [ |
| 159 "../../ash/test/ash_test_suite.cc", | 171 "../../ash/test/ash_test_suite.cc", |
| 160 "../../ash/test/ash_test_suite.h", | 172 "../../ash/test/ash_test_suite.h", |
| 161 "test/run_all_unittests.cc", | 173 "test/run_all_unittests.cc", |
| 162 ] | 174 ] |
| 163 | 175 |
| 164 deps = [ | 176 deps = [ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 179 data_deps = [ | 191 data_deps = [ |
| 180 "//ash/strings:ash_test_strings", | 192 "//ash/strings:ash_test_strings", |
| 181 "//ash/resources:ash_test_resources_100_percent", | 193 "//ash/resources:ash_test_resources_100_percent", |
| 182 "//ash/resources:ash_test_resources_200_percent", | 194 "//ash/resources:ash_test_resources_200_percent", |
| 183 ] | 195 ] |
| 184 | 196 |
| 185 if (is_linux) { | 197 if (is_linux) { |
| 186 deps += [ "//components/exo/wayland:unit_tests" ] | 198 deps += [ "//components/exo/wayland:unit_tests" ] |
| 187 } | 199 } |
| 188 } | 200 } |
| OLD | NEW |