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/keyboard_code_conversion.cc',
56 'keycodes/keyboard_code_conversion.h',
57 'keycodes/keyboard_code_conversion_android.cc',
58 'keycodes/keyboard_code_conversion_android.h',
59 'keycodes/keyboard_code_conversion_mac.h',
60 'keycodes/keyboard_code_conversion_mac.mm',
61 'keycodes/keyboard_code_conversion_win.cc',
62 'keycodes/keyboard_code_conversion_win.h',
63 'keycodes/keyboard_code_conversion_x.cc',
64 'keycodes/keyboard_code_conversion_x.h',
65 'keycodes/keyboard_codes.h',
68 'x/keysym_to_unicode.cc',
69 'x/keysym_to_unicode.h',
71 'export_dependent_settings': [
72 '../../ui/gfx/gfx.gyp:gfx',
77 '../../build/linux/system.gyp:x11',
78 '../gfx/x/gfx_x11.gyp:gfx_x11',
84 # GN version: //ui/events
85 'target_name': 'events',
86 'type': '<(component)',
88 '<(DEPTH)/base/base.gyp:base',
89 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
90 '<(DEPTH)/skia/skia.gyp:skia',
92 '../gfx/gfx.gyp:gfx_geometry',
93 'dom4_keycode_converter',
98 'EVENTS_IMPLEMENTATION',
101 # Note: sources list duplicated in GN build.
102 'cocoa/cocoa_event_utils.h',
103 'cocoa/cocoa_event_utils.mm',
104 'cocoa/events_mac.mm',
107 'event_dispatcher.cc',
108 'event_dispatcher.h',
111 'event_processor.cc',
118 'event_target_iterator.h',
125 'gestures/gesture_provider_aura.cc',
126 'gestures/gesture_provider_aura.h',
127 'gestures/gesture_recognizer.h',
128 'gestures/gesture_recognizer_impl.cc',
129 'gestures/gesture_recognizer_impl.h',
130 'gestures/gesture_recognizer_impl_mac.cc',
131 'gestures/gesture_types.h',
132 'gestures/motion_event_aura.cc',
133 'gestures/motion_event_aura.h',
134 'ozone/events_ozone.cc',
137 'linux/text_edit_command_auralinux.cc',
138 'linux/text_edit_command_auralinux.h',
139 'linux/text_edit_key_bindings_delegate_auralinux.cc',
140 'linux/text_edit_key_bindings_delegate_auralinux.h',
145 'devices/events_devices.gyp:events_devices',
146 '../../build/linux/system.gyp:x11',
151 'gestures/gesture_provider_aura.cc',
152 'gestures/gesture_provider_aura.h',
153 'gestures/gesture_recognizer.h',
154 'gestures/gesture_recognizer_impl.cc',
155 'gestures/gesture_recognizer_impl.h',
156 'gestures/gesture_types.h',
157 'gestures/motion_event_aura.cc',
158 'gestures/motion_event_aura.h',
161 # We explicitly enumerate the platforms we _do_ provide native cracking
163 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
170 'linux/text_edit_command_auralinux.cc',
171 'linux/text_edit_command_auralinux.h',
172 'linux/text_edit_key_bindings_delegate_auralinux.cc',
173 'linux/text_edit_key_bindings_delegate_auralinux.h',
178 'ozone/events_ozone.gyp:events_ozone_layout',
184 # GN version: //ui/events:gesture_detection
185 'target_name': 'gesture_detection',
186 'type': '<(component)',
188 '<(DEPTH)/base/base.gyp:base',
189 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
190 '../gfx/gfx.gyp:gfx',
191 '../gfx/gfx.gyp:gfx_geometry',
195 'GESTURE_DETECTION_IMPLEMENTATION',
198 # Note: sources list duplicated in GN build.
199 'gesture_detection/bitset_32.h',
200 'gesture_detection/filtered_gesture_provider.cc',
201 'gesture_detection/filtered_gesture_provider.h',
202 'gesture_detection/gesture_configuration.cc',
203 'gesture_detection/gesture_configuration.h',
204 'gesture_detection/gesture_configuration_android.cc',
205 'gesture_detection/gesture_configuration_aura.cc',
206 'gesture_detection/gesture_detection_export.h',
207 'gesture_detection/gesture_detector.cc',
208 'gesture_detection/gesture_detector.h',
209 'gesture_detection/gesture_event_data.cc',
210 'gesture_detection/gesture_event_data.h',
211 'gesture_detection/gesture_event_data_packet.cc',
212 'gesture_detection/gesture_event_data_packet.h',
213 'gesture_detection/gesture_listeners.cc',
214 'gesture_detection/gesture_listeners.h',
215 'gesture_detection/gesture_provider.cc',
216 'gesture_detection/gesture_provider.h',
217 "gesture_detection/gesture_provider_config_helper.cc",
218 "gesture_detection/gesture_provider_config_helper.h",
219 'gesture_detection/gesture_touch_uma_histogram.cc',
220 'gesture_detection/gesture_touch_uma_histogram.h',
221 'gesture_detection/motion_event.cc',
222 'gesture_detection/motion_event.h',
223 'gesture_detection/motion_event_buffer.cc',
224 'gesture_detection/motion_event_buffer.h',
225 'gesture_detection/motion_event_generic.cc',
226 'gesture_detection/motion_event_generic.h',
227 'gesture_detection/scale_gesture_detector.cc',
228 'gesture_detection/scale_gesture_detector.h',
229 'gesture_detection/scale_gesture_listeners.cc',
230 'gesture_detection/scale_gesture_listeners.h',
231 'gesture_detection/snap_scroll_controller.cc',
232 'gesture_detection/snap_scroll_controller.h',
233 'gesture_detection/touch_disposition_gesture_filter.cc',
234 'gesture_detection/touch_disposition_gesture_filter.h',
235 'gesture_detection/velocity_tracker_state.cc',
236 'gesture_detection/velocity_tracker_state.h',
237 'gesture_detection/velocity_tracker.cc',
238 'gesture_detection/velocity_tracker.h',
241 ['use_aura!=1 and OS!="android"', {
243 'gesture_detection/gesture_configuration_default.cc',
249 # GN version: //ui/events:test_support
250 'target_name': 'events_test_support',
251 'type': 'static_library',
253 '<(DEPTH)/base/base.gyp:base',
254 '<(DEPTH)/skia/skia.gyp:skia',
255 '../gfx/gfx.gyp:gfx_geometry',
259 'platform/events_platform.gyp:events_platform',
262 # Note: sources list duplicated in GN build.
263 'test/cocoa_test_event_utils.h',
264 'test/cocoa_test_event_utils.mm',
265 'test/event_generator.cc',
266 'test/event_generator.h',
267 'test/events_test_utils.cc',
268 'test/events_test_utils.h',
269 'test/events_test_utils_x11.cc',
270 'test/events_test_utils_x11.h',
271 'test/motion_event_test_utils.cc',
272 'test/motion_event_test_utils.h',
273 'test/platform_event_waiter.cc',
274 'test/platform_event_waiter.h',
275 'test/test_event_handler.cc',
276 'test/test_event_handler.h',
277 'test/test_event_processor.cc',
278 'test/test_event_processor.h',
279 'test/test_event_target.cc',
280 'test/test_event_target.h',
284 # The cocoa files don't apply to iOS.
285 'sources/': [['exclude', 'cocoa']],
289 'devices/events_devices.gyp:events_devices',
295 # GN version: //ui/events:events_unittests
296 'target_name': 'events_unittests',
297 'type': '<(gtest_target_type)',
299 '<(DEPTH)/base/base.gyp:base',
300 '<(DEPTH)/base/base.gyp:run_all_unittests',
301 '<(DEPTH)/base/base.gyp:test_support_base',
302 '<(DEPTH)/skia/skia.gyp:skia',
303 '<(DEPTH)/testing/gtest.gyp:gtest',
304 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
305 '../gfx/gfx.gyp:gfx',
306 '../gfx/gfx.gyp:gfx_geometry',
307 '../gfx/gfx.gyp:gfx_test_support',
308 'devices/events_devices.gyp:events_devices',
309 'dom4_keycode_converter',
312 'events_test_support',
314 'platform/events_platform.gyp:events_platform',
317 # Note: sources list duplicated in GN build.
318 'android/scroller_unittest.cc',
319 'cocoa/events_mac_unittest.mm',
320 'devices/x11/device_data_manager_x11_unittest.cc',
321 'event_dispatcher_unittest.cc',
322 'event_processor_unittest.cc',
323 'event_rewriter_unittest.cc',
325 'gesture_detection/bitset_32_unittest.cc',
326 'gesture_detection/filtered_gesture_provider_unittest.cc',
327 'gesture_detection/gesture_event_data_packet_unittest.cc',
328 'gesture_detection/gesture_provider_unittest.cc',
329 'gesture_detection/motion_event_buffer_unittest.cc',
330 'gesture_detection/motion_event_generic_unittest.cc',
331 'gesture_detection/snap_scroll_controller_unittest.cc',
332 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
333 'gesture_detection/velocity_tracker_unittest.cc',
334 'gestures/fling_curve_unittest.cc',
335 'gestures/gesture_provider_aura_unittest.cc',
336 'gestures/motion_event_aura_unittest.cc',
337 'keycodes/dom4/keycode_converter_unittest.cc',
338 'latency_info_unittest.cc',
339 'platform/platform_event_source_unittest.cc',
340 'x/events_x_unittest.cc',
343 '../../testing/gmock/include',
348 '../../build/linux/system.gyp:x11',
349 '../gfx/x/gfx_x11.gyp:gfx_x11',
354 'ozone/chromeos/cursor_controller_unittest.cc',
355 'ozone/evdev/event_converter_evdev_impl_unittest.cc',
356 'ozone/evdev/input_injector_evdev_unittest.cc',
357 'ozone/evdev/tablet_event_converter_evdev_unittest.cc',
358 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
361 'ozone/events_ozone.gyp:events_ozone',
362 'ozone/events_ozone.gyp:events_ozone_evdev',
363 'ozone/events_ozone.gyp:events_ozone_layout',
366 ['use_xkbcommon==1', {
368 'ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc',
373 'gestures/gesture_provider_aura_unittest.cc',
374 'gestures/motion_event_aura_unittest.cc',
377 ['OS=="linux" and use_allocator!="none"', {
379 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
382 # Exclude tests that rely on event_utils.h for platforms that do not
383 # provide native cracking, i.e., platforms that use events_stub.cc.
384 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
389 ['OS == "android"', {
391 '../../testing/android/native_test.gyp:native_test_native_code',
398 ['OS == "android"', {
401 'target_name': 'events_unittests_apk',
407 'test_suite_name': 'events_unittests',
409 'includes': [ '../../build/apk_test.gypi' ],
413 ['test_isolation_mode != "noop"', {
416 'target_name': 'events_unittests_run',
422 '../../build/isolate.gypi',
425 'events_unittests.isolate',
430 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',