Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / events / ozone / events_ozone.gyp
blob37a3923abb5ca516f1d4172552ac775aeb18dd97
1 # Copyright 2014 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     'target_name': 'events_ozone',
11     'type': '<(component)',
12     'dependencies': [
13       '../../../base/base.gyp:base',
14       '../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
15     ],
16     'defines': [
17       'EVENTS_OZONE_IMPLEMENTATION',
18     ],
19     'sources': [
20       'chromeos/cursor_controller.cc',
21       'chromeos/cursor_controller.h',
22       'device/device_event.cc',
23       'device/device_event.h',
24       'device/device_event_observer.h',
25       'device/device_manager.cc',
26       'device/device_manager.h',
27       'device/device_manager_manual.cc',
28       'device/device_manager_manual.h',
29       'device/udev/device_manager_udev.cc',
30       'device/udev/device_manager_udev.h',
31       'events_ozone_export.h',
32     ],
33     'conditions': [
34       ['use_udev==0', {
35         'sources/': [
36           ['exclude', '_udev\\.(h|cc)$'],
37         ],
38       }],
39       ['use_ozone_evdev==1 and use_udev==1', {
40         'dependencies': [
41           '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
42         ],
43       }],
44     ],
45   }, {
46     'target_name': 'events_ozone_evdev',
47     'type': '<(component)',
48     'dependencies': [
49       '../../../base/base.gyp:base',
50       '../../gfx/gfx.gyp:gfx',
51       '../../ozone/ozone.gyp:ozone_base',
52       '../devices/events_devices.gyp:events_devices',
53       '../events.gyp:dom_keycode_converter',
54       '../events.gyp:events',
55       '../events.gyp:events_base',
56       '../platform/events_platform.gyp:events_platform',
57       'events_ozone',
58       'events_ozone_layout',
59     ],
60     'defines': [
61       'EVENTS_OZONE_EVDEV_IMPLEMENTATION',
62       'USE_EVDEV',
63     ],
64     'direct_dependent_settings': {
65       'defines': [
66         'USE_EVDEV',
67       ],
68     },
69     'sources': [
70       'evdev/device_event_dispatcher_evdev.cc',
71       'evdev/device_event_dispatcher_evdev.h',
72       'evdev/event_converter_evdev.cc',
73       'evdev/event_converter_evdev.h',
74       'evdev/event_converter_evdev_impl.cc',
75       'evdev/event_converter_evdev_impl.h',
76       'evdev/event_device_info.cc',
77       'evdev/event_device_info.h',
78       'evdev/event_factory_evdev.cc',
79       'evdev/event_factory_evdev.h',
80       'evdev/event_modifiers_evdev.cc',
81       'evdev/event_modifiers_evdev.h',
82       'evdev/event_thread_evdev.cc',
83       'evdev/event_thread_evdev.h',
84       'evdev/events_ozone_evdev_export.h',
85       'evdev/input_controller_evdev.cc',
86       'evdev/input_controller_evdev.h',
87       'evdev/input_device_factory_evdev.cc',
88       'evdev/input_device_factory_evdev.h',
89       'evdev/input_device_factory_evdev_proxy.cc',
90       'evdev/input_device_factory_evdev_proxy.h',
91       'evdev/input_device_settings_evdev.cc',
92       'evdev/input_device_settings_evdev.h',
93       'evdev/input_injector_evdev.cc',
94       'evdev/input_injector_evdev.h',
95       'evdev/keyboard_evdev.cc',
96       'evdev/keyboard_evdev.h',
97       'evdev/keyboard_util_evdev.cc',
98       'evdev/keyboard_util_evdev.h',
99       'evdev/libgestures_glue/event_reader_libevdev_cros.cc',
100       'evdev/libgestures_glue/event_reader_libevdev_cros.h',
101       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc',
102       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h',
103       'evdev/libgestures_glue/gesture_feedback.cc',
104       'evdev/libgestures_glue/gesture_feedback.h',
105       'evdev/libgestures_glue/gesture_logging.cc',
106       'evdev/libgestures_glue/gesture_logging.h',
107       'evdev/libgestures_glue/gesture_property_provider.cc',
108       'evdev/libgestures_glue/gesture_property_provider.h',
109       'evdev/libgestures_glue/gesture_timer_provider.cc',
110       'evdev/libgestures_glue/gesture_timer_provider.h',
111       'evdev/mouse_button_map_evdev.cc',
112       'evdev/mouse_button_map_evdev.h',
113       'evdev/tablet_event_converter_evdev.cc',
114       'evdev/tablet_event_converter_evdev.h',
115       'evdev/touch_evdev_types.cc',
116       'evdev/touch_evdev_types.h',
117       'evdev/touch_evdev_debug_buffer.h',
118       'evdev/touch_evdev_debug_buffer.cc',
119       'evdev/touch_event_converter_evdev.cc',
120       'evdev/touch_event_converter_evdev.h',
121       'evdev/touch_noise/far_apart_taps_touch_noise_filter.cc',
122       'evdev/touch_noise/far_apart_taps_touch_noise_filter.h',
123       'evdev/touch_noise/horizontally_aligned_touch_noise_filter.cc',
124       'evdev/touch_noise/horizontally_aligned_touch_noise_filter.h',
125       'evdev/touch_noise/single_position_touch_noise_filter.cc',
126       'evdev/touch_noise/single_position_touch_noise_filter.h',
127       'evdev/touch_noise/touch_noise_filter.h',
128       'evdev/touch_noise/touch_noise_finder.cc',
129       'evdev/touch_noise/touch_noise_finder.h',
130     ],
131     'conditions': [
132       ['use_ozone_evdev==1 and use_evdev_gestures==1', {
133         'dependencies': [
134           '<(DEPTH)/build/linux/system.gyp:libgestures',
135           '<(DEPTH)/build/linux/system.gyp:libevdev-cros',
136         ],
137         'defines': [
138           'USE_EVDEV_GESTURES',
139         ],
140         'direct_dependent_settings': {
141           'defines': [
142             'USE_EVDEV_GESTURES',
143           ],
144         },
145       }, {
146         'sources/': [
147           ['exclude', '^evdev/libgestures_glue/'],
148         ],
149       }],
150       ['use_ozone_evdev==1', {
151         'defines': ['USE_OZONE_EVDEV=1'],
152       }],
153     ],
154   }, {
155     'target_name': 'events_ozone_layout',
156     'type': '<(component)',
157     'dependencies': [
158       '../../../base/base.gyp:base',
159       '../events.gyp:dom_keycode_converter',
160       '../events.gyp:events_base',
161     ],
162     'defines': [
163       'EVENTS_OZONE_LAYOUT_IMPLEMENTATION',
164     ],
165     'sources': [
166       'layout/events_ozone_layout_export.h',
167       'layout/keyboard_layout_engine.h',
168       'layout/keyboard_layout_engine_manager.cc',
169       'layout/keyboard_layout_engine_manager.h',
170       'layout/layout_util.cc',
171       'layout/layout_util.h',
172       'layout/no/no_keyboard_layout_engine.cc',
173       'layout/no/no_keyboard_layout_engine.h',
174       'layout/stub/stub_keyboard_layout_engine.cc',
175       'layout/stub/stub_keyboard_layout_engine.h',
176     ],
177     'conditions': [
178       ['use_xkbcommon==1', {
179         'dependencies': [
180           '../../../build/linux/system.gyp:xkbcommon',
181         ],
182         'defines': [
183           'USE_XKBCOMMON',
184         ],
185         'direct_dependent_settings': {
186           'defines': [
187             'USE_XKBCOMMON',
188           ],
189         },
190         'sources': [
191           'layout/xkb/scoped_xkb.h',
192           'layout/xkb/xkb.h',
193           'layout/xkb/xkb_evdev_codes.cc',
194           'layout/xkb/xkb_evdev_codes.h',
195           'layout/xkb/xkb_key_code_converter.h',
196           'layout/xkb/xkb_keyboard_code_conversion.cc',
197           'layout/xkb/xkb_keyboard_code_conversion.h',
198           'layout/xkb/xkb_keyboard_layout_engine.cc',
199           'layout/xkb/xkb_keyboard_layout_engine.h',
200           'layout/xkb/xkb_keysym.h',
201         ],
202       }],
203     ],
204   }]