blob: a6b7d221837c81a425d7ff3971d71f82d3193e1a [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [{
# GN version: //ui/events/platform/x11
'target_name': 'x11_events_platform',
'type': '<(component)',
'defines': [
'EVENTS_IMPLEMENTATION',
],
'dependencies': [
'../../../../base/base.gyp:base',
'../../../../build/linux/system.gyp:x11',
'../../../gfx/x/gfx_x11.gyp:gfx_x11',
'../../devices/events_devices.gyp:events_devices',
'../../devices/x11/events_devices_x11.gyp:events_devices_x11',
'../../events.gyp:events',
'../../events.gyp:events_base',
'../../x/events_x.gyp:events_x',
'../events_platform.gyp:events_platform',
],
'sources': [
'x11_event_source.cc',
'x11_event_source.h',
'x11_hotplug_event_handler.cc',
'x11_hotplug_event_handler.h',
],
'conditions': [
['use_glib==1', {
'dependencies': [
'../../../../build/linux/system.gyp:glib',
],
'sources': [
'x11_event_source_glib.cc',
'x11_event_source_glib.h',
],
}, {
# use_glib == 0
'sources': [
'x11_event_source_libevent.cc',
'x11_event_source_libevent.h',
],
'dependencies': [
'../../keycodes/events_keycodes.gyp:keycodes_x11',
],
}],
],
}],
}