OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 # GN version: //ui/events/platform/x11 | 10 # GN version: //ui/events/platform/x11 |
11 'target_name': 'x11_events_platform', | 11 'target_name': 'x11_events_platform', |
12 'type': '<(component)', | 12 'type': '<(component)', |
13 'defines': [ | 13 'defines': [ |
14 'EVENTS_IMPLEMENTATION', | 14 'EVENTS_IMPLEMENTATION', |
15 ], | 15 ], |
16 'dependencies': [ | 16 'dependencies': [ |
17 '../../../../build/linux/system.gyp:x11', | 17 '../../../../build/linux/system.gyp:x11', |
18 '../../../gfx/x/gfx_x11.gyp:gfx_x11', | 18 '../../../gfx/x/gfx_x11.gyp:gfx_x11', |
| 19 '../../devices/events_devices.gyp:events_devices', |
19 '../../events.gyp:events', | 20 '../../events.gyp:events', |
20 '../../events.gyp:events_base', | 21 '../../events.gyp:events_base', |
21 '../events_platform.gyp:events_platform', | 22 '../events_platform.gyp:events_platform', |
22 ], | 23 ], |
23 'sources': [ | 24 'sources': [ |
24 'x11_event_source.cc', | 25 'x11_event_source.cc', |
25 'x11_event_source.h', | 26 'x11_event_source.h', |
26 'x11_event_source_glib.cc', | 27 'x11_event_source_glib.cc', |
27 'x11_event_source_libevent.cc', | 28 'x11_event_source_libevent.cc', |
| 29 'x11_hotplug_event_handler.cc', |
| 30 'x11_hotplug_event_handler.h', |
28 ], | 31 ], |
29 'conditions': [ | 32 'conditions': [ |
30 ['use_glib==1', { | 33 ['use_glib==1', { |
31 'dependencies': [ | 34 'dependencies': [ |
32 '../../../../build/linux/system.gyp:glib', | 35 '../../../../build/linux/system.gyp:glib', |
33 ], | 36 ], |
34 'sources!': [ | 37 'sources!': [ |
35 'x11_event_source_libevent.cc', | 38 'x11_event_source_libevent.cc', |
36 ], | 39 ], |
37 }, { | 40 }, { |
38 # use_glib == 0 | 41 # use_glib == 0 |
39 'sources!': [ | 42 'sources!': [ |
40 'x11_event_source_glib.cc', | 43 'x11_event_source_glib.cc', |
41 ], | 44 ], |
42 }], | 45 }], |
43 ], | 46 ], |
44 }], | 47 }], |
45 } | 48 } |
OLD | NEW |