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