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