| Index: ui/events/events.gyp
|
| diff --git a/ui/events/events.gyp b/ui/events/events.gyp
|
| index 86f9518f5478086a3da609f9057fe06e7e63e684..836da53092196a10706fddf00da46b387b980b48 100644
|
| --- a/ui/events/events.gyp
|
| +++ b/ui/events/events.gyp
|
| @@ -166,6 +166,54 @@
|
| ],
|
| },
|
| {
|
| + 'target_name': 'gesture_detection',
|
| + 'type': '<(component)',
|
| + 'dependencies': [
|
| + '<(DEPTH)/base/base.gyp:base',
|
| + '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
|
| + '../gfx/gfx.gyp:gfx',
|
| + '../gfx/gfx.gyp:gfx_geometry',
|
| + 'events_base',
|
| + ],
|
| + 'defines': [
|
| + 'GESTURE_DETECTION_IMPLEMENTATION',
|
| + ],
|
| + 'sources': [
|
| + 'gesture_detection/bitset_32.h',
|
| + 'gesture_detection/gesture_detection_export.h',
|
| + 'gesture_detection/gesture_detector.cc',
|
| + 'gesture_detection/gesture_detector.h',
|
| + 'gesture_detection/gesture_event_params.cc',
|
| + 'gesture_detection/gesture_event_params.h',
|
| + 'gesture_detection/gesture_config_helper.h',
|
| + 'gesture_detection/gesture_config_helper_aura.cc',
|
| + 'gesture_detection/gesture_config_helper_android.cc',
|
| + 'gesture_detection/gesture_provider.cc',
|
| + 'gesture_detection/gesture_provider.h',
|
| + 'gesture_detection/motion_event.h',
|
| + 'gesture_detection/scale_gesture_detector.cc',
|
| + 'gesture_detection/scale_gesture_detector.h',
|
| + 'gesture_detection/snap_scroll_controller.cc',
|
| + 'gesture_detection/snap_scroll_controller.h',
|
| + 'gesture_detection/velocity_tracker_state.cc',
|
| + 'gesture_detection/velocity_tracker_state.h',
|
| + 'gesture_detection/velocity_tracker.cc',
|
| + 'gesture_detection/velocity_tracker.h',
|
| + ],
|
| + 'conditions': [
|
| + ['use_aura==1', {
|
| + 'dependencies': [
|
| + 'events'
|
| + ],
|
| + }],
|
| + ['use_aura!=1 and OS!="android"', {
|
| + 'sources': [
|
| + 'gesture_detection/gesture_config_helper.cc',
|
| + ],
|
| + }],
|
| + ],
|
| + },
|
| + {
|
| 'target_name': 'events_test_support',
|
| 'type': 'static_library',
|
| 'dependencies': [
|
| @@ -210,6 +258,7 @@
|
| 'events',
|
| 'events_base',
|
| 'events_test_support',
|
| + 'gesture_detection'
|
| ],
|
| 'sources': [
|
| 'cocoa/cocoa_event_utils_unittest.mm',
|
| @@ -217,6 +266,11 @@
|
| 'event_processor_unittest.cc',
|
| 'event_unittest.cc',
|
| 'gestures/velocity_calculator_unittest.cc',
|
| + 'gesture_detection/bitset_32_unittest.cc',
|
| + 'gesture_detection/gesture_provider_unittest.cc',
|
| + 'gesture_detection/mock_motion_event.h',
|
| + 'gesture_detection/mock_motion_event.cc',
|
| + 'gesture_detection/velocity_tracker_unittest.cc',
|
| 'keycodes/dom4/keycode_converter_unittest.cc',
|
| 'latency_info_unittest.cc',
|
| 'ozone/evdev/key_event_converter_evdev_unittest.cc',
|
| @@ -229,7 +283,33 @@
|
| '<(DEPTH)/base/allocator/allocator.gyp:allocator',
|
| ],
|
| }],
|
| + ['OS == "android" and gtest_target_type == "shared_library"', {
|
| + 'dependencies': [
|
| + '../../testing/android/native_test.gyp:native_test_native_code',
|
| + ],
|
| + }],
|
| ],
|
| },
|
| ],
|
| + 'conditions': [
|
| + # Special target to wrap a gtest_target_type==shared_library
|
| + # ui_unittests into an android apk for execution.
|
| + # See base.gyp for TODO(jrg)s about this strategy.
|
| + ['OS == "android" and gtest_target_type == "shared_library"', {
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'events_unittests_apk',
|
| + 'type': 'none',
|
| + 'dependencies': [
|
| + 'events_unittests',
|
| + ],
|
| + 'variables': {
|
| + 'test_suite_name': 'events_unittests',
|
| + 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)events_unittests<(SHARED_LIB_SUFFIX)',
|
| + },
|
| + 'includes': [ '../../build/apk_test.gypi' ],
|
| + },
|
| + ],
|
| + }],
|
| + ],
|
| }
|
|
|