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_gtk.cc',
47 'keycodes/keyboard_code_conversion_gtk.h',
48 'keycodes/keyboard_code_conversion_mac.h',
49 'keycodes/keyboard_code_conversion_mac.mm',
50 'keycodes/keyboard_code_conversion_win.cc',
51 'keycodes/keyboard_code_conversion_win.h',
52 'keycodes/keyboard_code_conversion_x.cc',
53 'keycodes/keyboard_code_conversion_x.h',
54 'keycodes/keyboard_codes.h',
57 'x/device_data_manager.cc',
58 'x/device_data_manager.h',
59 'x/device_list_cache_x.cc',
60 'x/device_list_cache_x.h',
61 'x/touch_factory_x11.cc',
62 'x/touch_factory_x11.h',
67 '<(DEPTH)/build/linux/system.gyp:x11',
73 'target_name': 'events',
74 'type': '<(component)',
76 '<(DEPTH)/base/base.gyp:base',
77 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
78 '<(DEPTH)/skia/skia.gyp:skia',
80 '../gfx/gfx.gyp:gfx_geometry',
84 'EVENTS_IMPLEMENTATION',
87 'cocoa/cocoa_event_utils.h',
88 'cocoa/cocoa_event_utils.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/evdev/device_manager_evdev.cc',
122 'ozone/evdev/device_manager_evdev.h',
123 'ozone/evdev/device_manager_udev.cc',
124 'ozone/evdev/device_manager_udev.h',
125 'ozone/evdev/event_converter_evdev.cc',
126 'ozone/evdev/event_converter_evdev.h',
127 'ozone/evdev/event_device_info.cc',
128 'ozone/evdev/event_device_info.h',
129 'ozone/evdev/event_factory_evdev.cc',
130 'ozone/evdev/event_factory_evdev.h',
131 'ozone/evdev/event_modifiers_evdev.cc',
132 'ozone/evdev/event_modifiers_evdev.h',
133 'ozone/evdev/key_event_converter_evdev.cc',
134 'ozone/evdev/key_event_converter_evdev.h',
135 'ozone/evdev/touch_event_converter_evdev.cc',
136 'ozone/evdev/touch_event_converter_evdev.h',
137 'ozone/event_factory_ozone.cc',
138 'ozone/event_factory_ozone.h',
139 'ozone/events_ozone.cc',
140 'platform/platform_event_dispatcher.h',
141 'platform/platform_event_observer.h',
142 'platform/platform_event_source.cc',
143 'platform/platform_event_source.h',
144 'platform/platform_event_types.h',
145 'platform/scoped_event_dispatcher.cc',
146 'platform/scoped_event_dispatcher.h',
147 'platform/x11/x11_event_source.cc',
148 'platform/x11/x11_event_source.h',
151 'linux/text_edit_command_auralinux.cc',
152 'linux/text_edit_command_auralinux.h',
153 'linux/text_edit_key_bindings_delegate_auralinux.cc',
154 'linux/text_edit_key_bindings_delegate_auralinux.h',
157 # We explicitly enumerate the platforms we _do_ provide native cracking
159 ['OS=="win" or use_x11==1 or use_ozone==1', {
166 'linux/text_edit_command_auralinux.cc',
167 'linux/text_edit_command_auralinux.h',
168 'linux/text_edit_key_bindings_delegate_auralinux.cc',
169 'linux/text_edit_key_bindings_delegate_auralinux.h',
174 '<(DEPTH)/build/linux/system.gyp:x11',
179 '../../build/linux/system.gyp:glib',
182 ['use_ozone_evdev==1', {
183 'defines': ['USE_OZONE_EVDEV=1'],
185 ['use_ozone_evdev==1 and use_udev==1', {
187 '<(DEPTH)/build/linux/system.gyp:udev',
192 'ozone/evdev/device_manager_udev.cc',
193 'ozone/evdev/device_manager_udev.h',
199 'target_name': 'gesture_detection',
200 'type': '<(component)',
202 '<(DEPTH)/base/base.gyp:base',
203 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
204 '../gfx/gfx.gyp:gfx',
205 '../gfx/gfx.gyp:gfx_geometry',
209 'GESTURE_DETECTION_IMPLEMENTATION',
212 'gesture_detection/bitset_32.h',
213 'gesture_detection/filtered_gesture_provider.cc',
214 'gesture_detection/filtered_gesture_provider.h',
215 'gesture_detection/gesture_detection_export.h',
216 'gesture_detection/gesture_detector.cc',
217 'gesture_detection/gesture_detector.h',
218 'gesture_detection/gesture_event_data.cc',
219 'gesture_detection/gesture_event_data.h',
220 'gesture_detection/gesture_event_data_packet.cc',
221 'gesture_detection/gesture_event_data_packet.h',
222 'gesture_detection/gesture_config_helper.h',
223 'gesture_detection/gesture_config_helper_aura.cc',
224 'gesture_detection/gesture_config_helper_android.cc',
225 'gesture_detection/gesture_provider.cc',
226 'gesture_detection/gesture_provider.h',
227 'gesture_detection/motion_event.h',
228 'gesture_detection/scale_gesture_detector.cc',
229 'gesture_detection/scale_gesture_detector.h',
230 'gesture_detection/snap_scroll_controller.cc',
231 'gesture_detection/snap_scroll_controller.h',
232 'gesture_detection/touch_disposition_gesture_filter.cc',
233 'gesture_detection/touch_disposition_gesture_filter.h',
234 'gesture_detection/velocity_tracker_state.cc',
235 'gesture_detection/velocity_tracker_state.h',
236 'gesture_detection/velocity_tracker.cc',
237 'gesture_detection/velocity_tracker.h',
245 ['use_aura!=1 and OS!="android"', {
247 'gesture_detection/gesture_config_helper.cc',
253 'target_name': 'events_test_support',
254 'type': 'static_library',
260 'test/cocoa_test_event_utils.h',
261 'test/cocoa_test_event_utils.mm',
262 'test/events_test_utils.cc',
263 'test/events_test_utils.h',
264 'test/events_test_utils_x11.cc',
265 'test/events_test_utils_x11.h',
266 'test/test_event_handler.cc',
267 'test/test_event_handler.h',
268 'test/test_event_processor.cc',
269 'test/test_event_processor.h',
270 'test/test_event_target.cc',
271 'test/test_event_target.h',
276 '<(DEPTH)/build/linux/system.gyp:x11',
280 # The cocoa files don't apply to iOS.
281 'sources/': [['exclude', 'cocoa']],
286 'target_name': 'events_unittests',
287 'type': '<(gtest_target_type)',
289 '<(DEPTH)/base/base.gyp:base',
290 '<(DEPTH)/base/base.gyp:run_all_unittests',
291 '<(DEPTH)/base/base.gyp:test_support_base',
292 '<(DEPTH)/testing/gtest.gyp:gtest',
293 '../gfx/gfx.gyp:gfx',
294 '../gfx/gfx.gyp:gfx_geometry',
295 'dom4_keycode_converter',
298 'events_test_support',
302 'cocoa/cocoa_event_utils_unittest.mm',
303 'event_dispatcher_unittest.cc',
304 'event_processor_unittest.cc',
305 'event_rewriter_unittest.cc',
307 'gestures/velocity_calculator_unittest.cc',
308 'gesture_detection/bitset_32_unittest.cc',
309 'gesture_detection/gesture_provider_unittest.cc',
310 'gesture_detection/mock_motion_event.h',
311 'gesture_detection/mock_motion_event.cc',
312 'gesture_detection/velocity_tracker_unittest.cc',
313 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
314 'keycodes/dom4/keycode_converter_unittest.cc',
315 'latency_info_unittest.cc',
316 'ozone/evdev/key_event_converter_evdev_unittest.cc',
317 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
318 'platform/platform_event_source_unittest.cc',
319 'x/events_x_unittest.cc',
322 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
323 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
325 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
328 # Exclude tests that rely on event_utils.h for platforms that do not
329 # provide native cracking, i.e., platforms that use events_stub.cc.
330 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
335 ['OS == "android" and gtest_target_type == "shared_library"', {
337 '../../testing/android/native_test.gyp:native_test_native_code',
344 # Special target to wrap a gtest_target_type==shared_library
345 # ui_unittests into an android apk for execution.
346 # See base.gyp for TODO(jrg)s about this strategy.
347 ['OS == "android" and gtest_target_type == "shared_library"', {
350 'target_name': 'events_unittests_apk',
356 'test_suite_name': 'events_unittests',
357 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)events_unittests<(SHARED_LIB_SUFFIX)',
359 'includes': [ '../../build/apk_test.gypi' ],