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 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
7 | 7 |
8 assert(use_x11 || ozone_platform_x11) | 8 assert(use_x11 || ozone_platform_x11) |
9 | 9 |
10 component("x11") { | 10 component("x11") { |
11 output_name = "x11_events_platform" | 11 output_name = "x11_events_platform" |
12 | 12 |
13 sources = [ | 13 sources = [ |
14 "x11_event_source.cc", | 14 "x11_event_source.cc", |
15 "x11_event_source.h", | 15 "x11_event_source.h", |
16 "x11_hotplug_event_handler.cc", | 16 "x11_hotplug_event_handler.cc", |
17 "x11_hotplug_event_handler.h", | 17 "x11_hotplug_event_handler.h", |
18 ] | 18 ] |
19 | 19 |
20 defines = [ "EVENTS_IMPLEMENTATION" ] | 20 defines = [ "EVENTS_IMPLEMENTATION" ] |
21 | 21 |
22 configs += [ "//build/config/linux:x11" ] | 22 configs += [ "//build/config/linux:x11" ] |
23 | 23 |
24 public_deps = [ | 24 public_deps = [ |
| 25 "//ui/base/x", |
25 "//ui/events", | 26 "//ui/events", |
26 "//ui/events:events_base", | 27 "//ui/events:events_base", |
27 "//ui/events/devices", | 28 "//ui/events/devices", |
28 "//ui/events/devices/x11", | 29 "//ui/events/devices/x11", |
29 "//ui/events/platform", | 30 "//ui/events/platform", |
30 "//ui/events/x", | 31 "//ui/events/x", |
31 "//ui/gfx", | 32 "//ui/gfx", |
32 "//ui/gfx/x", | 33 "//ui/gfx/x", |
33 ] | 34 ] |
34 | 35 |
(...skipping 10 matching lines...) Expand all Loading... |
45 configs += [ "//build/config/linux:glib" ] | 46 configs += [ "//build/config/linux:glib" ] |
46 } else { | 47 } else { |
47 sources += [ | 48 sources += [ |
48 "x11_event_source_libevent.cc", | 49 "x11_event_source_libevent.cc", |
49 "x11_event_source_libevent.h", | 50 "x11_event_source_libevent.h", |
50 ] | 51 ] |
51 | 52 |
52 deps += [ "//ui/events/keycodes:x11" ] | 53 deps += [ "//ui/events/keycodes:x11" ] |
53 } | 54 } |
54 } | 55 } |
OLD | NEW |