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
3 # found in the LICENSE file.
11 'target_name': 'dom4_keycode_converter',
12 'type': 'static_library',
14 '<(DEPTH)/base/base.gyp:base',
17 'keycodes/dom4/keycode_converter.cc',
18 'keycodes/dom4/keycode_converter.h',
19 'keycodes/dom4/keycode_converter_data.h',
23 'target_name': 'events_base',
24 'type': '<(component)',
26 '<(DEPTH)/base/base.gyp:base',
27 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
29 '../gfx/gfx.gyp:gfx_geometry',
30 'dom4_keycode_converter',
33 'EVENTS_BASE_IMPLEMENTATION',
39 'events_base_export.h',
40 'gesture_event_details.cc',
41 'gesture_event_details.h',
42 'keycodes/keyboard_code_conversion.cc',
43 'keycodes/keyboard_code_conversion.h',
44 'keycodes/keyboard_code_conversion_android.cc',
45 'keycodes/keyboard_code_conversion_android.h',
46 'keycodes/keyboard_code_conversion_mac.h',
47 'keycodes/keyboard_code_conversion_mac.mm',
48 'keycodes/keyboard_code_conversion_win.cc',
49 'keycodes/keyboard_code_conversion_win.h',
50 'keycodes/keyboard_code_conversion_x.cc',
51 'keycodes/keyboard_code_conversion_x.h',
52 'keycodes/keyboard_codes.h',
55 'x/device_data_manager.cc',
56 'x/device_data_manager.h',
57 'x/device_list_cache_x.cc',
58 'x/device_list_cache_x.h',
59 'x/touch_factory_x11.cc',
60 'x/touch_factory_x11.h',
65 '../../build/linux/system.gyp:x11',
66 '../gfx/gfx.gyp:gfx_x11',
72 'target_name': 'events',
73 'type': '<(component)',
75 '<(DEPTH)/base/base.gyp:base',
76 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
77 '<(DEPTH)/skia/skia.gyp:skia',
79 '../gfx/gfx.gyp:gfx_geometry',
83 'EVENTS_IMPLEMENTATION',
86 'cocoa/cocoa_event_utils.h',
87 'cocoa/cocoa_event_utils.mm',
88 'cocoa/events_mac.mm',
91 'event_dispatcher.cc',
102 'event_target_iterator.h',
109 'gestures/gesture_configuration.cc',
110 'gestures/gesture_configuration.h',
111 'gestures/gesture_point.cc',
112 'gestures/gesture_point.h',
113 'gestures/gesture_recognizer.h',
114 'gestures/gesture_recognizer_impl.cc',
115 'gestures/gesture_recognizer_impl.h',
116 'gestures/gesture_sequence.cc',
117 'gestures/gesture_sequence.h',
118 'gestures/gesture_types.h',
119 'gestures/velocity_calculator.cc',
120 'gestures/velocity_calculator.h',
121 'ozone/device/device_event.cc',
122 'ozone/device/device_event.h',
123 'ozone/device/device_event_observer.h',
124 'ozone/device/device_manager.cc',
125 'ozone/device/device_manager.h',
126 'ozone/device/device_manager_manual.cc',
127 'ozone/device/device_manager_manual.h',
128 'ozone/device/udev/device_manager_udev.cc',
129 'ozone/device/udev/device_manager_udev.h',
130 'ozone/device/udev/scoped_udev.h',
131 'ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc',
132 'ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h',
133 'ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc',
134 'ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h',
135 'ozone/evdev/libgestures_glue/gesture_logging.cc',
136 'ozone/evdev/libgestures_glue/gesture_logging.h',
137 'ozone/evdev/libgestures_glue/gesture_timer_provider.cc',
138 'ozone/evdev/libgestures_glue/gesture_timer_provider.h',
139 'ozone/evdev/event_converter_evdev.cc',
140 'ozone/evdev/event_converter_evdev.h',
141 'ozone/evdev/event_device_info.cc',
142 'ozone/evdev/event_device_info.h',
143 'ozone/evdev/event_factory_evdev.cc',
144 'ozone/evdev/event_factory_evdev.h',
145 'ozone/evdev/event_modifiers_evdev.cc',
146 'ozone/evdev/event_modifiers_evdev.h',
147 'ozone/evdev/key_event_converter_evdev.cc',
148 'ozone/evdev/key_event_converter_evdev.h',
149 'ozone/evdev/touch_event_converter_evdev.cc',
150 'ozone/evdev/touch_event_converter_evdev.h',
151 'ozone/event_factory_ozone.cc',
152 'ozone/event_factory_ozone.h',
153 'ozone/events_ozone.cc',
154 'platform/platform_event_dispatcher.h',
155 'platform/platform_event_observer.h',
156 'platform/platform_event_source.cc',
157 'platform/platform_event_source.h',
158 'platform/platform_event_source_stub.cc',
159 'platform/platform_event_types.h',
160 'platform/scoped_event_dispatcher.cc',
161 'platform/scoped_event_dispatcher.h',
162 'platform/x11/x11_event_source.cc',
163 'platform/x11/x11_event_source.h',
164 'platform/x11/x11_event_source_glib.cc',
165 'platform/x11/x11_event_source_libevent.cc',
168 'linux/text_edit_command_auralinux.cc',
169 'linux/text_edit_command_auralinux.h',
170 'linux/text_edit_key_bindings_delegate_auralinux.cc',
171 'linux/text_edit_key_bindings_delegate_auralinux.h',
174 # We explicitly enumerate the platforms we _do_ provide native cracking
176 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
183 'linux/text_edit_command_auralinux.cc',
184 'linux/text_edit_command_auralinux.h',
185 'linux/text_edit_key_bindings_delegate_auralinux.cc',
186 'linux/text_edit_key_bindings_delegate_auralinux.h',
191 'platform/platform_event_source_stub.cc',
194 '../../build/linux/system.gyp:x11',
195 '../gfx/gfx.gyp:gfx_x11',
200 '../../build/linux/system.gyp:glib',
203 'platform/x11/x11_event_source_libevent.cc',
208 'platform/x11/x11_event_source_glib.cc',
211 ['use_ozone_evdev==1', {
212 'defines': ['USE_OZONE_EVDEV=1'],
214 ['use_ozone_evdev==1 and use_udev==1', {
216 '<(DEPTH)/build/linux/system.gyp:udev',
219 ['use_ozone_evdev==1 and use_evdev_gestures==1', {
221 '<(DEPTH)/build/linux/system.gyp:libgestures',
222 '<(DEPTH)/build/linux/system.gyp:libevdev-cros',
225 'USE_EVDEV_GESTURES',
229 ['exclude', '^ozone/evdev/libgestures_glue/'],
234 ['exclude', '_udev\\.(h|cc)$'],
240 'target_name': 'gesture_detection',
241 'type': '<(component)',
243 '<(DEPTH)/base/base.gyp:base',
244 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
245 '../gfx/gfx.gyp:gfx',
246 '../gfx/gfx.gyp:gfx_geometry',
250 'GESTURE_DETECTION_IMPLEMENTATION',
253 'gesture_detection/bitset_32.h',
254 'gesture_detection/filtered_gesture_provider.cc',
255 'gesture_detection/filtered_gesture_provider.h',
256 'gesture_detection/gesture_detection_export.h',
257 'gesture_detection/gesture_detector.cc',
258 'gesture_detection/gesture_detector.h',
259 'gesture_detection/gesture_event_data.cc',
260 'gesture_detection/gesture_event_data.h',
261 'gesture_detection/gesture_event_data_packet.cc',
262 'gesture_detection/gesture_event_data_packet.h',
263 'gesture_detection/gesture_config_helper.h',
264 'gesture_detection/gesture_config_helper_aura.cc',
265 'gesture_detection/gesture_config_helper_android.cc',
266 'gesture_detection/gesture_provider.cc',
267 'gesture_detection/gesture_provider.h',
268 'gesture_detection/motion_event.h',
269 'gesture_detection/scale_gesture_detector.cc',
270 'gesture_detection/scale_gesture_detector.h',
271 'gesture_detection/snap_scroll_controller.cc',
272 'gesture_detection/snap_scroll_controller.h',
273 'gesture_detection/touch_disposition_gesture_filter.cc',
274 'gesture_detection/touch_disposition_gesture_filter.h',
275 'gesture_detection/velocity_tracker_state.cc',
276 'gesture_detection/velocity_tracker_state.h',
277 'gesture_detection/velocity_tracker.cc',
278 'gesture_detection/velocity_tracker.h',
286 ['use_aura!=1 and OS!="android"', {
288 'gesture_detection/gesture_config_helper.cc',
294 'target_name': 'events_test_support',
295 'type': 'static_library',
301 'test/cocoa_test_event_utils.h',
302 'test/cocoa_test_event_utils.mm',
303 'test/events_test_utils.cc',
304 'test/events_test_utils.h',
305 'test/events_test_utils_x11.cc',
306 'test/events_test_utils_x11.h',
307 'test/platform_event_waiter.cc',
308 'test/platform_event_waiter.h',
309 'test/test_event_handler.cc',
310 'test/test_event_handler.h',
311 'test/test_event_processor.cc',
312 'test/test_event_processor.h',
313 'test/test_event_target.cc',
314 'test/test_event_target.h',
319 '../../build/linux/system.gyp:x11',
320 '../gfx/gfx.gyp:gfx_x11',
324 # The cocoa files don't apply to iOS.
325 'sources/': [['exclude', 'cocoa']],
330 'target_name': 'events_unittests',
331 'type': '<(gtest_target_type)',
333 '<(DEPTH)/base/base.gyp:base',
334 '<(DEPTH)/base/base.gyp:run_all_unittests',
335 '<(DEPTH)/base/base.gyp:test_support_base',
336 '<(DEPTH)/testing/gtest.gyp:gtest',
337 '../gfx/gfx.gyp:gfx_geometry',
338 '../gfx/gfx.gyp:gfx_test_support',
339 'dom4_keycode_converter',
342 'events_test_support',
346 'cocoa/events_mac_unittest.mm',
347 'event_dispatcher_unittest.cc',
348 'event_processor_unittest.cc',
349 'event_rewriter_unittest.cc',
351 'gestures/velocity_calculator_unittest.cc',
352 'gesture_detection/bitset_32_unittest.cc',
353 'gesture_detection/gesture_provider_unittest.cc',
354 'gesture_detection/mock_motion_event.h',
355 'gesture_detection/mock_motion_event.cc',
356 'gesture_detection/velocity_tracker_unittest.cc',
357 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
358 'keycodes/dom4/keycode_converter_unittest.cc',
359 'latency_info_unittest.cc',
360 'ozone/evdev/key_event_converter_evdev_unittest.cc',
361 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
362 'platform/platform_event_source_unittest.cc',
363 'x/events_x_unittest.cc',
366 ['OS=="linux" and use_allocator!="none"', {
368 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
371 # Exclude tests that rely on event_utils.h for platforms that do not
372 # provide native cracking, i.e., platforms that use events_stub.cc.
373 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
378 ['OS == "android" and gtest_target_type == "shared_library"', {
380 '../../testing/android/native_test.gyp:native_test_native_code',
387 # Special target to wrap a gtest_target_type==shared_library
388 # ui_unittests into an android apk for execution.
389 # See base.gyp for TODO(jrg)s about this strategy.
390 ['OS == "android" and gtest_target_type == "shared_library"', {
393 'target_name': 'events_unittests_apk',
399 'test_suite_name': 'events_unittests',
401 'includes': [ '../../build/apk_test.gypi' ],