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