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 # GN version: //ui/events:dom4_keycode_converter
12 'target_name': 'dom4_keycode_converter',
13 'type': 'static_library',
15 '<(DEPTH)/base/base.gyp:base',
18 # Note: sources list duplicated in GN build.
19 'keycodes/dom3/dom_code.h',
20 'keycodes/dom3/dom_key.h',
21 'keycodes/dom3/dom_key_data.h',
22 'keycodes/dom4/keycode_converter.cc',
23 'keycodes/dom4/keycode_converter.h',
24 'keycodes/dom4/keycode_converter_data.h',
28 # GN version: //ui/events:events_base
29 'target_name': 'events_base',
30 'type': '<(component)',
32 '<(DEPTH)/base/base.gyp:base',
33 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
34 '<(DEPTH)/skia/skia.gyp:skia',
36 '../gfx/gfx.gyp:gfx_geometry',
37 'dom4_keycode_converter',
40 'EVENTS_BASE_IMPLEMENTATION',
43 # Note: sources list duplicated in GN build.
44 'android/scroller.cc',
49 'events_base_export.h',
51 'gesture_event_details.cc',
52 'gesture_event_details.h',
53 'gestures/fling_curve.cc',
54 'gestures/fling_curve.h',
55 'keycodes/dom_us_layout_data.h',
56 'keycodes/keyboard_code_conversion.cc',
57 'keycodes/keyboard_code_conversion.h',
58 'keycodes/keyboard_code_conversion_android.cc',
59 'keycodes/keyboard_code_conversion_android.h',
60 'keycodes/keyboard_code_conversion_mac.h',
61 'keycodes/keyboard_code_conversion_mac.mm',
62 'keycodes/keyboard_code_conversion_win.cc',
63 'keycodes/keyboard_code_conversion_win.h',
64 'keycodes/keyboard_code_conversion_x.cc',
65 'keycodes/keyboard_code_conversion_x.h',
66 'keycodes/keyboard_codes.h',
69 'x/keysym_to_unicode.cc',
70 'x/keysym_to_unicode.h',
72 'export_dependent_settings': [
73 '../../ui/gfx/gfx.gyp:gfx',
78 '../../build/linux/system.gyp:x11',
79 '../gfx/x/gfx_x11.gyp:gfx_x11',
85 # GN version: //ui/events
86 'target_name': 'events',
87 'type': '<(component)',
89 '<(DEPTH)/base/base.gyp:base',
90 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
91 '<(DEPTH)/skia/skia.gyp:skia',
93 '../gfx/gfx.gyp:gfx_geometry',
94 'dom4_keycode_converter',
99 'EVENTS_IMPLEMENTATION',
102 # Note: sources list duplicated in GN build.
103 'cocoa/cocoa_event_utils.h',
104 'cocoa/cocoa_event_utils.mm',
105 'cocoa/events_mac.mm',
108 'event_dispatcher.cc',
109 'event_dispatcher.h',
112 'event_processor.cc',
119 'event_target_iterator.h',
126 'gestures/gesture_provider_aura.cc',
127 'gestures/gesture_provider_aura.h',
128 'gestures/gesture_recognizer.h',
129 'gestures/gesture_recognizer_impl.cc',
130 'gestures/gesture_recognizer_impl.h',
131 'gestures/gesture_recognizer_impl_mac.cc',
132 'gestures/gesture_types.h',
133 'gestures/motion_event_aura.cc',
134 'gestures/motion_event_aura.h',
135 'linux/text_edit_command_auralinux.cc',
136 'linux/text_edit_command_auralinux.h',
137 'linux/text_edit_key_bindings_delegate_auralinux.cc',
138 'linux/text_edit_key_bindings_delegate_auralinux.h',
139 'null_event_targeter.cc',
140 'null_event_targeter.h',
141 'ozone/events_ozone.cc',
148 'devices/events_devices.gyp:events_devices',
149 '../gfx/x/gfx_x11.gyp:gfx_x11',
150 '../../build/linux/system.gyp:x11',
155 'gestures/gesture_provider_aura.cc',
156 'gestures/gesture_provider_aura.h',
157 'gestures/gesture_recognizer.h',
158 'gestures/gesture_recognizer_impl.cc',
159 'gestures/gesture_recognizer_impl.h',
160 'gestures/gesture_types.h',
161 'gestures/motion_event_aura.cc',
162 'gestures/motion_event_aura.h',
165 # We explicitly enumerate the platforms we _do_ provide native cracking
167 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
174 'linux/text_edit_command_auralinux.cc',
175 'linux/text_edit_command_auralinux.h',
176 'linux/text_edit_key_bindings_delegate_auralinux.cc',
177 'linux/text_edit_key_bindings_delegate_auralinux.h',
182 'ozone/events_ozone.gyp:events_ozone_layout',
188 # GN version: //ui/events/blink
189 'target_name': 'blink',
190 'type': 'static_library',
192 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
193 '../gfx/gfx.gyp:gfx_geometry',
198 # Note: sources list duplicated in GN build.
199 'blink/blink_event_util.cc',
200 'blink/blink_event_util.h',
204 # GN version: //ui/events/gestures/blink
205 'target_name': 'gestures_blink',
206 'type': 'static_library',
208 '../../base/base.gyp:base',
209 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
210 '../gfx/gfx.gyp:gfx_geometry',
215 # Note: sources list duplicated in GN build.
216 'gestures/blink/web_gesture_curve_impl.cc',
217 'gestures/blink/web_gesture_curve_impl.h',
221 # GN version: //ui/events:gesture_detection
222 'target_name': 'gesture_detection',
223 'type': '<(component)',
225 '<(DEPTH)/base/base.gyp:base',
226 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
227 '../gfx/gfx.gyp:gfx',
228 '../gfx/gfx.gyp:gfx_geometry',
232 'GESTURE_DETECTION_IMPLEMENTATION',
235 # Note: sources list duplicated in GN build.
236 'gesture_detection/bitset_32.h',
237 'gesture_detection/filtered_gesture_provider.cc',
238 'gesture_detection/filtered_gesture_provider.h',
239 'gesture_detection/gesture_configuration.cc',
240 'gesture_detection/gesture_configuration.h',
241 'gesture_detection/gesture_configuration_android.cc',
242 'gesture_detection/gesture_configuration_aura.cc',
243 'gesture_detection/gesture_detection_export.h',
244 'gesture_detection/gesture_detector.cc',
245 'gesture_detection/gesture_detector.h',
246 'gesture_detection/gesture_event_data.cc',
247 'gesture_detection/gesture_event_data.h',
248 'gesture_detection/gesture_event_data_packet.cc',
249 'gesture_detection/gesture_event_data_packet.h',
250 'gesture_detection/gesture_listeners.cc',
251 'gesture_detection/gesture_listeners.h',
252 'gesture_detection/gesture_provider.cc',
253 'gesture_detection/gesture_provider.h',
254 'gesture_detection/gesture_provider_config_helper.cc',
255 'gesture_detection/gesture_provider_config_helper.h',
256 'gesture_detection/gesture_touch_uma_histogram.cc',
257 'gesture_detection/gesture_touch_uma_histogram.h',
258 'gesture_detection/motion_event.cc',
259 'gesture_detection/motion_event.h',
260 'gesture_detection/motion_event_buffer.cc',
261 'gesture_detection/motion_event_buffer.h',
262 'gesture_detection/motion_event_generic.cc',
263 'gesture_detection/motion_event_generic.h',
264 'gesture_detection/scale_gesture_detector.cc',
265 'gesture_detection/scale_gesture_detector.h',
266 'gesture_detection/scale_gesture_listeners.cc',
267 'gesture_detection/scale_gesture_listeners.h',
268 'gesture_detection/snap_scroll_controller.cc',
269 'gesture_detection/snap_scroll_controller.h',
270 'gesture_detection/touch_disposition_gesture_filter.cc',
271 'gesture_detection/touch_disposition_gesture_filter.h',
272 'gesture_detection/velocity_tracker.cc',
273 'gesture_detection/velocity_tracker.h',
274 'gesture_detection/velocity_tracker_state.cc',
275 'gesture_detection/velocity_tracker_state.h',
278 ['use_aura!=1 and OS!="android"', {
280 'gesture_detection/gesture_configuration_default.cc',
286 # GN version: //ui/events:test_support
287 'target_name': 'events_test_support',
288 'type': 'static_library',
290 '<(DEPTH)/base/base.gyp:base',
291 '<(DEPTH)/skia/skia.gyp:skia',
292 '../gfx/gfx.gyp:gfx_geometry',
296 'platform/events_platform.gyp:events_platform',
299 # Note: sources list duplicated in GN build.
300 'test/cocoa_test_event_utils.h',
301 'test/cocoa_test_event_utils.mm',
302 'test/event_generator.cc',
303 'test/event_generator.h',
304 'test/events_test_utils.cc',
305 'test/events_test_utils.h',
306 'test/events_test_utils_x11.cc',
307 'test/events_test_utils_x11.h',
308 'test/motion_event_test_utils.cc',
309 'test/motion_event_test_utils.h',
310 'test/platform_event_waiter.cc',
311 'test/platform_event_waiter.h',
312 'test/test_event_handler.cc',
313 'test/test_event_handler.h',
314 'test/test_event_processor.cc',
315 'test/test_event_processor.h',
316 'test/test_event_target.cc',
317 'test/test_event_target.h',
321 # The cocoa files don't apply to iOS.
322 'sources/': [['exclude', 'cocoa']],
326 'devices/events_devices.gyp:events_devices',
332 # GN version: //ui/events:events_unittests
333 'target_name': 'events_unittests',
334 'type': '<(gtest_target_type)',
336 '<(DEPTH)/base/base.gyp:base',
337 '<(DEPTH)/base/base.gyp:run_all_unittests',
338 '<(DEPTH)/base/base.gyp:test_support_base',
339 '<(DEPTH)/skia/skia.gyp:skia',
340 '<(DEPTH)/testing/gtest.gyp:gtest',
341 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
342 '../gfx/gfx.gyp:gfx',
343 '../gfx/gfx.gyp:gfx_geometry',
344 '../gfx/gfx.gyp:gfx_test_support',
345 'devices/events_devices.gyp:events_devices',
346 'dom4_keycode_converter',
349 'events_test_support',
352 'platform/events_platform.gyp:events_platform',
355 # Note: sources list duplicated in GN build.
356 'android/scroller_unittest.cc',
357 'cocoa/events_mac_unittest.mm',
358 'devices/x11/device_data_manager_x11_unittest.cc',
359 'event_dispatcher_unittest.cc',
360 'event_processor_unittest.cc',
361 'event_rewriter_unittest.cc',
363 'gesture_detection/bitset_32_unittest.cc',
364 'gesture_detection/filtered_gesture_provider_unittest.cc',
365 'gesture_detection/gesture_event_data_packet_unittest.cc',
366 'gesture_detection/gesture_provider_unittest.cc',
367 'gesture_detection/motion_event_buffer_unittest.cc',
368 'gesture_detection/motion_event_generic_unittest.cc',
369 'gesture_detection/snap_scroll_controller_unittest.cc',
370 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
371 'gesture_detection/velocity_tracker_unittest.cc',
372 'gestures/blink/web_gesture_curve_impl_unittest.cc',
373 'gestures/fling_curve_unittest.cc',
374 'gestures/gesture_provider_aura_unittest.cc',
375 'gestures/motion_event_aura_unittest.cc',
376 'keycodes/dom4/keycode_converter_unittest.cc',
377 'keycodes/keyboard_code_conversion_unittest.cc',
378 'latency_info_unittest.cc',
379 'platform/platform_event_source_unittest.cc',
380 'x/events_x_unittest.cc',
383 '../../testing/gmock/include',
388 '../../build/linux/system.gyp:x11',
389 '../gfx/x/gfx_x11.gyp:gfx_x11',
394 'ozone/chromeos/cursor_controller_unittest.cc',
395 'ozone/evdev/event_converter_evdev_impl_unittest.cc',
396 'ozone/evdev/event_converter_test_util.cc',
397 'ozone/evdev/event_device_info_unittest.cc',
398 'ozone/evdev/event_device_test_util.cc',
399 'ozone/evdev/input_injector_evdev_unittest.cc',
400 'ozone/evdev/tablet_event_converter_evdev_unittest.cc',
401 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
402 'ozone/evdev/touch_noise/touch_noise_finder_unittest.cc',
405 'ozone/events_ozone.gyp:events_ozone',
406 'ozone/events_ozone.gyp:events_ozone_evdev',
407 'ozone/events_ozone.gyp:events_ozone_layout',
410 ['use_xkbcommon==1', {
412 'ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc',
417 'gestures/gesture_provider_aura_unittest.cc',
418 'gestures/motion_event_aura_unittest.cc',
421 ['OS=="linux" and use_allocator!="none"', {
423 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
426 # Exclude tests that rely on event_utils.h for platforms that do not
427 # provide native cracking, i.e., platforms that use events_stub.cc.
428 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
433 ['OS == "android"', {
435 '../../testing/android/native_test.gyp:native_test_native_code',
442 ['OS == "android"', {
445 'target_name': 'events_unittests_apk',
451 'test_suite_name': 'events_unittests',
453 'includes': [ '../../build/apk_test.gypi' ],
457 ['test_isolation_mode != "noop"', {
460 'target_name': 'events_unittests_run',
466 '../../build/isolate.gypi',
469 'events_unittests.isolate',
474 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',