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

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

Issue 2306743002: Nukes the gyp/gypi files in ui (Closed)
Patch Set: keep webui Created 4 years, 3 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/devices/x11/events_devices_x11.gyp ('k') | ui/events/events_unittests.gyp » ('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:dom_keycode_converter
12 'target_name': 'dom_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/dom/dom_code.h',
20 'keycodes/dom/dom_key.h',
21 'keycodes/dom/dom_key_data.inc',
22 'keycodes/dom/keycode_converter.cc',
23 'keycodes/dom/keycode_converter.h',
24 'keycodes/dom/keycode_converter_data.inc',
25 ],
26 },
27 {
28 # GN version: //ui/events:events_base
29 'target_name': 'events_base',
30 'type': '<(component)',
31 'dependencies': [
32 '<(DEPTH)/base/base.gyp:base',
33 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
34 '../gfx/gfx.gyp:gfx_geometry',
35 'dom_keycode_converter',
36 ],
37 'defines': [
38 'EVENTS_BASE_IMPLEMENTATION',
39 ],
40 'sources': [
41 # Note: sources list duplicated in GN build.
42 'android/scroller.cc',
43 'android/scroller.h',
44 'base_event_utils.cc',
45 'base_event_utils.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 '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_codes.h',
65 'latency_info.cc',
66 'latency_info.h',
67 ],
68 'export_dependent_settings': [
69 '../../ui/gfx/gfx.gyp:gfx_geometry',
70 ],
71 'conditions': [
72 ['use_x11==1', {
73 'dependencies': [
74 'keycodes/events_keycodes.gyp:keycodes_x11',
75 ],
76 }],
77 ],
78 },
79 {
80 # GN version: //ui/events
81 'target_name': 'events',
82 'type': '<(component)',
83 'dependencies': [
84 '<(DEPTH)/base/base.gyp:base',
85 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
86 '<(DEPTH)/skia/skia.gyp:skia',
87 '../display/display.gyp:display',
88 '../gfx/gfx.gyp:gfx',
89 '../gfx/gfx.gyp:gfx_geometry',
90 'dom_keycode_converter',
91 'events_base',
92 'gesture_detection',
93 ],
94 'defines': [
95 'EVENTS_IMPLEMENTATION',
96 ],
97 'sources': [
98 # Note: sources list duplicated in GN build.
99 'cocoa/cocoa_event_utils.h',
100 'cocoa/cocoa_event_utils.mm',
101 'cocoa/events_mac.mm',
102 'event.cc',
103 'event.h',
104 'event_dispatcher.cc',
105 'event_dispatcher.h',
106 'event_handler.cc',
107 'event_handler.h',
108 'event_processor.cc',
109 'event_processor.h',
110 'event_rewriter.h',
111 'event_source.cc',
112 'event_source.h',
113 'event_target.cc',
114 'event_target.h',
115 'event_target_iterator.h',
116 'event_targeter.h',
117 'event_utils.cc',
118 'event_utils.h',
119 'events_export.h',
120 'events_stub.cc',
121 'gestures/gesture_provider_aura.cc',
122 'gestures/gesture_provider_aura.h',
123 'gestures/gesture_recognizer.h',
124 'gestures/gesture_recognizer_impl.cc',
125 'gestures/gesture_recognizer_impl.h',
126 'gestures/gesture_recognizer_impl_mac.cc',
127 'gestures/gesture_types.h',
128 'gestures/motion_event_aura.cc',
129 'gestures/motion_event_aura.h',
130 'keycodes/platform_key_map_win.cc',
131 'keycodes/platform_key_map_win.h',
132 'null_event_targeter.cc',
133 'null_event_targeter.h',
134 'scoped_target_handler.cc',
135 'scoped_target_handler.h',
136 'ozone/events_ozone.cc',
137 'win/events_win.cc',
138 'win/system_event_state_lookup.cc',
139 'win/system_event_state_lookup.h',
140 'x/events_x.cc',
141 ],
142 'conditions': [
143 ['use_x11==1', {
144 'dependencies': [
145 '../../build/linux/system.gyp:x11',
146 '../gfx/x/gfx_x11.gyp:gfx_x11',
147 'devices/events_devices.gyp:events_devices',
148 'devices/x11/events_devices_x11.gyp:events_devices_x11',
149 'keycodes/events_keycodes.gyp:keycodes_x11',
150 'x/events_x.gyp:events_x',
151 ],
152 }],
153 ['use_aura==0', {
154 'sources!': [
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',
163 ],
164 }],
165 ['use_ozone==1 or (OS=="android" and use_aura==1)', {
166 'sources': [
167 'events_default.cc',
168 ],
169 }],
170 # We explicitly enumerate the platforms we _do_ provide native cracking
171 # for here.
172 ['OS=="win" or OS=="mac" or use_x11==1 or use_ozone==1 or (OS=="android" and use_aura==1)', {
173 'sources!': [
174 'events_stub.cc',
175 ],
176 }],
177 ['use_ozone==1', {
178 'dependencies': [
179 'ozone/events_ozone.gyp:events_ozone_layout',
180 ],
181 }],
182 ['OS=="android"', {
183 'sources': [
184 'android/motion_event_android.cc',
185 'android/motion_event_android.h',
186 'android/key_event_utils.cc',
187 'android/key_event_utils.h',
188 ],
189 'dependencies': [
190 'motionevent_jni_headers',
191 'keyevent_jni_headers',
192 ],
193 }],
194 ],
195 },
196 {
197 # GN version: //ui/events/gestures/blink
198 'target_name': 'gestures_blink',
199 'type': 'static_library',
200 'dependencies': [
201 '../../base/base.gyp:base',
202 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
203 '../gfx/gfx.gyp:gfx_geometry',
204 'events',
205 'gesture_detection',
206 ],
207 'sources': [
208 # Note: sources list duplicated in GN build.
209 'gestures/blink/web_gesture_curve_impl.cc',
210 'gestures/blink/web_gesture_curve_impl.h',
211 ],
212 },
213 {
214 # GN version: //ui/events:gesture_detection
215 'target_name': 'gesture_detection',
216 'type': '<(component)',
217 'dependencies': [
218 '<(DEPTH)/base/base.gyp:base',
219 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations',
220 '../display/display.gyp:display',
221 '../gfx/gfx.gyp:gfx',
222 '../gfx/gfx.gyp:gfx_geometry',
223 'events_base',
224 ],
225 'defines': [
226 'GESTURE_DETECTION_IMPLEMENTATION',
227 ],
228 'sources': [
229 # Note: sources list duplicated in GN build.
230 'gesture_detection/bitset_32.h',
231 'gesture_detection/filtered_gesture_provider.cc',
232 'gesture_detection/filtered_gesture_provider.h',
233 'gesture_detection/gesture_configuration.cc',
234 'gesture_detection/gesture_configuration.h',
235 'gesture_detection/gesture_configuration_android.cc',
236 'gesture_detection/gesture_configuration_aura.cc',
237 'gesture_detection/gesture_detection_export.h',
238 'gesture_detection/gesture_detector.cc',
239 'gesture_detection/gesture_detector.h',
240 'gesture_detection/gesture_event_data.cc',
241 'gesture_detection/gesture_event_data.h',
242 'gesture_detection/gesture_event_data_packet.cc',
243 'gesture_detection/gesture_event_data_packet.h',
244 'gesture_detection/gesture_listeners.cc',
245 'gesture_detection/gesture_listeners.h',
246 'gesture_detection/gesture_provider.cc',
247 'gesture_detection/gesture_provider.h',
248 'gesture_detection/gesture_provider_config_helper.cc',
249 'gesture_detection/gesture_provider_config_helper.h',
250 'gesture_detection/gesture_touch_uma_histogram.cc',
251 'gesture_detection/gesture_touch_uma_histogram.h',
252 'gesture_detection/motion_event.cc',
253 'gesture_detection/motion_event.h',
254 'gesture_detection/motion_event_buffer.cc',
255 'gesture_detection/motion_event_buffer.h',
256 'gesture_detection/motion_event_generic.cc',
257 'gesture_detection/motion_event_generic.h',
258 'gesture_detection/scale_gesture_detector.cc',
259 'gesture_detection/scale_gesture_detector.h',
260 'gesture_detection/scale_gesture_listeners.cc',
261 'gesture_detection/scale_gesture_listeners.h',
262 'gesture_detection/snap_scroll_controller.cc',
263 'gesture_detection/snap_scroll_controller.h',
264 'gesture_detection/touch_disposition_gesture_filter.cc',
265 'gesture_detection/touch_disposition_gesture_filter.h',
266 'gesture_detection/velocity_tracker.cc',
267 'gesture_detection/velocity_tracker.h',
268 'gesture_detection/velocity_tracker_state.cc',
269 'gesture_detection/velocity_tracker_state.h',
270 ],
271 'conditions': [
272 ['use_aura!=1 and OS!="android"', {
273 'sources': [
274 'gesture_detection/gesture_configuration_default.cc',
275 ],
276 }],
277 ],
278 },
279 {
280 # GN version: //ui/events/ipc:events_ipc
281 'target_name': 'events_ipc',
282 'type': '<(component)',
283 'dependencies': [
284 '<(DEPTH)/base/base.gyp:base',
285 '<(DEPTH)/ipc/ipc.gyp:ipc',
286 '../gfx/gfx.gyp:gfx_geometry',
287 '../gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
288 'events_base',
289 ],
290 'defines': [
291 'EVENTS_IPC_IMPLEMENTATION',
292 ],
293 'sources': [
294 'ipc/latency_info_param_traits.cc',
295 'ipc/latency_info_param_traits.h',
296 'ipc/latency_info_param_traits_macros.h',
297 ],
298 },
299 {
300 # GN version: //ui/events:test_support
301 'target_name': 'events_test_support',
302 'type': 'static_library',
303 'dependencies': [
304 '<(DEPTH)/base/base.gyp:base',
305 '<(DEPTH)/skia/skia.gyp:skia',
306 '../gfx/gfx.gyp:gfx',
307 '../gfx/gfx.gyp:gfx_geometry',
308 'events',
309 'events_base',
310 'gesture_detection',
311 'platform/events_platform.gyp:events_platform',
312 ],
313 'sources': [
314 # Note: sources list duplicated in GN build.
315 'test/cocoa_test_event_utils.h',
316 'test/cocoa_test_event_utils.mm',
317 'test/device_data_manager_test_api.h',
318 'test/event_generator.cc',
319 'test/event_generator.h',
320 'test/events_test_utils.cc',
321 'test/events_test_utils.h',
322 'test/events_test_utils_x11.cc',
323 'test/events_test_utils_x11.h',
324 'test/motion_event_test_utils.cc',
325 'test/motion_event_test_utils.h',
326 'test/platform_event_source_test_api.cc',
327 'test/platform_event_source_test_api.h',
328 'test/platform_event_waiter.cc',
329 'test/platform_event_waiter.h',
330 'test/test_event_handler.cc',
331 'test/test_event_handler.h',
332 'test/test_event_processor.cc',
333 'test/test_event_processor.h',
334 'test/test_event_target.cc',
335 'test/test_event_target.h',
336 'test/test_event_targeter.cc',
337 'test/test_event_targeter.h',
338 ],
339 'conditions': [
340 ['OS=="ios"', {
341 # The cocoa files don't apply to iOS.
342 'sources/': [['exclude', 'cocoa']],
343 }],
344 ['use_x11==1', {
345 'dependencies': [
346 'devices/x11/events_devices_x11.gyp:events_devices_x11',
347 'keycodes/events_keycodes.gyp:keycodes_x11',
348 ],
349 }],
350 ['use_x11==1', {
351 'dependencies': [
352 'x/events_x.gyp:events_x',
353 ],
354 }],
355 ['use_x11==1 or use_ozone==1', {
356 'sources' : [
357 'test/device_data_manager_test_api_impl.cc',
358 ],
359 'dependencies': [
360 'devices/events_devices.gyp:events_devices',
361 ],
362 }, { # else use_x11=1 or use_ozone=1
363 'sources' : [
364 'test/device_data_manager_test_api_stub.cc',
365 ]
366 }],
367 ],
368 },
369 ],
370 'conditions': [
371 ['OS == "android"', {
372 'targets': [
373 {
374 'target_name': 'motionevent_jni_headers',
375 'type': 'none',
376 'variables': {
377 'jni_gen_package': 'ui',
378 'input_java_class': 'android/view/MotionEvent.class',
379 },
380 'includes': [ '../../build/jar_file_jni_generator.gypi' ],
381 },
382 {
383 'target_name': 'keyevent_jni_headers',
384 'type': 'none',
385 'variables': {
386 'jni_gen_package': 'ui',
387 'input_java_class': 'android/view/KeyEvent.class',
388 },
389 'includes': [ '../../build/jar_file_jni_generator.gypi' ],
390 },
391 ],
392 }],
393 ],
394 }
OLDNEW
« no previous file with comments | « ui/events/devices/x11/events_devices_x11.gyp ('k') | ui/events/events_unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698