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 | 7 |
7 assert(use_x11) | 8 assert(use_x11 || ozone_platform_x11) |
8 | 9 |
9 component("x11") { | 10 component("x11") { |
10 output_name = "x11_window" | 11 output_name = "x11_window" |
11 | 12 |
12 deps = [ | 13 deps = [ |
13 "//base", | 14 "//base", |
14 "//skia", | 15 "//skia", |
15 "//ui/events", | 16 "//ui/events", |
16 "//ui/events/devices", | 17 "//ui/events/devices", |
17 "//ui/events/platform", | 18 "//ui/events/platform", |
18 "//ui/events/platform/x11", | 19 "//ui/events/platform/x11", |
19 "//ui/gfx/x", | 20 "//ui/gfx/x", |
20 "//ui/platform_window", | 21 "//ui/platform_window", |
21 ] | 22 ] |
22 | 23 |
23 configs += [ "//build/config/linux:x11" ] | 24 configs += [ "//build/config/linux:x11" ] |
24 | 25 |
25 defines = [ "X11_WINDOW_IMPLEMENTATION" ] | 26 defines = [ "X11_WINDOW_IMPLEMENTATION" ] |
26 | 27 |
27 sources = [ | 28 sources = [ |
28 "x11_window.cc", | 29 "x11_window_base.cc", |
29 "x11_window.h", | 30 "x11_window_base.h", |
30 "x11_window_export.h", | 31 "x11_window_export.h", |
31 ] | 32 ] |
| 33 |
| 34 if (ozone_platform_x11) { |
| 35 sources += [ |
| 36 "x11_window_ozone.cc", |
| 37 "x11_window_ozone.h", |
| 38 ] |
| 39 } else if (use_x11) { |
| 40 sources += [ |
| 41 "x11_window.cc", |
| 42 "x11_window.h", |
| 43 ] |
| 44 } |
32 } | 45 } |
OLD | NEW |