Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: ui/events/events.gyp

Issue 789363004: WindowManagerApp should recognize gestures (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename Aura to Impl and add FIXME Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/gesture_detection/gesture_config_helper_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 # GN version: //ui/events:dom4_keycode_converter
12 'target_name': 'dom4_keycode_converter',
13 'type': 'static_library',
14 'dependencies': [
15 '<(DEPTH)/base/base.gyp:base',
16 ],
17 'sources': [
18 # Note: sources list duplicated in GN build.
19 'keycodes/dom4/keycode_converter.cc',
20 'keycodes/dom4/keycode_converter.h',
21 'keycodes/dom4/keycode_converter_data.h',
22 ],
23 },
24 {
25 # GN version: //ui/events:events_base
26 'target_name': 'events_base',
27 'type': '<(component)',
28 'dependencies': [
29 '<(DEPTH)/base/base.gyp:base',
30 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
31 '<(DEPTH)/skia/skia.gyp:skia',
32 '../gfx/gfx.gyp:gfx',
33 '../gfx/gfx.gyp:gfx_geometry',
34 'dom4_keycode_converter',
35 ],
36 'defines': [
37 'EVENTS_BASE_IMPLEMENTATION',
38 ],
39 'sources': [
40 # Note: sources list duplicated in GN build.
41 'android/scroller.cc',
42 'android/scroller.h',
43 'device_data_manager.cc',
44 'device_data_manager.h',
45 'device_hotplug_event_observer.h',
46 'event_constants.h',
47 'event_switches.cc',
48 'event_switches.h',
49 'events_base_export.h',
50 'gesture_curve.h',
51 'gesture_event_details.cc',
52 'gesture_event_details.h',
53 'gestures/fling_curve.cc',
54 'gestures/fling_curve.h',
55 'gestures/gesture_configuration.cc',
56 'gestures/gesture_configuration.h',
57 'keycodes/keyboard_code_conversion.cc',
58 'keycodes/keyboard_code_conversion.h',
59 'keycodes/keyboard_code_conversion_android.cc',
60 'keycodes/keyboard_code_conversion_android.h',
61 'keycodes/keyboard_code_conversion_mac.h',
62 'keycodes/keyboard_code_conversion_mac.mm',
63 'keycodes/keyboard_code_conversion_win.cc',
64 'keycodes/keyboard_code_conversion_win.h',
65 'keycodes/keyboard_code_conversion_x.cc',
66 'keycodes/keyboard_code_conversion_x.h',
67 'keycodes/keyboard_codes.h',
68 'latency_info.cc',
69 'latency_info.h',
70 'touchscreen_device.cc',
71 'touchscreen_device.h',
72 'x/device_data_manager_x11.cc',
73 'x/device_data_manager_x11.h',
74 'x/device_list_cache_x.cc',
75 'x/device_list_cache_x.h',
76 'x/hotplug_event_handler_x11.cc',
77 'x/hotplug_event_handler_x11.h',
78 'x/keysym_to_unicode.cc',
79 'x/keysym_to_unicode.h',
80 'x/touch_factory_x11.cc',
81 'x/touch_factory_x11.h',
82 ],
83 'export_dependent_settings': [
84 '../../ui/gfx/gfx.gyp:gfx',
85 ],
86 'conditions': [
87 ['use_x11==1', {
88 'dependencies': [
89 '../../build/linux/system.gyp:x11',
90 '../gfx/x/gfx_x11.gyp:gfx_x11',
91 ],
92 }],
93 ],
94 },
95 {
96 # GN version: //ui/events
97 'target_name': 'events',
98 'type': '<(component)',
99 'dependencies': [
100 '<(DEPTH)/base/base.gyp:base',
101 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
102 '<(DEPTH)/skia/skia.gyp:skia',
103 '../gfx/gfx.gyp:gfx',
104 '../gfx/gfx.gyp:gfx_geometry',
105 'events_base',
106 'gesture_detection',
107 ],
108 'defines': [
109 'EVENTS_IMPLEMENTATION',
110 ],
111 'sources': [
112 # Note: sources list duplicated in GN build.
113 'cocoa/cocoa_event_utils.h',
114 'cocoa/cocoa_event_utils.mm',
115 'cocoa/events_mac.mm',
116 'event.cc',
117 'event.h',
118 'event_dispatcher.cc',
119 'event_dispatcher.h',
120 'event_handler.cc',
121 'event_handler.h',
122 'event_processor.cc',
123 'event_processor.h',
124 'event_rewriter.h',
125 'event_source.cc',
126 'event_source.h',
127 'event_target.cc',
128 'event_target.h',
129 'event_target_iterator.h',
130 'event_targeter.cc',
131 'event_targeter.h',
132 'event_utils.cc',
133 'event_utils.h',
134 'events_export.h',
135 'events_stub.cc',
136 'gestures/gesture_provider_aura.cc',
137 'gestures/gesture_provider_aura.h',
138 'gestures/gesture_recognizer.h',
139 'gestures/gesture_recognizer_impl.cc',
140 'gestures/gesture_recognizer_impl.h',
141 'gestures/gesture_recognizer_impl_mac.cc',
142 'gestures/gesture_types.h',
143 'gestures/motion_event_aura.cc',
144 'gestures/motion_event_aura.h',
145 'ozone/events_ozone.cc',
146 'win/events_win.cc',
147 'x/events_x.cc',
148 'linux/text_edit_command_auralinux.cc',
149 'linux/text_edit_command_auralinux.h',
150 'linux/text_edit_key_bindings_delegate_auralinux.cc',
151 'linux/text_edit_key_bindings_delegate_auralinux.h',
152 ],
153 'conditions': [
154 ['use_x11==1', {
155 'dependencies': [
156 '../../build/linux/system.gyp:x11',
157 ],
158 }],
159 ['use_aura==0', {
160 'sources!': [
161 'gestures/gesture_provider_aura.cc',
162 'gestures/gesture_provider_aura.h',
163 'gestures/gesture_recognizer.h',
164 'gestures/gesture_recognizer_impl.cc',
165 'gestures/gesture_recognizer_impl.h',
166 'gestures/gesture_types.h',
167 'gestures/motion_event_aura.cc',
168 'gestures/motion_event_aura.h',
169 ],
170 }],
171 # We explicitly enumerate the platforms we _do_ provide native cracking
172 # for here.
173 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1', {
174 'sources!': [
175 'events_stub.cc',
176 ],
177 }],
178 ['chromeos==1', {
179 'sources!': [
180 'linux/text_edit_command_auralinux.cc',
181 'linux/text_edit_command_auralinux.h',
182 'linux/text_edit_key_bindings_delegate_auralinux.cc',
183 'linux/text_edit_key_bindings_delegate_auralinux.h',
184 ],
185 }],
186 ],
187 },
188 {
189 # GN version: //ui/events:gesture_detection
190 'target_name': 'gesture_detection',
191 'type': '<(component)',
192 'dependencies': [
193 '<(DEPTH)/base/base.gyp:base',
194 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
195 '../gfx/gfx.gyp:gfx',
196 '../gfx/gfx.gyp:gfx_geometry',
197 'events_base',
198 ],
199 'defines': [
200 'GESTURE_DETECTION_IMPLEMENTATION',
201 ],
202 'sources': [
203 # Note: sources list duplicated in GN build.
204 'gesture_detection/bitset_32.h',
205 'gesture_detection/filtered_gesture_provider.cc',
206 'gesture_detection/filtered_gesture_provider.h',
207 'gesture_detection/gesture_config_helper.h',
208 'gesture_detection/gesture_config_helper_android.cc',
209 'gesture_detection/gesture_config_helper_aura.cc',
210 'gesture_detection/gesture_detection_export.h',
211 'gesture_detection/gesture_detector.cc',
212 'gesture_detection/gesture_detector.h',
213 'gesture_detection/gesture_event_data.cc',
214 'gesture_detection/gesture_event_data.h',
215 'gesture_detection/gesture_event_data_packet.cc',
216 'gesture_detection/gesture_event_data_packet.h',
217 'gesture_detection/gesture_listeners.cc',
218 'gesture_detection/gesture_listeners.h',
219 'gesture_detection/gesture_provider.cc',
220 'gesture_detection/gesture_provider.h',
221 'gesture_detection/gesture_touch_uma_histogram.cc',
222 'gesture_detection/gesture_touch_uma_histogram.h',
223 'gesture_detection/motion_event.cc',
224 'gesture_detection/motion_event.h',
225 'gesture_detection/motion_event_buffer.cc',
226 'gesture_detection/motion_event_buffer.h',
227 'gesture_detection/motion_event_generic.cc',
228 'gesture_detection/motion_event_generic.h',
229 'gesture_detection/scale_gesture_detector.cc',
230 'gesture_detection/scale_gesture_detector.h',
231 'gesture_detection/scale_gesture_listeners.cc',
232 'gesture_detection/scale_gesture_listeners.h',
233 'gesture_detection/snap_scroll_controller.cc',
234 'gesture_detection/snap_scroll_controller.h',
235 'gesture_detection/touch_disposition_gesture_filter.cc',
236 'gesture_detection/touch_disposition_gesture_filter.h',
237 'gesture_detection/velocity_tracker_state.cc',
238 'gesture_detection/velocity_tracker_state.h',
239 'gesture_detection/velocity_tracker.cc',
240 'gesture_detection/velocity_tracker.h',
241 ],
242 'conditions': [
243 ['use_aura!=1 and OS!="android"', {
244 'sources': [
245 'gesture_detection/gesture_config_helper.cc',
246 ],
247 }],
248 ],
249 },
250 {
251 # GN version: //ui/events:test_support
252 'target_name': 'events_test_support',
253 'type': 'static_library',
254 'dependencies': [
255 '<(DEPTH)/base/base.gyp:base',
256 '<(DEPTH)/skia/skia.gyp:skia',
257 '../gfx/gfx.gyp:gfx_geometry',
258 'events',
259 'events_base',
260 'gesture_detection',
261 'platform/events_platform.gyp:events_platform',
262 ],
263 'sources': [
264 # Note: sources list duplicated in GN build.
265 'test/cocoa_test_event_utils.h',
266 'test/cocoa_test_event_utils.mm',
267 'test/event_generator.cc',
268 'test/event_generator.h',
269 'test/events_test_utils.cc',
270 'test/events_test_utils.h',
271 'test/events_test_utils_x11.cc',
272 'test/events_test_utils_x11.h',
273 'test/mock_motion_event.cc',
274 'test/mock_motion_event.h',
275 'test/platform_event_waiter.cc',
276 'test/platform_event_waiter.h',
277 'test/test_event_handler.cc',
278 'test/test_event_handler.h',
279 'test/test_event_processor.cc',
280 'test/test_event_processor.h',
281 'test/test_event_target.cc',
282 'test/test_event_target.h',
283 ],
284 'conditions': [
285 ['OS=="ios"', {
286 # The cocoa files don't apply to iOS.
287 'sources/': [['exclude', 'cocoa']],
288 }],
289 ],
290 },
291 {
292 # GN version: //ui/events:events_unittests
293 'target_name': 'events_unittests',
294 'type': '<(gtest_target_type)',
295 'dependencies': [
296 '<(DEPTH)/base/base.gyp:base',
297 '<(DEPTH)/base/base.gyp:run_all_unittests',
298 '<(DEPTH)/base/base.gyp:test_support_base',
299 '<(DEPTH)/skia/skia.gyp:skia',
300 '<(DEPTH)/testing/gtest.gyp:gtest',
301 '../gfx/gfx.gyp:gfx',
302 '../gfx/gfx.gyp:gfx_geometry',
303 '../gfx/gfx.gyp:gfx_test_support',
304 'dom4_keycode_converter',
305 'events',
306 'events_base',
307 'events_test_support',
308 'gesture_detection',
309 'platform/events_platform.gyp:events_platform',
310 ],
311 'sources': [
312 # Note: sources list duplicated in GN build.
313 'android/scroller_unittest.cc',
314 'cocoa/events_mac_unittest.mm',
315 'event_dispatcher_unittest.cc',
316 'event_processor_unittest.cc',
317 'event_rewriter_unittest.cc',
318 'event_unittest.cc',
319 'gesture_detection/bitset_32_unittest.cc',
320 'gesture_detection/gesture_event_data_packet_unittest.cc',
321 'gesture_detection/gesture_provider_unittest.cc',
322 'gesture_detection/motion_event_buffer_unittest.cc',
323 'gesture_detection/motion_event_generic_unittest.cc',
324 'gesture_detection/touch_disposition_gesture_filter_unittest.cc',
325 'gesture_detection/velocity_tracker_unittest.cc',
326 'gestures/fling_curve_unittest.cc',
327 'gestures/gesture_provider_aura_unittest.cc',
328 'gestures/motion_event_aura_unittest.cc',
329 'keycodes/dom4/keycode_converter_unittest.cc',
330 'latency_info_unittest.cc',
331 'platform/platform_event_source_unittest.cc',
332 'x/events_x_unittest.cc',
333 ],
334 'conditions': [
335 ['use_x11==1', {
336 'dependencies': [
337 '../../build/linux/system.gyp:x11',
338 '../gfx/x/gfx_x11.gyp:gfx_x11',
339 ],
340 }],
341 ['use_ozone==1', {
342 'sources': [
343 'ozone/evdev/key_event_converter_evdev_unittest.cc',
344 'ozone/evdev/touch_event_converter_evdev_unittest.cc',
345 ],
346 'dependencies': [
347 'ozone/events_ozone.gyp:events_ozone',
348 'ozone/events_ozone.gyp:events_ozone_evdev',
349 ]
350 }],
351 ['use_aura==0', {
352 'sources!': [
353 'gestures/gesture_provider_aura_unittest.cc',
354 'gestures/motion_event_aura_unittest.cc',
355 ],
356 }],
357 ['OS=="linux" and use_allocator!="none"', {
358 'dependencies': [
359 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
360 ],
361 }],
362 # Exclude tests that rely on event_utils.h for platforms that do not
363 # provide native cracking, i.e., platforms that use events_stub.cc.
364 ['OS!="win" and use_x11!=1 and use_ozone!=1', {
365 'sources!': [
366 'event_unittest.cc',
367 ],
368 }],
369 ['OS == "android"', {
370 'dependencies': [
371 '../../testing/android/native_test.gyp:native_test_native_code',
372 ],
373 }],
374 ],
375 },
376 ],
377 'conditions': [
378 ['OS == "android"', {
379 'targets': [
380 {
381 'target_name': 'events_unittests_apk',
382 'type': 'none',
383 'dependencies': [
384 'events_unittests',
385 ],
386 'variables': {
387 'test_suite_name': 'events_unittests',
388 },
389 'includes': [ '../../build/apk_test.gypi' ],
390 },
391 ],
392 }],
393 ],
394 }
OLDNEW
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/gesture_detection/gesture_config_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698