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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 component("platform") { | 7 component("platform") { |
8 sources = [ | 8 sources = [ |
9 # Allow this target to include events_export.h without depending on the | 9 # Allow this target to include events_export.h without depending on the |
10 # events target (which would be circular). | 10 # events target (which would be circular). |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 "x11/keysym_to_unicode.h", | 46 "x11/keysym_to_unicode.h", |
47 "x11/platform_event_utils_x11.cc", | 47 "x11/platform_event_utils_x11.cc", |
48 "x11/touch_factory_x11.cc", | 48 "x11/touch_factory_x11.cc", |
49 "x11/touch_factory_x11.h", | 49 "x11/touch_factory_x11.h", |
50 "x11/x11_event_source.cc", | 50 "x11/x11_event_source.cc", |
51 "x11/x11_event_source.h", | 51 "x11/x11_event_source.h", |
52 "x11/x11_event_source_glib.cc", | 52 "x11/x11_event_source_glib.cc", |
53 "x11/x11_event_source_libevent.cc", | 53 "x11/x11_event_source_libevent.cc", |
54 ] | 54 ] |
55 | 55 |
56 if (is_linux) { | 56 if (use_glib) { |
jamesr
2015/01/22 23:12:05
ditto
| |
57 sources -= [ "x11/x11_event_source_libevent.cc" ] | 57 sources -= [ "x11/x11_event_source_libevent.cc" ] |
58 | |
59 configs += [ "//build/config/linux:glib" ] | 58 configs += [ "//build/config/linux:glib" ] |
60 } else { | 59 } else { |
61 sources -= [ "x11/x11_event_source_glib.cc" ] | 60 sources -= [ "x11/x11_event_source_glib.cc" ] |
62 } | 61 } |
63 | 62 |
64 deps += [ "//ui/gfx/x" ] | 63 deps += [ "//ui/gfx/x" ] |
65 } else { | 64 } else { |
66 sources += [ | 65 sources += [ |
67 "platform_event_source_stub.cc", | 66 "platform_event_source_stub.cc", |
68 "platform_event_stub.cc", | 67 "platform_event_stub.cc", |
69 ] | 68 ] |
70 } | 69 } |
71 } | 70 } |
OLD | NEW |