base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / events / ozone / events_ozone.gyp
blob2e60a8ec9c942b60b1268f51a8f653cd47f14338
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:dom4_keycode_converter',
54       '../platform/events_platform.gyp:events_platform',
55       'events_ozone',
56       'events_ozone_layout',
57     ],
58     'defines': [
59       'EVENTS_OZONE_EVDEV_IMPLEMENTATION',
60       'USE_EVDEV',
61     ],
62     'direct_dependent_settings': {
63       'defines': [
64         'USE_EVDEV',
65       ],
66     },
67     'sources': [
68       'evdev/libgestures_glue/event_reader_libevdev_cros.cc',
69       'evdev/libgestures_glue/event_reader_libevdev_cros.h',
70       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc',
71       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h',
72       'evdev/libgestures_glue/gesture_logging.cc',
73       'evdev/libgestures_glue/gesture_logging.h',
74       'evdev/libgestures_glue/gesture_property_provider.cc',
75       'evdev/libgestures_glue/gesture_property_provider.h',
76       'evdev/libgestures_glue/gesture_timer_provider.cc',
77       'evdev/libgestures_glue/gesture_timer_provider.h',
78       'evdev/event_converter_evdev.cc',
79       'evdev/event_converter_evdev.h',
80       'evdev/event_converter_evdev_impl.cc',
81       'evdev/event_converter_evdev_impl.h',
82       'evdev/event_device_info.cc',
83       'evdev/event_device_info.h',
84       'evdev/event_factory_evdev.cc',
85       'evdev/event_factory_evdev.h',
86       'evdev/event_modifiers_evdev.cc',
87       'evdev/event_modifiers_evdev.h',
88       'evdev/events_ozone_evdev_export.h',
89       'evdev/input_controller_evdev.cc',
90       'evdev/input_controller_evdev.h',
91       'evdev/input_injector_evdev.cc',
92       'evdev/input_injector_evdev.h',
93       'evdev/keyboard_evdev.cc',
94       'evdev/keyboard_evdev.h',
95       'evdev/mouse_button_map_evdev.cc',
96       'evdev/mouse_button_map_evdev.h',
97       'evdev/tablet_event_converter_evdev.cc',
98       'evdev/tablet_event_converter_evdev.h',
99       'evdev/touch_event_converter_evdev.cc',
100       'evdev/touch_event_converter_evdev.h',
101     ],
102     'conditions': [
103       ['use_ozone_evdev==1 and use_evdev_gestures==1', {
104         'dependencies': [
105           '<(DEPTH)/build/linux/system.gyp:libgestures',
106           '<(DEPTH)/build/linux/system.gyp:libevdev-cros',
107         ],
108         'defines': [
109           'USE_EVDEV_GESTURES',
110         ],
111         'direct_dependent_settings': {
112           'defines': [
113             'USE_EVDEV_GESTURES',
114           ],
115         },
116       }, {
117         'sources/': [
118           ['exclude', '^evdev/libgestures_glue/'],
119         ],
120       }],
121       ['use_ozone_evdev==1', {
122         'defines': ['USE_OZONE_EVDEV=1'],
123       }],
124     ],
125   }, {
126     'target_name': 'events_ozone_layout',
127     'type': '<(component)',
128     'dependencies': [
129       '../../../base/base.gyp:base',
130       '../events.gyp:dom4_keycode_converter',
131       '../events.gyp:events_base',
132     ],
133     'defines': [
134       'EVENTS_OZONE_LAYOUT_IMPLEMENTATION',
135     ],
136     'sources': [
137       'layout/events_ozone_layout_export.h',
138       'layout/keyboard_layout_engine.h',
139       'layout/keyboard_layout_engine_manager.cc',
140       'layout/keyboard_layout_engine_manager.h',
141       'layout/layout_util.cc',
142       'layout/layout_util.h',
143       'layout/no/no_keyboard_layout_engine.cc',
144       'layout/no/no_keyboard_layout_engine.h',
145       'layout/stub/stub_keyboard_layout_engine.cc',
146       'layout/stub/stub_keyboard_layout_engine.h',
147     ],
148     'conditions': [
149       ['use_xkbcommon==1', {
150         'dependencies': [
151           '../../../build/linux/system.gyp:xkbcommon',
152         ],
153         'defines': [
154           'USE_XKBCOMMON',
155         ],
156         'direct_dependent_settings': {
157           'defines': [
158             'USE_XKBCOMMON',
159           ],
160         },
161         'sources': [
162           'layout/xkb/xkb.h',
163           'layout/xkb/xkb_evdev_codes.cc',
164           'layout/xkb/xkb_evdev_codes.h',
165           'layout/xkb/xkb_key_code_converter.h',
166           'layout/xkb/xkb_keyboard_code_conversion.cc',
167           'layout/xkb/xkb_keyboard_code_conversion.h',
168           'layout/xkb/xkb_keyboard_layout_engine.cc',
169           'layout/xkb/xkb_keyboard_layout_engine.h',
170           'layout/xkb/xkb_keysym.h',
171           'layout/xkb/scoped_xkb.h',
172         ],
173       }],
174     ],
175   }]