OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 'android/motion_event_android.cc', | 204 'android/motion_event_android.cc', |
205 'android/motion_event_android.h', | 205 'android/motion_event_android.h', |
206 ], | 206 ], |
207 'dependencies': [ | 207 'dependencies': [ |
208 'motionevent_jni_headers', | 208 'motionevent_jni_headers', |
209 ], | 209 ], |
210 }], | 210 }], |
211 ], | 211 ], |
212 }, | 212 }, |
213 { | 213 { |
214 # GN version: //ui/events/blink | |
215 'target_name': 'blink', | |
216 'type': 'static_library', | |
217 'dependencies': [ | |
218 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers', | |
219 '../gfx/gfx.gyp:gfx_geometry', | |
220 'events', | |
221 'gesture_detection', | |
222 ], | |
223 'sources': [ | |
224 # Note: sources list duplicated in GN build. | |
225 'blink/blink_event_util.cc', | |
226 'blink/blink_event_util.h', | |
227 ], | |
228 }, | |
229 { | |
230 # GN version: //ui/events/gestures/blink | 214 # GN version: //ui/events/gestures/blink |
231 'target_name': 'gestures_blink', | 215 'target_name': 'gestures_blink', |
232 'type': 'static_library', | 216 'type': 'static_library', |
233 'dependencies': [ | 217 'dependencies': [ |
234 '../../base/base.gyp:base', | 218 '../../base/base.gyp:base', |
235 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers', | 219 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers', |
236 '../gfx/gfx.gyp:gfx_geometry', | 220 '../gfx/gfx.gyp:gfx_geometry', |
237 'events', | 221 'events', |
238 'gesture_detection', | 222 'gesture_detection', |
239 ], | 223 ], |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 'dependencies': [ | 360 'dependencies': [ |
377 'devices/events_devices.gyp:events_devices', | 361 'devices/events_devices.gyp:events_devices', |
378 ], | 362 ], |
379 }, { # else use_x11=1 or use_ozone=1 | 363 }, { # else use_x11=1 or use_ozone=1 |
380 'sources' : [ | 364 'sources' : [ |
381 'test/device_data_manager_test_api_stub.cc', | 365 'test/device_data_manager_test_api_stub.cc', |
382 ] | 366 ] |
383 }], | 367 }], |
384 ], | 368 ], |
385 }, | 369 }, |
386 { | |
387 # GN version: //ui/events:events_unittests | |
388 'target_name': 'events_unittests', | |
389 'type': '<(gtest_target_type)', | |
390 'dependencies': [ | |
391 '<(DEPTH)/base/base.gyp:base', | |
392 '<(DEPTH)/base/base.gyp:run_all_unittests', | |
393 '<(DEPTH)/base/base.gyp:test_support_base', | |
394 '<(DEPTH)/ipc/ipc.gyp:test_support_ipc', | |
395 '<(DEPTH)/skia/skia.gyp:skia', | |
396 '<(DEPTH)/testing/gtest.gyp:gtest', | |
397 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
398 '../gfx/gfx.gyp:gfx', | |
399 '../gfx/gfx.gyp:gfx_geometry', | |
400 '../gfx/gfx.gyp:gfx_test_support', | |
401 'devices/events_devices.gyp:events_devices', | |
402 'dom_keycode_converter', | |
403 'events', | |
404 'events_base', | |
405 'events_ipc', | |
406 'events_test_support', | |
407 'gesture_detection', | |
408 'gestures_blink', | |
409 'platform/events_platform.gyp:events_platform', | |
410 ], | |
411 'sources': [ | |
412 # Note: sources list duplicated in GN build. | |
413 'android/scroller_unittest.cc', | |
414 'cocoa/events_mac_unittest.mm', | |
415 'devices/x11/device_data_manager_x11_unittest.cc', | |
416 'event_dispatcher_unittest.cc', | |
417 'event_processor_unittest.cc', | |
418 'event_rewriter_unittest.cc', | |
419 'event_unittest.cc', | |
420 'gesture_detection/bitset_32_unittest.cc', | |
421 'gesture_detection/filtered_gesture_provider_unittest.cc', | |
422 'gesture_detection/gesture_event_data_packet_unittest.cc', | |
423 'gesture_detection/gesture_provider_unittest.cc', | |
424 'gesture_detection/motion_event_buffer_unittest.cc', | |
425 'gesture_detection/motion_event_generic_unittest.cc', | |
426 'gesture_detection/snap_scroll_controller_unittest.cc', | |
427 'gesture_detection/touch_disposition_gesture_filter_unittest.cc', | |
428 'gesture_detection/velocity_tracker_unittest.cc', | |
429 'gestures/blink/web_gesture_curve_impl_unittest.cc', | |
430 'gestures/fling_curve_unittest.cc', | |
431 'gestures/gesture_provider_aura_unittest.cc', | |
432 'gestures/motion_event_aura_unittest.cc', | |
433 'ipc/latency_info_param_traits_unittest.cc', | |
434 'keycodes/dom/keycode_converter_unittest.cc', | |
435 'keycodes/keyboard_code_conversion_unittest.cc', | |
436 'latency_info_unittest.cc', | |
437 'platform/platform_event_source_unittest.cc', | |
438 'x/events_x_unittest.cc', | |
439 ], | |
440 'include_dirs': [ | |
441 '../../testing/gmock/include', | |
442 ], | |
443 'conditions': [ | |
444 ['use_x11==1', { | |
445 'dependencies': [ | |
446 '../../build/linux/system.gyp:x11', | |
447 '../gfx/x/gfx_x11.gyp:gfx_x11', | |
448 ], | |
449 }], | |
450 ['use_ozone==1', { | |
451 'sources': [ | |
452 'ozone/chromeos/cursor_controller_unittest.cc', | |
453 'ozone/evdev/event_converter_evdev_impl_unittest.cc', | |
454 'ozone/evdev/event_converter_test_util.cc', | |
455 'ozone/evdev/event_device_info_unittest.cc', | |
456 'ozone/evdev/event_device_test_util.cc', | |
457 'ozone/evdev/input_injector_evdev_unittest.cc', | |
458 'ozone/evdev/tablet_event_converter_evdev_unittest.cc', | |
459 'ozone/evdev/touch_event_converter_evdev_unittest.cc', | |
460 'ozone/evdev/touch_noise/touch_noise_finder_unittest.cc', | |
461 ], | |
462 'dependencies': [ | |
463 'ozone/events_ozone.gyp:events_ozone', | |
464 'ozone/events_ozone.gyp:events_ozone_evdev', | |
465 'ozone/events_ozone.gyp:events_ozone_layout', | |
466 ] | |
467 }], | |
468 ['use_xkbcommon==1', { | |
469 'sources': [ | |
470 'ozone/layout/keyboard_layout_engine_unittest.cc', | |
471 'ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc', | |
472 ] | |
473 }], | |
474 ['use_aura==0', { | |
475 'sources!': [ | |
476 'gestures/gesture_provider_aura_unittest.cc', | |
477 'gestures/motion_event_aura_unittest.cc', | |
478 ], | |
479 }], | |
480 ['OS=="linux" and use_allocator!="none"', { | |
481 'dependencies': [ | |
482 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
483 ], | |
484 }], | |
485 # Exclude tests that rely on event_utils.h for platforms that do not | |
486 # provide native cracking, i.e., platforms that use events_stub.cc. | |
487 ['OS!="win" and use_x11!=1 and use_ozone!=1', { | |
488 'sources!': [ | |
489 'event_unittest.cc', | |
490 ], | |
491 }], | |
492 ['OS == "android"', { | |
493 'sources': [ | |
494 'android/motion_event_android_unittest.cc', | |
495 ], | |
496 'dependencies': [ | |
497 '../../testing/android/native_test.gyp:native_test_native_code', | |
498 ], | |
499 }], | |
500 ], | |
501 }, | |
502 ], | 370 ], |
503 'conditions': [ | 371 'conditions': [ |
504 ['OS == "android"', { | 372 ['OS == "android"', { |
505 'targets': [ | 373 'targets': [ |
506 { | 374 { |
507 'target_name': 'motionevent_jni_headers', | 375 'target_name': 'motionevent_jni_headers', |
508 'type': 'none', | 376 'type': 'none', |
509 'variables': { | 377 'variables': { |
510 'jni_gen_package': 'ui', | 378 'jni_gen_package': 'ui', |
511 'input_java_class': 'android/view/MotionEvent.class', | 379 'input_java_class': 'android/view/MotionEvent.class', |
512 }, | 380 }, |
513 'includes': [ '../../build/jar_file_jni_generator.gypi' ], | 381 'includes': [ '../../build/jar_file_jni_generator.gypi' ], |
514 }, | 382 }, |
515 { | |
516 'target_name': 'events_unittests_apk', | |
517 'type': 'none', | |
518 'dependencies': [ | |
519 'events_unittests', | |
520 ], | |
521 'variables': { | |
522 'test_suite_name': 'events_unittests', | |
523 }, | |
524 'includes': [ '../../build/apk_test.gypi' ], | |
525 }, | |
526 ], | |
527 'conditions': [ | |
528 ['test_isolation_mode != "noop"', { | |
529 'targets': [ | |
530 { | |
531 'target_name': 'events_unittests_apk_run', | |
532 'type': 'none', | |
533 'dependencies': [ | |
534 'events_unittests_apk', | |
535 ], | |
536 'includes': [ | |
537 '../../build/isolate.gypi', | |
538 ], | |
539 'sources': [ | |
540 'events_unittests_apk.isolate', | |
541 ], | |
542 }, | |
543 ], | |
544 }], | |
545 ], | |
546 }], | |
547 ['test_isolation_mode != "noop"', { | |
548 'targets': [ | |
549 { | |
550 'target_name': 'events_unittests_run', | |
551 'type': 'none', | |
552 'dependencies': [ | |
553 'events_unittests', | |
554 ], | |
555 'includes': [ | |
556 '../../build/isolate.gypi', | |
557 ], | |
558 'sources': [ | |
559 'events_unittests.isolate', | |
560 ], | |
561 'conditions': [ | |
562 ['use_x11 == 1', { | |
563 'dependencies': [ | |
564 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
565 ], | |
566 }], | |
567 ], | |
568 }, | |
569 ], | 383 ], |
570 }], | 384 }], |
571 ], | 385 ], |
572 } | 386 } |
OLD | NEW |