OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 21 matching lines...) Expand all Loading... | |
32 'defines': [ | 32 'defines': [ |
33 'EVENTS_BASE_IMPLEMENTATION', | 33 'EVENTS_BASE_IMPLEMENTATION', |
34 ], | 34 ], |
35 'sources': [ | 35 'sources': [ |
36 'event_constants.h', | 36 'event_constants.h', |
37 'event_switches.cc', | 37 'event_switches.cc', |
38 'event_switches.h', | 38 'event_switches.h', |
39 'events_base_export.h', | 39 'events_base_export.h', |
40 'gesture_event_details.cc', | 40 'gesture_event_details.cc', |
41 'gesture_event_details.h', | 41 'gesture_event_details.h', |
42 'gestures/gesture_configuration.cc', | |
43 'gestures/gesture_configuration.h', | |
42 'keycodes/keyboard_code_conversion.cc', | 44 'keycodes/keyboard_code_conversion.cc', |
43 'keycodes/keyboard_code_conversion.h', | 45 'keycodes/keyboard_code_conversion.h', |
44 'keycodes/keyboard_code_conversion_android.cc', | 46 'keycodes/keyboard_code_conversion_android.cc', |
45 'keycodes/keyboard_code_conversion_android.h', | 47 'keycodes/keyboard_code_conversion_android.h', |
46 'keycodes/keyboard_code_conversion_mac.h', | 48 'keycodes/keyboard_code_conversion_mac.h', |
47 'keycodes/keyboard_code_conversion_mac.mm', | 49 'keycodes/keyboard_code_conversion_mac.mm', |
48 'keycodes/keyboard_code_conversion_win.cc', | 50 'keycodes/keyboard_code_conversion_win.cc', |
49 'keycodes/keyboard_code_conversion_win.h', | 51 'keycodes/keyboard_code_conversion_win.h', |
50 'keycodes/keyboard_code_conversion_x.cc', | 52 'keycodes/keyboard_code_conversion_x.cc', |
51 'keycodes/keyboard_code_conversion_x.h', | 53 'keycodes/keyboard_code_conversion_x.h', |
(...skipping 19 matching lines...) Expand all Loading... | |
71 { | 73 { |
72 'target_name': 'events', | 74 'target_name': 'events', |
73 'type': '<(component)', | 75 'type': '<(component)', |
74 'dependencies': [ | 76 'dependencies': [ |
75 '<(DEPTH)/base/base.gyp:base', | 77 '<(DEPTH)/base/base.gyp:base', |
76 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations', | 78 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d ynamic_annotations', |
77 '<(DEPTH)/skia/skia.gyp:skia', | 79 '<(DEPTH)/skia/skia.gyp:skia', |
78 '../gfx/gfx.gyp:gfx', | 80 '../gfx/gfx.gyp:gfx', |
79 '../gfx/gfx.gyp:gfx_geometry', | 81 '../gfx/gfx.gyp:gfx_geometry', |
80 'events_base', | 82 'events_base', |
83 'gesture_detection', | |
81 ], | 84 ], |
82 'defines': [ | 85 'defines': [ |
83 'EVENTS_IMPLEMENTATION', | 86 'EVENTS_IMPLEMENTATION', |
84 ], | 87 ], |
85 'sources': [ | 88 'sources': [ |
86 'cocoa/cocoa_event_utils.h', | 89 'cocoa/cocoa_event_utils.h', |
87 'cocoa/cocoa_event_utils.mm', | 90 'cocoa/cocoa_event_utils.mm', |
88 'cocoa/events_mac.mm', | 91 'cocoa/events_mac.mm', |
89 'event.cc', | 92 'event.cc', |
90 'event.h', | 93 'event.h', |
91 'event_dispatcher.cc', | 94 'event_dispatcher.cc', |
92 'event_dispatcher.h', | 95 'event_dispatcher.h', |
93 'event_handler.cc', | 96 'event_handler.cc', |
94 'event_handler.h', | 97 'event_handler.h', |
95 'event_processor.cc', | 98 'event_processor.cc', |
96 'event_processor.h', | 99 'event_processor.h', |
97 'event_rewriter.h', | 100 'event_rewriter.h', |
98 'event_source.cc', | 101 'event_source.cc', |
99 'event_source.h', | 102 'event_source.h', |
100 'event_target.cc', | 103 'event_target.cc', |
101 'event_target.h', | 104 'event_target.h', |
102 'event_target_iterator.h', | 105 'event_target_iterator.h', |
103 'event_targeter.cc', | 106 'event_targeter.cc', |
104 'event_targeter.h', | 107 'event_targeter.h', |
105 'event_utils.cc', | 108 'event_utils.cc', |
106 'event_utils.h', | 109 'event_utils.h', |
107 'events_export.h', | 110 'events_export.h', |
108 'events_stub.cc', | 111 'events_stub.cc', |
109 'gestures/gesture_configuration.cc', | |
110 'gestures/gesture_configuration.h', | |
111 'gestures/gesture_point.cc', | 112 'gestures/gesture_point.cc', |
112 'gestures/gesture_point.h', | 113 'gestures/gesture_point.h', |
114 'gestures/gesture_provider_aura.cc', | |
115 'gestures/gesture_provider_aura.h', | |
113 'gestures/gesture_recognizer.h', | 116 'gestures/gesture_recognizer.h', |
114 'gestures/gesture_recognizer_impl.cc', | 117 'gestures/gesture_recognizer_impl.cc', |
115 'gestures/gesture_recognizer_impl.h', | 118 'gestures/gesture_recognizer_impl.h', |
116 'gestures/gesture_sequence.cc', | 119 'gestures/gesture_sequence.cc', |
117 'gestures/gesture_sequence.h', | 120 'gestures/gesture_sequence.h', |
118 'gestures/gesture_types.h', | 121 'gestures/gesture_types.h', |
122 'gestures/motion_event_aura.cc', | |
123 'gestures/motion_event_aura.h', | |
119 'gestures/velocity_calculator.cc', | 124 'gestures/velocity_calculator.cc', |
120 'gestures/velocity_calculator.h', | 125 'gestures/velocity_calculator.h', |
121 'ozone/device/device_event.cc', | 126 'ozone/device/device_event.cc', |
122 'ozone/device/device_event.h', | 127 'ozone/device/device_event.h', |
123 'ozone/device/device_event_observer.h', | 128 'ozone/device/device_event_observer.h', |
124 'ozone/device/device_manager.cc', | 129 'ozone/device/device_manager.cc', |
125 'ozone/device/device_manager.h', | 130 'ozone/device/device_manager.h', |
126 'ozone/device/device_manager_manual.cc', | 131 'ozone/device/device_manager_manual.cc', |
127 'ozone/device/device_manager_manual.h', | 132 'ozone/device/device_manager_manual.h', |
128 'ozone/device/udev/device_manager_udev.cc', | 133 'ozone/device/udev/device_manager_udev.cc', |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 '../gfx/gfx.gyp:gfx_geometry', | 251 '../gfx/gfx.gyp:gfx_geometry', |
247 'events_base', | 252 'events_base', |
248 ], | 253 ], |
249 'defines': [ | 254 'defines': [ |
250 'GESTURE_DETECTION_IMPLEMENTATION', | 255 'GESTURE_DETECTION_IMPLEMENTATION', |
251 ], | 256 ], |
252 'sources': [ | 257 'sources': [ |
253 'gesture_detection/bitset_32.h', | 258 'gesture_detection/bitset_32.h', |
254 'gesture_detection/filtered_gesture_provider.cc', | 259 'gesture_detection/filtered_gesture_provider.cc', |
255 'gesture_detection/filtered_gesture_provider.h', | 260 'gesture_detection/filtered_gesture_provider.h', |
261 'gesture_detection/gesture_config_helper.h', | |
262 'gesture_detection/gesture_config_helper_android.cc', | |
263 'gesture_detection/gesture_config_helper_aura.cc', | |
256 'gesture_detection/gesture_detection_export.h', | 264 'gesture_detection/gesture_detection_export.h', |
257 'gesture_detection/gesture_detector.cc', | 265 'gesture_detection/gesture_detector.cc', |
258 'gesture_detection/gesture_detector.h', | 266 'gesture_detection/gesture_detector.h', |
259 'gesture_detection/gesture_event_data.cc', | 267 'gesture_detection/gesture_event_data.cc', |
260 'gesture_detection/gesture_event_data.h', | 268 'gesture_detection/gesture_event_data.h', |
261 'gesture_detection/gesture_event_data_packet.cc', | 269 'gesture_detection/gesture_event_data_packet.cc', |
262 'gesture_detection/gesture_event_data_packet.h', | 270 'gesture_detection/gesture_event_data_packet.h', |
263 'gesture_detection/gesture_config_helper.h', | |
264 'gesture_detection/gesture_config_helper_aura.cc', | |
265 'gesture_detection/gesture_config_helper_android.cc', | |
266 'gesture_detection/gesture_provider.cc', | 271 'gesture_detection/gesture_provider.cc', |
267 'gesture_detection/gesture_provider.h', | 272 'gesture_detection/gesture_provider.h', |
268 'gesture_detection/motion_event.h', | 273 'gesture_detection/motion_event.h', |
269 'gesture_detection/scale_gesture_detector.cc', | 274 'gesture_detection/scale_gesture_detector.cc', |
270 'gesture_detection/scale_gesture_detector.h', | 275 'gesture_detection/scale_gesture_detector.h', |
271 'gesture_detection/snap_scroll_controller.cc', | 276 'gesture_detection/snap_scroll_controller.cc', |
272 'gesture_detection/snap_scroll_controller.h', | 277 'gesture_detection/snap_scroll_controller.h', |
273 'gesture_detection/touch_disposition_gesture_filter.cc', | 278 'gesture_detection/touch_disposition_gesture_filter.cc', |
274 'gesture_detection/touch_disposition_gesture_filter.h', | 279 'gesture_detection/touch_disposition_gesture_filter.h', |
275 'gesture_detection/velocity_tracker_state.cc', | 280 'gesture_detection/velocity_tracker_state.cc', |
276 'gesture_detection/velocity_tracker_state.h', | 281 'gesture_detection/velocity_tracker_state.h', |
277 'gesture_detection/velocity_tracker.cc', | 282 'gesture_detection/velocity_tracker.cc', |
278 'gesture_detection/velocity_tracker.h', | 283 'gesture_detection/velocity_tracker.h', |
279 ], | 284 ], |
280 'conditions': [ | 285 'conditions': [ |
281 ['use_aura==1', { | |
282 'dependencies': [ | |
283 'events' | |
284 ], | |
285 }], | |
286 ['use_aura!=1 and OS!="android"', { | 286 ['use_aura!=1 and OS!="android"', { |
287 'sources': [ | 287 'sources': [ |
288 'gesture_detection/gesture_config_helper.cc', | 288 'gesture_detection/gesture_config_helper.cc', |
289 ], | 289 ], |
290 }], | 290 }], |
291 ], | 291 ], |
292 }, | 292 }, |
293 { | 293 { |
294 'target_name': 'events_test_support', | 294 'target_name': 'events_test_support', |
295 'type': 'static_library', | 295 'type': 'static_library', |
(...skipping 24 matching lines...) Expand all Loading... | |
320 '../gfx/gfx.gyp:gfx_x11', | 320 '../gfx/gfx.gyp:gfx_x11', |
321 ], | 321 ], |
322 }], | 322 }], |
323 ['OS=="ios"', { | 323 ['OS=="ios"', { |
324 # The cocoa files don't apply to iOS. | 324 # The cocoa files don't apply to iOS. |
325 'sources/': [['exclude', 'cocoa']], | 325 'sources/': [['exclude', 'cocoa']], |
326 }], | 326 }], |
327 ], | 327 ], |
328 }, | 328 }, |
329 { | 329 { |
330 'target_name': 'events_tests', | |
tdresser
2014/05/05 18:56:06
I could split out events_base_tests and gesture_de
| |
331 'type': '<(component)', | |
332 'dependencies': [ | |
333 '<(DEPTH)/base/base.gyp:base', | |
334 '<(DEPTH)/testing/gtest.gyp:gtest', | |
335 'events', | |
336 'events_test_support', | |
337 ], | |
338 'sources': [ | |
339 'event_dispatcher_unittest.cc', | |
340 'event_processor_unittest.cc', | |
341 'event_rewriter_unittest.cc', | |
342 'event_unittest.cc', | |
343 'gestures/motion_event_aura_unittest.cc', | |
344 'gestures/velocity_calculator_unittest.cc', | |
345 'keycodes/dom4/keycode_converter_unittest.cc', | |
346 'platform/platform_event_source_unittest.cc', | |
347 'x/events_x_unittest.cc', | |
348 ], | |
349 }, | |
350 { | |
330 'target_name': 'events_unittests', | 351 'target_name': 'events_unittests', |
331 'type': '<(gtest_target_type)', | 352 'type': '<(gtest_target_type)', |
332 'dependencies': [ | 353 'dependencies': [ |
333 '<(DEPTH)/base/base.gyp:base', | 354 '<(DEPTH)/base/base.gyp:base', |
334 '<(DEPTH)/base/base.gyp:run_all_unittests', | 355 '<(DEPTH)/base/base.gyp:run_all_unittests', |
335 '<(DEPTH)/base/base.gyp:test_support_base', | 356 '<(DEPTH)/base/base.gyp:test_support_base', |
336 '<(DEPTH)/testing/gtest.gyp:gtest', | 357 '<(DEPTH)/testing/gtest.gyp:gtest', |
337 '../gfx/gfx.gyp:gfx_geometry', | 358 '../gfx/gfx.gyp:gfx_geometry', |
338 '../gfx/gfx.gyp:gfx_test_support', | 359 '../gfx/gfx.gyp:gfx_test_support', |
339 'dom4_keycode_converter', | 360 'dom4_keycode_converter', |
340 'events', | |
341 'events_base', | 361 'events_base', |
342 'events_test_support', | 362 'gesture_detection', |
343 'gesture_detection' | 363 'events_tests', |
344 ], | 364 ], |
345 'sources': [ | 365 'sources': [ |
346 'cocoa/events_mac_unittest.mm', | 366 'cocoa/events_mac_unittest.mm', |
347 'event_dispatcher_unittest.cc', | |
348 'event_processor_unittest.cc', | |
349 'event_rewriter_unittest.cc', | |
350 'event_unittest.cc', | |
351 'gestures/velocity_calculator_unittest.cc', | |
352 'gesture_detection/bitset_32_unittest.cc', | 367 'gesture_detection/bitset_32_unittest.cc', |
353 'gesture_detection/gesture_provider_unittest.cc', | 368 'gesture_detection/gesture_provider_unittest.cc', |
369 'gesture_detection/mock_motion_event.cc', | |
354 'gesture_detection/mock_motion_event.h', | 370 'gesture_detection/mock_motion_event.h', |
355 'gesture_detection/mock_motion_event.cc', | 371 'gesture_detection/touch_disposition_gesture_filter_unittest.cc', |
356 'gesture_detection/velocity_tracker_unittest.cc', | 372 'gesture_detection/velocity_tracker_unittest.cc', |
357 'gesture_detection/touch_disposition_gesture_filter_unittest.cc', | |
358 'keycodes/dom4/keycode_converter_unittest.cc', | |
359 'latency_info_unittest.cc', | 373 'latency_info_unittest.cc', |
360 'ozone/evdev/key_event_converter_evdev_unittest.cc', | 374 'ozone/evdev/key_event_converter_evdev_unittest.cc', |
361 'ozone/evdev/touch_event_converter_evdev_unittest.cc', | 375 'ozone/evdev/touch_event_converter_evdev_unittest.cc', |
362 'platform/platform_event_source_unittest.cc', | |
363 'x/events_x_unittest.cc', | |
364 ], | 376 ], |
365 'conditions': [ | 377 'conditions': [ |
366 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 378 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
367 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tc malloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { | 379 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tc malloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { |
368 'dependencies': [ | 380 'dependencies': [ |
369 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | 381 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
370 ], | 382 ], |
371 }], | 383 }], |
372 # Exclude tests that rely on event_utils.h for platforms that do not | 384 # Exclude tests that rely on event_utils.h for platforms that do not |
373 # provide native cracking, i.e., platforms that use events_stub.cc. | 385 # provide native cracking, i.e., platforms that use events_stub.cc. |
374 ['OS!="win" and use_x11!=1 and use_ozone!=1', { | 386 ['OS!="win" and use_x11!=1 and use_ozone!=1', { |
375 'sources!': [ | 387 'sources!': [ |
376 'event_unittest.cc', | 388 'event_unittest.cc', |
377 ], | 389 ], |
378 }], | 390 }], |
379 ['OS == "android" and gtest_target_type == "shared_library"', { | 391 ['OS == "android" and gtest_target_type == "shared_library"', { |
380 'dependencies': [ | 392 'dependencies': [ |
381 '../../testing/android/native_test.gyp:native_test_native_code', | 393 '../../testing/android/native_test.gyp:native_test_native_code', |
382 ], | 394 ], |
383 }], | 395 }], |
396 ['OS == "android"', { | |
397 'dependencies!': [ | |
398 'events_tests', | |
399 ], | |
400 }], | |
384 ], | 401 ], |
385 }, | 402 }, |
386 ], | 403 ], |
387 'conditions': [ | 404 'conditions': [ |
388 # Special target to wrap a gtest_target_type==shared_library | 405 # Special target to wrap a gtest_target_type==shared_library |
389 # ui_unittests into an android apk for execution. | 406 # ui_unittests into an android apk for execution. |
390 # See base.gyp for TODO(jrg)s about this strategy. | 407 # See base.gyp for TODO(jrg)s about this strategy. |
391 ['OS == "android" and gtest_target_type == "shared_library"', { | 408 ['OS == "android" and gtest_target_type == "shared_library"', { |
392 'targets': [ | 409 'targets': [ |
393 { | 410 { |
394 'target_name': 'events_unittests_apk', | 411 'target_name': 'events_unittests_apk', |
395 'type': 'none', | 412 'type': 'none', |
396 'dependencies': [ | 413 'dependencies': [ |
397 'events_unittests', | 414 'events_unittests', |
398 ], | 415 ], |
399 'variables': { | 416 'variables': { |
400 'test_suite_name': 'events_unittests', | 417 'test_suite_name': 'events_unittests', |
401 }, | 418 }, |
402 'includes': [ '../../build/apk_test.gypi' ], | 419 'includes': [ '../../build/apk_test.gypi' ], |
403 }, | 420 }, |
404 ], | 421 ], |
405 }], | 422 }], |
406 ], | 423 ], |
407 } | 424 } |
OLD | NEW |