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("util") { | 7 component("util") { |
8 output_name = "display_util" | 8 output_name = "display_util" |
9 sources = [ | 9 sources = [ |
10 "display_util.cc", | 10 "display_util.cc", |
11 "display_util.h", | 11 "display_util.h", |
12 "display_util_export.h", | 12 "display_util_export.h", |
13 "edid_parser.cc", | 13 "edid_parser.cc", |
14 "edid_parser.h", | 14 "edid_parser.h", |
15 ] | 15 ] |
16 | 16 |
17 defines = [ "DISPLAY_UTIL_IMPLEMENTATION" ] | 17 defines = [ "DISPLAY_UTIL_IMPLEMENTATION" ] |
18 | 18 |
19 deps = [ | 19 deps = [ |
20 "//base", | 20 "//base", |
21 "//ui/gfx/geometry", | 21 "//ui/gfx/geometry", |
22 ] | 22 ] |
23 | 23 |
24 if (use_x11) { | 24 if (use_x11) { |
25 sources += [ | 25 sources += [ |
26 "x11/edid_parser_x11.cc", | 26 "x11/edid_parser_x11.cc", |
27 "x11/edid_parser_x11.h", | 27 "x11/edid_parser_x11.h", |
28 ] | 28 ] |
29 configs += [ "//build/config/linux:xrandr" ] | 29 configs += [ |
| 30 "//build/config/linux:x11", |
| 31 "//build/config/linux:xrandr", |
| 32 ] |
30 deps += [ "//ui/gfx/x" ] | 33 deps += [ "//ui/gfx/x" ] |
31 } | 34 } |
32 if (is_chromeos) { | 35 if (is_chromeos) { |
33 deps += [ "//ui/display/types" ] | 36 deps += [ "//ui/display/types" ] |
34 } | 37 } |
35 } | 38 } |
OLD | NEW |