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 { |
| 11 'target_name': 'events_base', |
| 12 'type': '<(component)', |
| 13 'dependencies': [ |
| 14 '<(DEPTH)/base/base.gyp:base', |
| 15 ], |
| 16 'defines': [ |
| 17 'EVENTS_BASE_IMPLEMENTATION', |
| 18 ], |
| 19 'sources': [ |
| 20 'events_base_export.h', |
| 21 'event_switches.cc', |
| 22 'event_switches.h', |
| 23 'keycodes/keyboard_code_conversion.cc', |
| 24 'keycodes/keyboard_code_conversion.h', |
| 25 'keycodes/keyboard_code_conversion_android.cc', |
| 26 'keycodes/keyboard_code_conversion_android.h', |
| 27 'keycodes/keyboard_code_conversion_gtk.cc', |
| 28 'keycodes/keyboard_code_conversion_gtk.h', |
| 29 'keycodes/keyboard_code_conversion_mac.h', |
| 30 'keycodes/keyboard_code_conversion_mac.mm', |
| 31 'keycodes/keyboard_code_conversion_win.cc', |
| 32 'keycodes/keyboard_code_conversion_win.h', |
| 33 'keycodes/keyboard_code_conversion_x.cc', |
| 34 'keycodes/keyboard_code_conversion_x.h', |
| 35 'keycodes/keyboard_codes.h', |
| 36 'latency_info.cc', |
| 37 'latency_info.h', |
| 38 ], |
| 39 }, |
| 40 { |
11 'target_name': 'events', | 41 'target_name': 'events', |
12 'type': '<(component)', | 42 'type': '<(component)', |
13 'dependencies': [ | 43 'dependencies': [ |
14 '<(DEPTH)/base/base.gyp:base', | 44 '<(DEPTH)/base/base.gyp:base', |
15 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | |
16 '<(DEPTH)/skia/skia.gyp:skia', | |
17 '../gfx/gfx.gyp:gfx', | 45 '../gfx/gfx.gyp:gfx', |
| 46 'events_base', |
18 ], | 47 ], |
19 'defines': [ | 48 'defines': [ |
20 'EVENTS_IMPLEMENTATION', | 49 'EVENTS_IMPLEMENTATION', |
21 ], | 50 ], |
22 'sources': [ | 51 'sources': [ |
23 'cocoa/events_mac.mm', | |
24 'event.cc', | 52 'event.cc', |
25 'event.h', | 53 'event.h', |
26 'event_constants.h', | 54 'event_constants.h', |
27 'event_dispatcher.cc', | 55 'event_dispatcher.cc', |
28 'event_dispatcher.h', | 56 'event_dispatcher.h', |
29 'event_handler.cc', | 57 'event_handler.cc', |
30 'event_handler.h', | 58 'event_handler.h', |
31 'event_switches.cc', | |
32 'event_switches.h', | |
33 'event_target.cc', | 59 'event_target.cc', |
34 'event_target.h', | 60 'event_target.h', |
35 'event_utils.cc', | 61 'event_utils.cc', |
36 'event_utils.h', | 62 'event_utils.h', |
37 'events_export.h', | 63 'events_export.h', |
| 64 'events_stub.cc', |
38 'gestures/gesture_configuration.cc', | 65 'gestures/gesture_configuration.cc', |
39 'gestures/gesture_configuration.h', | 66 'gestures/gesture_configuration.h', |
40 'gestures/gesture_point.cc', | 67 'gestures/gesture_point.cc', |
41 'gestures/gesture_point.h', | 68 'gestures/gesture_point.h', |
42 'gestures/gesture_recognizer.h', | 69 'gestures/gesture_recognizer.h', |
43 'gestures/gesture_recognizer_impl.cc', | 70 'gestures/gesture_recognizer_impl.cc', |
44 'gestures/gesture_recognizer_impl.h', | 71 'gestures/gesture_recognizer_impl.h', |
45 'gestures/gesture_sequence.cc', | 72 'gestures/gesture_sequence.cc', |
46 'gestures/gesture_sequence.h', | 73 'gestures/gesture_sequence.h', |
47 'gestures/gesture_types.cc', | 74 'gestures/gesture_types.cc', |
48 'gestures/gesture_types.h', | 75 'gestures/gesture_types.h', |
49 'gestures/gesture_util.cc', | 76 'gestures/gesture_util.cc', |
50 'gestures/gesture_util.h', | 77 'gestures/gesture_util.h', |
51 'gestures/velocity_calculator.cc', | 78 'gestures/velocity_calculator.cc', |
52 'gestures/velocity_calculator.h', | 79 'gestures/velocity_calculator.h', |
53 'keycodes/keyboard_code_conversion.cc', | |
54 'keycodes/keyboard_code_conversion.h', | |
55 'keycodes/keyboard_code_conversion_android.cc', | |
56 'keycodes/keyboard_code_conversion_android.h', | |
57 'keycodes/keyboard_code_conversion_gtk.cc', | |
58 'keycodes/keyboard_code_conversion_gtk.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', | |
66 'latency_info.cc', | |
67 'latency_info.h', | |
68 'ozone/evdev/event_factory.cc', | 80 'ozone/evdev/event_factory.cc', |
69 'ozone/evdev/event_factory.h', | 81 'ozone/evdev/event_factory.h', |
70 'ozone/evdev/event_modifiers.cc', | 82 'ozone/evdev/event_modifiers.cc', |
71 'ozone/evdev/event_modifiers.h', | 83 'ozone/evdev/event_modifiers.h', |
72 'ozone/evdev/key_event_converter.cc', | 84 'ozone/evdev/key_event_converter.cc', |
73 'ozone/evdev/key_event_converter.h', | 85 'ozone/evdev/key_event_converter.h', |
74 'ozone/evdev/touch_event_converter.cc', | 86 'ozone/evdev/touch_event_converter.cc', |
75 'ozone/evdev/touch_event_converter.h', | 87 'ozone/evdev/touch_event_converter.h', |
76 'ozone/event_converter_ozone.cc', | 88 'ozone/event_converter_ozone.cc', |
77 'ozone/event_converter_ozone.h', | 89 'ozone/event_converter_ozone.h', |
78 'ozone/event_factory_ozone.cc', | 90 'ozone/event_factory_ozone.cc', |
79 'ozone/event_factory_ozone.h', | 91 'ozone/event_factory_ozone.h', |
80 'ozone/events_ozone.cc', | 92 'ozone/events_ozone.cc', |
81 'win/events_win.cc', | 93 'win/events_win.cc', |
82 'x/device_data_manager.cc', | 94 'x/device_data_manager.cc', |
83 'x/device_data_manager.h', | 95 'x/device_data_manager.h', |
84 'x/device_list_cache_x.cc', | 96 'x/device_list_cache_x.cc', |
85 'x/device_list_cache_x.h', | 97 'x/device_list_cache_x.h', |
86 'x/events_x.cc', | 98 'x/events_x.cc', |
87 'x/events_x_utils.cc', | 99 'x/events_x_utils.cc', |
88 'x/events_x_utils.h', | 100 'x/events_x_utils.h', |
89 'x/touch_factory_x11.cc', | 101 'x/touch_factory_x11.cc', |
90 'x/touch_factory_x11.h', | 102 'x/touch_factory_x11.h', |
91 ], | 103 ], |
92 'conditions': [ | 104 'conditions': [ |
93 ['use_aura==0 and toolkit_views==0', { | 105 # We explicitly enumerate the platforms we _do_ provide native cracking |
94 'sources/': [ | 106 # for here. |
95 ['exclude', '^gestures/*'], | 107 ['OS=="win" or use_x11==1 or use_ozone==1', { |
96 ], | |
97 'sources!': [ | 108 'sources!': [ |
98 'event.cc', | 109 'events_stub.cc', |
99 'event.h', | |
100 'event_dispatcher.cc', | |
101 'event_dispatcher.h', | |
102 'event_handler.cc', | |
103 'event_handler.h', | |
104 'event_target.cc', | |
105 'event_target.h', | |
106 ], | |
107 }], | |
108 ['OS=="android"', { | |
109 'sources!': [ | |
110 'event_utils.cc', | |
111 'keycodes/keyboard_code_conversion.cc', | |
112 ], | 110 ], |
113 }], | 111 }], |
114 ['use_x11==1', { | 112 ['use_x11==1', { |
115 'dependencies': [ | 113 'dependencies': [ |
116 '<(DEPTH)/build/linux/system.gyp:x11', | 114 '<(DEPTH)/build/linux/system.gyp:x11', |
117 ], | 115 ], |
118 }], | 116 }], |
119 ['use_ozone_evdev==1', { | 117 ['use_ozone_evdev==1', { |
120 'defines': ['USE_OZONE_EVDEV=1'], | 118 'defines': ['USE_OZONE_EVDEV=1'], |
121 }], | 119 }], |
122 ], | 120 ], |
123 } | 121 } |
124 ], | 122 ], |
125 } | 123 } |
OLD | NEW |