Fix for browser_plugin_host_browsertest when embedder is not yet available.
[chromium-blink-merge.git] / ui / events / events.gyp
blobeb11794f97821e56e2a802eed36fe5dd5c86d055
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'events',
12       'type': '<(component)',
13       'dependencies': [
14         '<(DEPTH)/base/base.gyp:base',
15         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16         '<(DEPTH)/skia/skia.gyp:skia',
17         '../gfx/gfx.gyp:gfx',
18       ],
19       'defines': [
20         'EVENTS_IMPLEMENTATION',
21       ],
22       'sources': [
23         'cocoa/events_mac.mm',
24         'event.cc',
25         'event.h',
26         'event_constants.h',
27         'event_dispatcher.cc',
28         'event_dispatcher.h',
29         'event_handler.cc',
30         'event_handler.h',
31         'event_switches.cc',
32         'event_switches.h',
33         'event_target.cc',
34         'event_target.h',
35         'event_utils.cc',
36         'event_utils.h',
37         'events_export.h',
38         'gestures/gesture_configuration.cc',
39         'gestures/gesture_configuration.h',
40         'gestures/gesture_point.cc',
41         'gestures/gesture_point.h',
42         'gestures/gesture_recognizer.h',
43         'gestures/gesture_recognizer_impl.cc',
44         'gestures/gesture_recognizer_impl.h',
45         'gestures/gesture_sequence.cc',
46         'gestures/gesture_sequence.h',
47         'gestures/gesture_types.cc',
48         'gestures/gesture_types.h',
49         'gestures/gesture_util.cc',
50         'gestures/gesture_util.h',
51         'gestures/velocity_calculator.cc',
52         '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',
69         'ozone/evdev/event_factory.h',
70         'ozone/evdev/event_modifiers.cc',
71         'ozone/evdev/event_modifiers.h',
72         'ozone/evdev/key_event_converter.cc',
73         'ozone/evdev/key_event_converter.h',
74         'ozone/evdev/touch_event_converter.cc',
75         'ozone/evdev/touch_event_converter.h',
76         'ozone/event_converter_ozone.cc',
77         'ozone/event_converter_ozone.h',
78         'ozone/event_factory_ozone.cc',
79         'ozone/event_factory_ozone.h',
80         'ozone/events_ozone.cc',
81         'win/events_win.cc',
82         'x/device_data_manager.cc',
83         'x/device_data_manager.h',
84         'x/device_list_cache_x.cc',
85         'x/device_list_cache_x.h',
86         'x/events_x.cc',
87         'x/events_x_utils.cc',
88         'x/events_x_utils.h',
89         'x/touch_factory_x11.cc',
90         'x/touch_factory_x11.h',
91       ],
92       'conditions': [
93         ['use_aura==0 and toolkit_views==0', {
94           'sources/': [
95             ['exclude', '^gestures/*'],
96           ],
97           'sources!': [
98             'event.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           ],
113         }],
114         ['use_x11==1', {
115           'dependencies': [
116             '<(DEPTH)/build/linux/system.gyp:x11',
117           ],
118         }],
119         ['use_ozone_evdev==1', {
120           'defines': ['USE_OZONE_EVDEV=1'],
121         }],
122       ],
123     }
124   ],