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