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