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.
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
10 "chromeos/configure_displays_task.cc",
11 "chromeos/configure_displays_task.h",
12 "chromeos/display_configurator.cc",
13 "chromeos/display_configurator.h",
14 "chromeos/display_util.cc",
15 "chromeos/display_util.h",
16 "chromeos/ozone/display_configurator_ozone.cc",
17 "chromeos/update_display_configuration_task.cc",
18 "chromeos/update_display_configuration_task.h",
19 "chromeos/x11/display_configurator_x11.cc",
20 "chromeos/x11/display_mode_x11.cc",
21 "chromeos/x11/display_mode_x11.h",
22 "chromeos/x11/display_snapshot_x11.cc",
23 "chromeos/x11/display_snapshot_x11.h",
24 "chromeos/x11/display_util_x11.cc",
25 "chromeos/x11/display_util_x11.h",
26 "chromeos/x11/native_display_delegate_x11.cc",
27 "chromeos/x11/native_display_delegate_x11.h",
28 "chromeos/x11/native_display_event_dispatcher_x11.cc",
29 "chromeos/x11/native_display_event_dispatcher_x11.h",
31 "display_switches.cc",
35 defines = [ "DISPLAY_IMPLEMENTATION" ]
46 "//build/config/linux:x11",
47 "//build/config/linux:xext",
48 "//build/config/linux:xi",
49 "//build/config/linux:xrandr",
51 deps += [ "//ui/events/platform" ]
53 sources -= [ "chromeos/ozone/display_configurator_ozone.cc" ]
58 deps += [ "//ui/display/types" ]
60 deps += [ "//ui/gfx/x" ]
65 deps += [ "//ui/ozone" ]
68 "chromeos/x11/display_configurator_x11.cc",
69 "chromeos/x11/display_mode_x11.cc",
70 "chromeos/x11/display_mode_x11.h",
71 "chromeos/x11/display_snapshot_x11.cc",
72 "chromeos/x11/display_snapshot_x11.h",
73 "chromeos/x11/display_util_x11.cc",
74 "chromeos/x11/display_util_x11.h",
75 "chromeos/x11/native_display_delegate_x11.cc",
76 "chromeos/x11/native_display_delegate_x11.h",
77 "chromeos/x11/native_display_event_dispatcher_x11.cc",
78 "chromeos/x11/native_display_event_dispatcher_x11.h",
84 component("test_util") {
85 output_name = "display_test_util"
87 "chromeos/test/test_display_snapshot.cc",
88 "chromeos/test/test_display_snapshot.h",
91 defines = [ "DISPLAY_IMPLEMENTATION" ]
103 deps += [ "//ui/display/types" ]
107 source_set("test_support") {
110 "chromeos/test/action_logger.cc",
111 "chromeos/test/action_logger.h",
112 "chromeos/test/action_logger_util.cc",
113 "chromeos/test/action_logger_util.h",
114 "chromeos/test/test_native_display_delegate.cc",
115 "chromeos/test/test_native_display_delegate.h",
123 "//ui/display/types",
129 test("display_unittests") {
131 "chromeos/configure_displays_task_unittest.cc",
132 "chromeos/display_configurator_unittest.cc",
133 "chromeos/update_display_configuration_task_unittest.cc",
134 "chromeos/x11/display_util_x11_unittest.cc",
135 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",
136 "util/display_util_unittest.cc",
137 "util/edid_parser_unittest.cc",
143 "//base/test:run_all_unittests",
153 "//base/test:test_support",
154 "//ui/display/types",
158 if (use_ozone && is_chromeos) {
160 "chromeos/x11/display_util_x11_unittest.cc",
161 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",