Home | History | Annotate | Download | only in x11
      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 = [ "EVENTS_IMPLEMENTATION" ]
     16 
     17   configs += [ "//build/config/linux:x11" ]
     18 
     19   public_deps = [
     20     "//ui/events",
     21     "//ui/events:events_base",
     22     "//ui/events/platform",
     23     "//ui/gfx/x",
     24   ]
     25 
     26   if (is_linux) {
     27     sources -= [ "x11_event_source_libevent.cc" ]
     28 
     29     configs += [ "//build/config/linux:glib" ]
     30   } else {
     31     sources -= [ "x11_event_source_glib.cc" ]
     32   }
     33 }
     34