| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 static_library("dom4_keycode_converter") { | 7 static_library("dom4_keycode_converter") { |
| 8 sources = [ | 8 sources = [ |
| 9 "keycodes/dom4/keycode_converter.cc", | 9 "keycodes/dom4/keycode_converter.cc", |
| 10 "keycodes/dom4/keycode_converter.h", | 10 "keycodes/dom4/keycode_converter.h", |
| 11 "keycodes/dom4/keycode_converter_data.h", | 11 "keycodes/dom4/keycode_converter_data.h", |
| 12 ] | 12 ] |
| 13 | 13 |
| 14 deps = [ "//base" ] | 14 deps = [ "//base" ] |
| 15 } | 15 } |
| 16 | 16 |
| 17 component("events_base") { | 17 component("events_base") { |
| 18 sources = [ | 18 sources = [ |
| 19 "android/scroller.cc", | 19 "android/scroller.cc", |
| 20 "android/scroller.h", | 20 "android/scroller.h", |
| 21 "device_data_manager.cc", | |
| 22 "device_data_manager.h", | |
| 23 "device_hotplug_event_observer.h", | |
| 24 "device_util_linux.cc", | |
| 25 "device_util_linux.h", | |
| 26 "event_constants.h", | 21 "event_constants.h", |
| 27 "event_switches.cc", | 22 "event_switches.cc", |
| 28 "event_switches.h", | 23 "event_switches.h", |
| 29 "events_base_export.h", | 24 "events_base_export.h", |
| 30 "gesture_curve.h", | 25 "gesture_curve.h", |
| 31 "gesture_event_details.cc", | 26 "gesture_event_details.cc", |
| 32 "gesture_event_details.h", | 27 "gesture_event_details.h", |
| 33 "gestures/fling_curve.cc", | 28 "gestures/fling_curve.cc", |
| 34 "gestures/fling_curve.h", | 29 "gestures/fling_curve.h", |
| 35 "input_device.cc", | |
| 36 "input_device.h", | |
| 37 "input_device_event_observer.h", | |
| 38 "keyboard_device.cc", | |
| 39 "keyboard_device.h", | |
| 40 "keycodes/keyboard_code_conversion.cc", | 30 "keycodes/keyboard_code_conversion.cc", |
| 41 "keycodes/keyboard_code_conversion.h", | 31 "keycodes/keyboard_code_conversion.h", |
| 42 "keycodes/keyboard_code_conversion_android.cc", | 32 "keycodes/keyboard_code_conversion_android.cc", |
| 43 "keycodes/keyboard_code_conversion_android.h", | 33 "keycodes/keyboard_code_conversion_android.h", |
| 44 "keycodes/keyboard_code_conversion_mac.h", | 34 "keycodes/keyboard_code_conversion_mac.h", |
| 45 "keycodes/keyboard_code_conversion_mac.mm", | 35 "keycodes/keyboard_code_conversion_mac.mm", |
| 46 "keycodes/keyboard_code_conversion_win.cc", | 36 "keycodes/keyboard_code_conversion_win.cc", |
| 47 "keycodes/keyboard_code_conversion_win.h", | 37 "keycodes/keyboard_code_conversion_win.h", |
| 48 "keycodes/keyboard_codes.h", | 38 "keycodes/keyboard_codes.h", |
| 49 "latency_info.cc", | 39 "latency_info.cc", |
| 50 "latency_info.h", | 40 "latency_info.h", |
| 51 "touchscreen_device.cc", | |
| 52 "touchscreen_device.h", | |
| 53 ] | 41 ] |
| 54 | 42 |
| 55 defines = [ "EVENTS_BASE_IMPLEMENTATION" ] | 43 defines = [ "EVENTS_BASE_IMPLEMENTATION" ] |
| 56 | 44 |
| 57 deps = [ | 45 deps = [ |
| 58 ":dom4_keycode_converter", | 46 ":dom4_keycode_converter", |
| 59 "//base/third_party/dynamic_annotations", | 47 "//base/third_party/dynamic_annotations", |
| 60 "//skia", | 48 "//skia", |
| 61 ] | 49 ] |
| 62 | 50 |
| 63 public_deps = [ | 51 public_deps = [ |
| 64 "//base", | 52 "//base", |
| 65 "//ui/events/platform", | 53 "//ui/events/platform", |
| 66 "//ui/gfx", | 54 "//ui/gfx", |
| 67 "//ui/gfx/geometry", | 55 "//ui/gfx/geometry", |
| 68 ] | 56 ] |
| 69 | 57 |
| 70 if (use_x11) { | 58 if (use_x11) { |
| 71 configs += [ "//build/config/linux:x11" ] | 59 configs += [ "//build/config/linux:x11" ] |
| 72 | 60 |
| 73 sources += [ | 61 sources += [ |
| 74 "keycodes/keyboard_code_conversion_x.cc", | 62 "keycodes/keyboard_code_conversion_x.cc", |
| 75 "keycodes/keyboard_code_conversion_x.h", | 63 "keycodes/keyboard_code_conversion_x.h", |
| 76 "x/device_data_manager_x11.cc", | |
| 77 "x/device_data_manager_x11.h", | |
| 78 "x/device_list_cache_x.cc", | |
| 79 "x/device_list_cache_x.h", | |
| 80 "x/hotplug_event_handler_x11.cc", | |
| 81 "x/hotplug_event_handler_x11.h", | |
| 82 "x/keysym_to_unicode.cc", | 64 "x/keysym_to_unicode.cc", |
| 83 "x/keysym_to_unicode.h", | 65 "x/keysym_to_unicode.h", |
| 84 "x/touch_factory_x11.cc", | |
| 85 "x/touch_factory_x11.h", | |
| 86 ] | 66 ] |
| 87 | 67 |
| 88 deps += [ "//ui/gfx/x" ] | 68 deps += [ "//ui/gfx/x" ] |
| 89 } | 69 } |
| 90 } | 70 } |
| 91 | 71 |
| 92 component("events") { | 72 component("events") { |
| 93 sources = [ | 73 sources = [ |
| 94 "cocoa/cocoa_event_utils.h", | 74 "cocoa/cocoa_event_utils.h", |
| 95 "cocoa/cocoa_event_utils.mm", | 75 "cocoa/cocoa_event_utils.mm", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 "//ui/gfx", | 112 "//ui/gfx", |
| 133 "//ui/gfx/geometry", | 113 "//ui/gfx/geometry", |
| 134 ] | 114 ] |
| 135 | 115 |
| 136 if (use_x11) { | 116 if (use_x11) { |
| 137 sources += [ "x/events_x.cc" ] | 117 sources += [ "x/events_x.cc" ] |
| 138 configs += [ | 118 configs += [ |
| 139 "//build/config/linux:glib", | 119 "//build/config/linux:glib", |
| 140 "//build/config/linux:x11", | 120 "//build/config/linux:x11", |
| 141 ] | 121 ] |
| 142 deps += [ "//ui/gfx/x" ] | 122 deps += [ |
| 123 "//ui/events/devices", |
| 124 "//ui/gfx/x", |
| 125 ] |
| 143 } | 126 } |
| 144 | 127 |
| 145 if (!is_chromeos && is_linux) { | 128 if (!is_chromeos && is_linux) { |
| 146 sources += [ | 129 sources += [ |
| 147 "linux/text_edit_command_auralinux.cc", | 130 "linux/text_edit_command_auralinux.cc", |
| 148 "linux/text_edit_command_auralinux.h", | 131 "linux/text_edit_command_auralinux.h", |
| 149 "linux/text_edit_key_bindings_delegate_auralinux.cc", | 132 "linux/text_edit_key_bindings_delegate_auralinux.cc", |
| 150 "linux/text_edit_key_bindings_delegate_auralinux.h", | 133 "linux/text_edit_key_bindings_delegate_auralinux.h", |
| 151 ] | 134 ] |
| 152 } | 135 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 "test/cocoa_test_event_utils.h", | 255 "test/cocoa_test_event_utils.h", |
| 273 "test/cocoa_test_event_utils.mm", | 256 "test/cocoa_test_event_utils.mm", |
| 274 ] | 257 ] |
| 275 } | 258 } |
| 276 | 259 |
| 277 if (use_x11) { | 260 if (use_x11) { |
| 278 sources += [ | 261 sources += [ |
| 279 "test/events_test_utils_x11.cc", | 262 "test/events_test_utils_x11.cc", |
| 280 "test/events_test_utils_x11.h", | 263 "test/events_test_utils_x11.h", |
| 281 ] | 264 ] |
| 282 deps += [ "//ui/gfx/x" ] | 265 deps += [ |
| 266 "//ui/events/devices", |
| 267 "//ui/gfx/x", |
| 268 ] |
| 283 } | 269 } |
| 284 } | 270 } |
| 285 | 271 |
| 286 test("events_unittests") { | 272 test("events_unittests") { |
| 287 sources = [ | 273 sources = [ |
| 288 "android/scroller_unittest.cc", | 274 "android/scroller_unittest.cc", |
| 289 "cocoa/events_mac_unittest.mm", | 275 "cocoa/events_mac_unittest.mm", |
| 276 "devices/x11/device_data_manager_x11_unittest.cc", |
| 290 "event_dispatcher_unittest.cc", | 277 "event_dispatcher_unittest.cc", |
| 291 "event_processor_unittest.cc", | 278 "event_processor_unittest.cc", |
| 292 "event_rewriter_unittest.cc", | 279 "event_rewriter_unittest.cc", |
| 293 "event_unittest.cc", | 280 "event_unittest.cc", |
| 294 "gesture_detection/bitset_32_unittest.cc", | 281 "gesture_detection/bitset_32_unittest.cc", |
| 295 "gesture_detection/gesture_event_data_packet_unittest.cc", | 282 "gesture_detection/gesture_event_data_packet_unittest.cc", |
| 296 "gesture_detection/gesture_provider_unittest.cc", | 283 "gesture_detection/gesture_provider_unittest.cc", |
| 297 "gesture_detection/motion_event_buffer_unittest.cc", | 284 "gesture_detection/motion_event_buffer_unittest.cc", |
| 298 "gesture_detection/motion_event_generic_unittest.cc", | 285 "gesture_detection/motion_event_generic_unittest.cc", |
| 299 "gesture_detection/snap_scroll_controller_unittest.cc", | 286 "gesture_detection/snap_scroll_controller_unittest.cc", |
| 300 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", | 287 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", |
| 301 "gesture_detection/velocity_tracker_unittest.cc", | 288 "gesture_detection/velocity_tracker_unittest.cc", |
| 302 "gestures/fling_curve_unittest.cc", | 289 "gestures/fling_curve_unittest.cc", |
| 303 "keycodes/dom4/keycode_converter_unittest.cc", | 290 "keycodes/dom4/keycode_converter_unittest.cc", |
| 304 "latency_info_unittest.cc", | 291 "latency_info_unittest.cc", |
| 305 "platform/platform_event_source_unittest.cc", | 292 "platform/platform_event_source_unittest.cc", |
| 306 "x/device_data_manager_x11_unittest.cc", | |
| 307 "x/events_x_unittest.cc", | 293 "x/events_x_unittest.cc", |
| 308 ] | 294 ] |
| 309 | 295 |
| 310 deps = [ | 296 deps = [ |
| 311 ":dom4_keycode_converter", | 297 ":dom4_keycode_converter", |
| 312 ":events", | 298 ":events", |
| 313 ":events_base", | 299 ":events_base", |
| 314 ":gesture_detection", | 300 ":gesture_detection", |
| 315 ":test_support", | 301 ":test_support", |
| 316 "//base", | 302 "//base", |
| 317 "//base/test:run_all_unittests", | 303 "//base/test:run_all_unittests", |
| 318 "//skia", | 304 "//skia", |
| 319 "//testing/gtest", | 305 "//testing/gtest", |
| 306 "//ui/events/devices", |
| 320 "//ui/events/platform", | 307 "//ui/events/platform", |
| 321 "//ui/gfx:test_support", | 308 "//ui/gfx:test_support", |
| 322 ] | 309 ] |
| 323 | 310 |
| 324 if (use_x11) { | 311 if (use_x11) { |
| 325 configs += [ "//build/config/linux:x11" ] | 312 configs += [ "//build/config/linux:x11" ] |
| 326 deps += [ "//ui/gfx/x" ] | 313 deps += [ "//ui/gfx/x" ] |
| 327 } else { | 314 } else { |
| 328 sources -= [ | 315 sources -= [ |
| 329 "x/device_data_manager_x11_unittest.cc", | 316 "devices/x11/device_data_manager_x11_unittest.cc", |
| 330 "x/events_x_unittest.cc", | 317 "x/events_x_unittest.cc", |
| 331 ] | 318 ] |
| 332 } | 319 } |
| 333 | 320 |
| 334 if (use_ozone) { | 321 if (use_ozone) { |
| 335 sources += [ | 322 sources += [ |
| 336 "ozone/evdev/event_converter_evdev_impl_unittest.cc", | 323 "ozone/evdev/event_converter_evdev_impl_unittest.cc", |
| 337 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 324 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
| 338 ] | 325 ] |
| 339 } | 326 } |
| 340 | 327 |
| 341 if (use_aura) { | 328 if (use_aura) { |
| 342 sources += [ | 329 sources += [ |
| 343 "gestures/gesture_provider_aura_unittest.cc", | 330 "gestures/gesture_provider_aura_unittest.cc", |
| 344 ] | 331 ] |
| 345 } | 332 } |
| 346 } | 333 } |
| OLD | NEW |