| 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/display/types", |
| 21 "//ui/gfx/geometry", | 22 "//ui/gfx/geometry", |
| 22 ] | 23 ] |
| 23 | 24 |
| 24 if (use_x11) { | 25 if (use_x11) { |
| 25 sources += [ | 26 sources += [ |
| 26 "x11/edid_parser_x11.cc", | 27 "x11/edid_parser_x11.cc", |
| 27 "x11/edid_parser_x11.h", | 28 "x11/edid_parser_x11.h", |
| 28 ] | 29 ] |
| 29 configs += [ | 30 configs += [ |
| 30 "//build/config/linux:x11", | 31 "//build/config/linux:x11", |
| 31 "//build/config/linux:xrandr", | 32 "//build/config/linux:xrandr", |
| 32 ] | 33 ] |
| 33 deps += [ "//ui/gfx/x" ] | 34 deps += [ "//ui/gfx/x" ] |
| 34 } | 35 } |
| 35 if (is_chromeos) { | 36 if (is_chromeos) { |
| 36 deps += [ "//ui/display/types" ] | 37 deps += [ "//ui/display/types" ] |
| 37 } | 38 } |
| 38 } | 39 } |
| OLD | NEW |