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