| 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 source_set("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") { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 "event_target.h", | 91 "event_target.h", |
| 92 "event_target_iterator.h", | 92 "event_target_iterator.h", |
| 93 "event_targeter.cc", | 93 "event_targeter.cc", |
| 94 "event_targeter.h", | 94 "event_targeter.h", |
| 95 "event_utils.cc", | 95 "event_utils.cc", |
| 96 "event_utils.h", | 96 "event_utils.h", |
| 97 "events_export.h", | 97 "events_export.h", |
| 98 "events_stub.cc", | 98 "events_stub.cc", |
| 99 "gestures/gesture_configuration.cc", | 99 "gestures/gesture_configuration.cc", |
| 100 "gestures/gesture_configuration.h", | 100 "gestures/gesture_configuration.h", |
| 101 "gestures/gesture_point.cc", | |
| 102 "gestures/gesture_point.h", | |
| 103 "gestures/gesture_recognizer.h", | |
| 104 "gestures/gesture_recognizer_impl.cc", | |
| 105 "gestures/gesture_recognizer_impl.h", | |
| 106 "gestures/gesture_sequence.cc", | |
| 107 "gestures/gesture_sequence.h", | |
| 108 "gestures/gesture_types.h", | |
| 109 "gestures/velocity_calculator.cc", | |
| 110 "gestures/velocity_calculator.h", | |
| 111 "platform/platform_event_dispatcher.h", | 101 "platform/platform_event_dispatcher.h", |
| 112 "platform/platform_event_observer.h", | 102 "platform/platform_event_observer.h", |
| 113 "platform/platform_event_source.cc", | 103 "platform/platform_event_source.cc", |
| 114 "platform/platform_event_source.h", | 104 "platform/platform_event_source.h", |
| 115 "platform/platform_event_source_stub.cc", | 105 "platform/platform_event_source_stub.cc", |
| 116 "platform/platform_event_types.h", | 106 "platform/platform_event_types.h", |
| 117 "platform/scoped_event_dispatcher.cc", | 107 "platform/scoped_event_dispatcher.cc", |
| 118 "platform/scoped_event_dispatcher.h", | 108 "platform/scoped_event_dispatcher.h", |
| 119 "platform/x11/x11_event_source.cc", | 109 "platform/x11/x11_event_source.cc", |
| 120 "platform/x11/x11_event_source.h", | 110 "platform/x11/x11_event_source.h", |
| 121 "win/events_win.cc", | 111 "win/events_win.cc", |
| 122 "x/events_x.cc", | 112 "x/events_x.cc", |
| 123 ] | 113 ] |
| 124 | 114 |
| 115 if (use_aura) { |
| 116 sources += [ |
| 117 "gestures/gesture_point.cc", |
| 118 "gestures/gesture_point.h", |
| 119 "gestures/gesture_provider_aura.cc", |
| 120 "gestures/gesture_provider_aura.h", |
| 121 "gestures/gesture_recognizer.h", |
| 122 "gestures/gesture_recognizer_impl.cc", |
| 123 "gestures/gesture_recognizer_impl.h", |
| 124 "gestures/gesture_sequence.cc", |
| 125 "gestures/gesture_sequence.h", |
| 126 "gestures/gesture_types.h", |
| 127 "gestures/motion_event_aura.cc", |
| 128 "gestures/motion_event_aura.h", |
| 129 "gestures/velocity_calculator.cc", |
| 130 "gestures/velocity_calculator.h", |
| 131 ] |
| 132 } |
| 133 |
| 125 if (use_x11) { | 134 if (use_x11) { |
| 126 configs += [ | 135 configs += [ |
| 127 "//build/config/linux:glib", | 136 "//build/config/linux:glib", |
| 128 "//build/config/linux:x11", | 137 "//build/config/linux:x11", |
| 129 ] | 138 ] |
| 130 } else { | 139 } else { |
| 131 sources -= [ | 140 sources -= [ |
| 132 "platform/x11/x11_event_source.cc", | 141 "platform/x11/x11_event_source.cc", |
| 133 "platform/x11/x11_event_source.h", | 142 "platform/x11/x11_event_source.h", |
| 134 "x/events_x.cc", | 143 "x/events_x.cc", |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if (use_x11) { | 266 if (use_x11) { |
| 258 configs += [ "//build/config/linux:x11" ] | 267 configs += [ "//build/config/linux:x11" ] |
| 259 } else { | 268 } else { |
| 260 sources -= [ | 269 sources -= [ |
| 261 "test/events_test_utils_x11.cc", | 270 "test/events_test_utils_x11.cc", |
| 262 "test/events_test_utils_x11.h", | 271 "test/events_test_utils_x11.h", |
| 263 ] | 272 ] |
| 264 } | 273 } |
| 265 } | 274 } |
| 266 | 275 |
| 276 if (!is_android) { # TODO(GYP) make this link on Android. |
| 267 test("events_unittests") { | 277 test("events_unittests") { |
| 268 sources = [ | 278 sources = [ |
| 269 "cocoa/cocoa_event_utils_unittest.mm", | 279 "cocoa/cocoa_event_utils_unittest.mm", |
| 270 "event_dispatcher_unittest.cc", | 280 "event_dispatcher_unittest.cc", |
| 271 "event_processor_unittest.cc", | 281 "event_processor_unittest.cc", |
| 272 "event_rewriter_unittest.cc", | 282 "event_rewriter_unittest.cc", |
| 273 "event_unittest.cc", | 283 "event_unittest.cc", |
| 274 "gestures/velocity_calculator_unittest.cc", | |
| 275 "gesture_detection/bitset_32_unittest.cc", | 284 "gesture_detection/bitset_32_unittest.cc", |
| 276 "gesture_detection/gesture_provider_unittest.cc", | 285 "gesture_detection/gesture_provider_unittest.cc", |
| 277 "gesture_detection/mock_motion_event.h", | 286 "gesture_detection/mock_motion_event.h", |
| 278 "gesture_detection/mock_motion_event.cc", | 287 "gesture_detection/mock_motion_event.cc", |
| 279 "gesture_detection/velocity_tracker_unittest.cc", | 288 "gesture_detection/velocity_tracker_unittest.cc", |
| 280 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", | 289 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", |
| 281 "keycodes/dom4/keycode_converter_unittest.cc", | 290 "keycodes/dom4/keycode_converter_unittest.cc", |
| 282 "latency_info_unittest.cc", | 291 "latency_info_unittest.cc", |
| 283 "platform/platform_event_source_unittest.cc", | 292 "platform/platform_event_source_unittest.cc", |
| 284 "x/events_x_unittest.cc", | 293 "x/events_x_unittest.cc", |
| 285 ] | 294 ] |
| 286 | 295 |
| 287 if (!use_x11) { | 296 if (!use_x11) { |
| 288 sources -= [ | 297 sources -= [ |
| 289 "x/events_x_unittest.cc", | 298 "x/events_x_unittest.cc", |
| 290 ] | 299 ] |
| 291 } | 300 } |
| 292 | 301 |
| 293 if (use_ozone) { | 302 if (use_ozone) { |
| 294 sources += [ | 303 sources += [ |
| 295 "ozone/evdev/key_event_converter_evdev_unittest.cc", | 304 "ozone/evdev/key_event_converter_evdev_unittest.cc", |
| 296 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 305 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
| 297 ] | 306 ] |
| 307 deps += [ |
| 308 "//ui/events/ozone", |
| 309 "//ui/events/ozone:events_ozone_evdev", |
| 310 ] |
| 311 } |
| 312 if (use_aura) { |
| 313 sources += [ |
| 314 "gestures/motion_event_aura_unittest.cc", |
| 315 "gestures/velocity_calculator_unittest.cc", |
| 316 ] |
| 317 } |
| 318 |
| 319 # Exclude tests that rely on event_utils.h for platforms that do not |
| 320 # provide native cracking, i.e., platforms that use events_stub.cc. |
| 321 if (!is_win && !use_x11 && !use_ozone) { |
| 322 sources -= [ "event_unittest.cc" ] |
| 323 } |
| 324 |
| 325 if (is_android) { |
| 326 deps += [ |
| 327 #TODO(GYP) |
| 328 #'../../testing/android/native_test.gyp:native_test_native_code', |
| 329 ] |
| 298 } | 330 } |
| 299 | 331 |
| 300 deps = [ | 332 deps = [ |
| 301 ":events", | 333 ":events", |
| 302 ":events_base", | 334 ":events_base", |
| 303 ":events_test_support", | 335 ":events_test_support", |
| 304 ":gesture_detection", | 336 ":gesture_detection", |
| 305 "//base", | 337 "//base", |
| 338 "//base/allocator", |
| 306 "//base/test:run_all_unittests", | 339 "//base/test:run_all_unittests", |
| 307 "//skia", | 340 "//skia", |
| 308 "//testing/gtest", | 341 "//testing/gtest", |
| 309 "//ui/gfx:gfx_test_support", | 342 "//ui/gfx:gfx_test_support", |
| 310 ] | 343 ] |
| 311 } | 344 } |
| 345 } # !is_android |
| OLD | NEW |