| OLD | NEW |
| (Empty) |
| 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 | |
| 5 import("//build/config/ui.gni") | |
| 6 | |
| 7 component("display") { | |
| 8 sources = [ | |
| 9 "chromeos/display_configurator.cc", | |
| 10 "chromeos/display_configurator.h", | |
| 11 "chromeos/x11/display_configurator_x11.cc", | |
| 12 "chromeos/x11/display_mode_x11.cc", | |
| 13 "chromeos/x11/display_mode_x11.h", | |
| 14 "chromeos/x11/display_snapshot_x11.cc", | |
| 15 "chromeos/x11/display_snapshot_x11.h", | |
| 16 "chromeos/x11/display_util_x11.cc", | |
| 17 "chromeos/x11/display_util_x11.h", | |
| 18 "chromeos/x11/native_display_delegate_x11.cc", | |
| 19 "chromeos/x11/native_display_delegate_x11.h", | |
| 20 "chromeos/x11/native_display_event_dispatcher_x11.cc", | |
| 21 "chromeos/x11/native_display_event_dispatcher_x11.h", | |
| 22 "display_export.h", | |
| 23 "display_switches.cc", | |
| 24 "display_switches.h", | |
| 25 ] | |
| 26 | |
| 27 defines = [ "DISPLAY_IMPLEMENTATION" ] | |
| 28 | |
| 29 deps = [ | |
| 30 "//base", | |
| 31 "//ui/display/util", | |
| 32 "//ui/gfx", | |
| 33 "//ui/gfx/geometry", | |
| 34 ] | |
| 35 | |
| 36 if (use_x11) { | |
| 37 configs += [ | |
| 38 "//build/config/linux:x11", | |
| 39 "//build/config/linux:xext", | |
| 40 "//build/config/linux:xi", | |
| 41 "//build/config/linux:xrandr", | |
| 42 ] | |
| 43 deps += [ "//ui/events/platform" ] | |
| 44 } | |
| 45 } | |
| 46 | |
| 47 component("test_util") { | |
| 48 output_name = "display_test_util" | |
| 49 sources = [ | |
| 50 "chromeos/test/test_display_snapshot.cc", | |
| 51 "chromeos/test/test_display_snapshot.h", | |
| 52 ] | |
| 53 | |
| 54 defines = [ "DISPLAY_IMPLEMENTATION" ] | |
| 55 | |
| 56 public_deps = [ | |
| 57 ":display", | |
| 58 ] | |
| 59 deps = [ | |
| 60 "//base", | |
| 61 "//ui/gfx", | |
| 62 "//ui/gfx/geometry", | |
| 63 ] | |
| 64 } | |
| 65 | |
| 66 test("display_unittests") { | |
| 67 sources = [ | |
| 68 "chromeos/display_configurator_unittest.cc", | |
| 69 "chromeos/x11/display_util_x11_unittest.cc", | |
| 70 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | |
| 71 "util/display_util_unittest.cc", | |
| 72 "util/edid_parser_unittest.cc", | |
| 73 ] | |
| 74 | |
| 75 deps = [ | |
| 76 ":test_util", | |
| 77 "//base", | |
| 78 "//base/test:run_all_unittests", | |
| 79 "//testing/gtest", | |
| 80 "//ui/display/util", | |
| 81 "//ui/gfx/geometry", | |
| 82 ] | |
| 83 } | |
| OLD | NEW |