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 deps = [ | |
9 "//base" | |
10 ] | |
11 | |
12 defines = [ | |
13 "EVENTS_IMPLEMENTATION", | |
14 ] | |
15 | |
16 sources = [ | 8 sources = [ |
17 "platform_event_dispatcher.h", | 9 "platform_event_dispatcher.h", |
18 "platform_event_observer.h", | 10 "platform_event_observer.h", |
19 "platform_event_source.cc", | 11 "platform_event_source.cc", |
20 "platform_event_source.h", | 12 "platform_event_source.h", |
21 "platform_event_source_stub.cc", | 13 "platform_event_source_stub.cc", |
22 "platform_event_types.h", | 14 "platform_event_types.h", |
23 "scoped_event_dispatcher.cc", | 15 "scoped_event_dispatcher.cc", |
24 "scoped_event_dispatcher.h", | 16 "scoped_event_dispatcher.h", |
25 ] | 17 ] |
26 | 18 |
| 19 defines = [ |
| 20 "EVENTS_IMPLEMENTATION", |
| 21 ] |
| 22 |
| 23 deps = [ |
| 24 "//base" |
| 25 ] |
| 26 |
27 if (use_x11) { | 27 if (use_x11) { |
28 sources -= [ "platform_event_source_stub.cc" ] | 28 sources -= [ |
| 29 "platform_event_source_stub.cc", |
| 30 ] |
29 } | 31 } |
30 } | 32 } |
OLD | NEW |