| 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", | 21 "devices/device_data_manager.cc", |
| 22 "device_data_manager.h", | 22 "devices/device_data_manager.h", |
| 23 "device_hotplug_event_observer.h", | 23 "devices/device_hotplug_event_observer.h", |
| 24 "device_util_linux.cc", | 24 "devices/device_util_linux.cc", |
| 25 "device_util_linux.h", | 25 "devices/device_util_linux.h", |
| 26 "devices/input_device.cc", |
| 27 "devices/input_device.h", |
| 28 "devices/keyboard_device.cc", |
| 29 "devices/keyboard_device.h", |
| 30 "devices/touchscreen_device.cc", |
| 31 "devices/touchscreen_device.h", |
| 26 "event_constants.h", | 32 "event_constants.h", |
| 27 "event_switches.cc", | 33 "event_switches.cc", |
| 28 "event_switches.h", | 34 "event_switches.h", |
| 29 "events_base_export.h", | 35 "events_base_export.h", |
| 30 "gesture_curve.h", | 36 "gesture_curve.h", |
| 31 "gesture_event_details.cc", | 37 "gesture_event_details.cc", |
| 32 "gesture_event_details.h", | 38 "gesture_event_details.h", |
| 33 "gestures/fling_curve.cc", | 39 "gestures/fling_curve.cc", |
| 34 "gestures/fling_curve.h", | 40 "gestures/fling_curve.h", |
| 35 "input_device.cc", | |
| 36 "input_device.h", | |
| 37 "keyboard_device.cc", | |
| 38 "keyboard_device.h", | |
| 39 "keycodes/keyboard_code_conversion.cc", | 41 "keycodes/keyboard_code_conversion.cc", |
| 40 "keycodes/keyboard_code_conversion.h", | 42 "keycodes/keyboard_code_conversion.h", |
| 41 "keycodes/keyboard_code_conversion_android.cc", | 43 "keycodes/keyboard_code_conversion_android.cc", |
| 42 "keycodes/keyboard_code_conversion_android.h", | 44 "keycodes/keyboard_code_conversion_android.h", |
| 43 "keycodes/keyboard_code_conversion_mac.h", | 45 "keycodes/keyboard_code_conversion_mac.h", |
| 44 "keycodes/keyboard_code_conversion_mac.mm", | 46 "keycodes/keyboard_code_conversion_mac.mm", |
| 45 "keycodes/keyboard_code_conversion_win.cc", | 47 "keycodes/keyboard_code_conversion_win.cc", |
| 46 "keycodes/keyboard_code_conversion_win.h", | 48 "keycodes/keyboard_code_conversion_win.h", |
| 47 "keycodes/keyboard_codes.h", | 49 "keycodes/keyboard_codes.h", |
| 48 "latency_info.cc", | 50 "latency_info.cc", |
| 49 "latency_info.h", | 51 "latency_info.h", |
| 50 "touchscreen_device.cc", | |
| 51 "touchscreen_device.h", | |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 defines = [ "EVENTS_BASE_IMPLEMENTATION" ] | 54 defines = [ "EVENTS_BASE_IMPLEMENTATION" ] |
| 55 | 55 |
| 56 deps = [ | 56 deps = [ |
| 57 ":dom4_keycode_converter", | 57 ":dom4_keycode_converter", |
| 58 "//base/third_party/dynamic_annotations", | 58 "//base/third_party/dynamic_annotations", |
| 59 "//skia", | 59 "//skia", |
| 60 ] | 60 ] |
| 61 | 61 |
| 62 public_deps = [ | 62 public_deps = [ |
| 63 "//base", | 63 "//base", |
| 64 "//ui/events/platform", | 64 "//ui/events/platform", |
| 65 "//ui/gfx", | 65 "//ui/gfx", |
| 66 "//ui/gfx/geometry", | 66 "//ui/gfx/geometry", |
| 67 ] | 67 ] |
| 68 | 68 |
| 69 if (use_x11) { | 69 if (use_x11) { |
| 70 configs += [ "//build/config/linux:x11" ] | 70 configs += [ "//build/config/linux:x11" ] |
| 71 | 71 |
| 72 sources += [ | 72 sources += [ |
| 73 "devices/device_data_manager_x11.cc", |
| 74 "devices/device_data_manager_x11.h", |
| 73 "keycodes/keyboard_code_conversion_x.cc", | 75 "keycodes/keyboard_code_conversion_x.cc", |
| 74 "keycodes/keyboard_code_conversion_x.h", | 76 "keycodes/keyboard_code_conversion_x.h", |
| 75 "x/device_data_manager_x11.cc", | |
| 76 "x/device_data_manager_x11.h", | |
| 77 "x/device_list_cache_x.cc", | 77 "x/device_list_cache_x.cc", |
| 78 "x/device_list_cache_x.h", | 78 "x/device_list_cache_x.h", |
| 79 "x/hotplug_event_handler_x11.cc", | 79 "x/hotplug_event_handler_x11.cc", |
| 80 "x/hotplug_event_handler_x11.h", | 80 "x/hotplug_event_handler_x11.h", |
| 81 "x/keysym_to_unicode.cc", | 81 "x/keysym_to_unicode.cc", |
| 82 "x/keysym_to_unicode.h", | 82 "x/keysym_to_unicode.h", |
| 83 "x/touch_factory_x11.cc", | 83 "x/touch_factory_x11.cc", |
| 84 "x/touch_factory_x11.h", | 84 "x/touch_factory_x11.h", |
| 85 ] | 85 ] |
| 86 | 86 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 "test/events_test_utils_x11.h", | 279 "test/events_test_utils_x11.h", |
| 280 ] | 280 ] |
| 281 deps += [ "//ui/gfx/x" ] | 281 deps += [ "//ui/gfx/x" ] |
| 282 } | 282 } |
| 283 } | 283 } |
| 284 | 284 |
| 285 test("events_unittests") { | 285 test("events_unittests") { |
| 286 sources = [ | 286 sources = [ |
| 287 "android/scroller_unittest.cc", | 287 "android/scroller_unittest.cc", |
| 288 "cocoa/events_mac_unittest.mm", | 288 "cocoa/events_mac_unittest.mm", |
| 289 "devices/device_data_manager_x11_unittest.cc", |
| 289 "event_dispatcher_unittest.cc", | 290 "event_dispatcher_unittest.cc", |
| 290 "event_processor_unittest.cc", | 291 "event_processor_unittest.cc", |
| 291 "event_rewriter_unittest.cc", | 292 "event_rewriter_unittest.cc", |
| 292 "event_unittest.cc", | 293 "event_unittest.cc", |
| 293 "gesture_detection/bitset_32_unittest.cc", | 294 "gesture_detection/bitset_32_unittest.cc", |
| 294 "gesture_detection/gesture_event_data_packet_unittest.cc", | 295 "gesture_detection/gesture_event_data_packet_unittest.cc", |
| 295 "gesture_detection/gesture_provider_unittest.cc", | 296 "gesture_detection/gesture_provider_unittest.cc", |
| 296 "gesture_detection/motion_event_buffer_unittest.cc", | 297 "gesture_detection/motion_event_buffer_unittest.cc", |
| 297 "gesture_detection/motion_event_generic_unittest.cc", | 298 "gesture_detection/motion_event_generic_unittest.cc", |
| 298 "gesture_detection/snap_scroll_controller_unittest.cc", | 299 "gesture_detection/snap_scroll_controller_unittest.cc", |
| 299 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", | 300 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", |
| 300 "gesture_detection/velocity_tracker_unittest.cc", | 301 "gesture_detection/velocity_tracker_unittest.cc", |
| 301 "gestures/fling_curve_unittest.cc", | 302 "gestures/fling_curve_unittest.cc", |
| 302 "keycodes/dom4/keycode_converter_unittest.cc", | 303 "keycodes/dom4/keycode_converter_unittest.cc", |
| 303 "latency_info_unittest.cc", | 304 "latency_info_unittest.cc", |
| 304 "platform/platform_event_source_unittest.cc", | 305 "platform/platform_event_source_unittest.cc", |
| 305 "x/device_data_manager_x11_unittest.cc", | |
| 306 "x/events_x_unittest.cc", | 306 "x/events_x_unittest.cc", |
| 307 ] | 307 ] |
| 308 | 308 |
| 309 deps = [ | 309 deps = [ |
| 310 ":dom4_keycode_converter", | 310 ":dom4_keycode_converter", |
| 311 ":events", | 311 ":events", |
| 312 ":events_base", | 312 ":events_base", |
| 313 ":gesture_detection", | 313 ":gesture_detection", |
| 314 ":test_support", | 314 ":test_support", |
| 315 "//base", | 315 "//base", |
| 316 "//base/test:run_all_unittests", | 316 "//base/test:run_all_unittests", |
| 317 "//skia", | 317 "//skia", |
| 318 "//testing/gtest", | 318 "//testing/gtest", |
| 319 "//ui/events/platform", | 319 "//ui/events/platform", |
| 320 "//ui/gfx:test_support", | 320 "//ui/gfx:test_support", |
| 321 ] | 321 ] |
| 322 | 322 |
| 323 if (use_x11) { | 323 if (use_x11) { |
| 324 configs += [ "//build/config/linux:x11" ] | 324 configs += [ "//build/config/linux:x11" ] |
| 325 deps += [ "//ui/gfx/x" ] | 325 deps += [ "//ui/gfx/x" ] |
| 326 } else { | 326 } else { |
| 327 sources -= [ | 327 sources -= [ |
| 328 "x/device_data_manager_x11_unittest.cc", | 328 "devices/device_data_manager_x11_unittest.cc", |
| 329 "x/events_x_unittest.cc", | 329 "x/events_x_unittest.cc", |
| 330 ] | 330 ] |
| 331 } | 331 } |
| 332 | 332 |
| 333 if (use_ozone) { | 333 if (use_ozone) { |
| 334 sources += [ | 334 sources += [ |
| 335 "ozone/evdev/key_event_converter_evdev_unittest.cc", | 335 "ozone/evdev/key_event_converter_evdev_unittest.cc", |
| 336 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 336 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
| 337 ] | 337 ] |
| 338 } | 338 } |
| 339 | 339 |
| 340 if (use_aura) { | 340 if (use_aura) { |
| 341 sources += [ | 341 sources += [ |
| 342 "gestures/gesture_provider_aura_unittest.cc", | 342 "gestures/gesture_provider_aura_unittest.cc", |
| 343 ] | 343 ] |
| 344 } | 344 } |
| 345 } | 345 } |
| OLD | NEW |