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