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