Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / events / ozone / events_ozone.gyp
blob1c88263941111b17d63934989303c6363c74a5f6
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     ],
15     'defines': [
16       'EVENTS_OZONE_IMPLEMENTATION',
17     ],
18     'sources': [
19       'device/device_event.cc',
20       'device/device_event.h',
21       'device/device_event_observer.h',
22       'device/device_manager.cc',
23       'device/device_manager.h',
24       'device/device_manager_manual.cc',
25       'device/device_manager_manual.h',
26       'device/udev/device_manager_udev.cc',
27       'device/udev/device_manager_udev.h',
28       'events_ozone_export.h',
29     ],
30     'conditions': [
31       ['use_udev==0', {
32         'sources/': [
33           ['exclude', '_udev\\.(h|cc)$'],
34         ],
35       }],
36       ['use_ozone_evdev==1 and use_udev==1', {
37         'dependencies': [
38           '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
39         ],
40       }],
41     ],
42   }, {
43     'target_name': 'events_ozone_evdev',
44     'type': '<(component)',
45     'dependencies': [
46       '../../../base/base.gyp:base',
47       '../../gfx/gfx.gyp:gfx',
48       '../../ozone/ozone.gyp:ozone_base',
49       '../events.gyp:dom4_keycode_converter',
50       '../platform/events_platform.gyp:events_platform',
51       'events_ozone',
52     ],
53     'defines': [
54       'EVENTS_OZONE_EVDEV_IMPLEMENTATION',
55     ],
56     'sources': [
57       'evdev/libgestures_glue/event_reader_libevdev_cros.cc',
58       'evdev/libgestures_glue/event_reader_libevdev_cros.h',
59       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc',
60       'evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h',
61       'evdev/libgestures_glue/gesture_logging.cc',
62       'evdev/libgestures_glue/gesture_logging.h',
63       'evdev/libgestures_glue/gesture_timer_provider.cc',
64       'evdev/libgestures_glue/gesture_timer_provider.h',
65       'evdev/event_converter_evdev.cc',
66       'evdev/event_converter_evdev.h',
67       'evdev/event_device_info.cc',
68       'evdev/event_device_info.h',
69       'evdev/event_factory_evdev.cc',
70       'evdev/event_factory_evdev.h',
71       'evdev/event_modifiers_evdev.cc',
72       'evdev/event_modifiers_evdev.h',
73       'evdev/events_ozone_evdev_export.h',
74       'evdev/key_event_converter_evdev.cc',
75       'evdev/key_event_converter_evdev.h',
76       'evdev/touch_event_converter_evdev.cc',
77       'evdev/touch_event_converter_evdev.h',
78     ],
79     'conditions': [
80       ['use_ozone_evdev==1 and use_evdev_gestures==1', {
81         'dependencies': [
82           '<(DEPTH)/build/linux/system.gyp:libgestures',
83           '<(DEPTH)/build/linux/system.gyp:libevdev-cros',
84         ],
85         'defines': [
86           'USE_EVDEV_GESTURES',
87         ],
88       }, {
89         'sources/': [
90           ['exclude', '^evdev/libgestures_glue/'],
91         ],
92       }],
93       ['use_ozone_evdev==1', {
94         'defines': ['USE_OZONE_EVDEV=1'],
95       }],
96     ],
97   }]