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 component("x11") { 6 output_name = "x11_events_platform" 7 8 sources = [ 9 "x11_event_source.cc", 10 "x11_event_source.h", 11 "x11_event_source_glib.cc", 12 "x11_event_source_libevent.cc", 13 ] 14 15 defines = [ 16 "EVENTS_IMPLEMENTATION", 17 ] 18 19 configs += [ 20 "//build/config/linux:x11", 21 ] 22 23 deps = [ 24 "//ui/events", 25 "//ui/events/platform", 26 "//ui/gfx/x", 27 ] 28 29 if (is_linux) { 30 sources -= [ 31 "x11_event_source_libevent.cc", 32 ] 33 34 configs += [ 35 "//build/config/linux:glib", 36 ] 37 } else { 38 sources -= [ 39 "x11_event_source_glib.cc", 40 ] 41 } 42 } 43