| 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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("display") { | 8 component("display") { |
| 9 sources = [ | 9 sources = [ |
| 10 "android/screen_android.cc", | 10 "android/screen_android.cc", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 defines = [ "DISPLAY_IMPLEMENTATION" ] | 72 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 73 | 73 |
| 74 public_deps = [ | 74 public_deps = [ |
| 75 "//ui/gfx:gfx", | 75 "//ui/gfx:gfx", |
| 76 ] | 76 ] |
| 77 | 77 |
| 78 deps = [ | 78 deps = [ |
| 79 "//base", | 79 "//base", |
| 80 "//third_party/re2", |
| 80 "//ui/display/types", | 81 "//ui/display/types", |
| 81 "//ui/display/util", | 82 "//ui/display/util", |
| 82 "//ui/gfx", | 83 "//ui/gfx", |
| 83 "//ui/gfx/geometry", | 84 "//ui/gfx/geometry", |
| 84 ] | 85 ] |
| 85 | 86 |
| 86 if (is_chromeos && use_x11) { | 87 if (is_chromeos && use_x11) { |
| 87 sources += [ | 88 sources += [ |
| 88 "chromeos/x11/display_mode_x11.cc", | 89 "chromeos/x11/display_mode_x11.cc", |
| 89 "chromeos/x11/display_mode_x11.h", | 90 "chromeos/x11/display_mode_x11.h", |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 "chromeos/apply_content_protection_task_unittest.cc", | 184 "chromeos/apply_content_protection_task_unittest.cc", |
| 184 "chromeos/configure_displays_task_unittest.cc", | 185 "chromeos/configure_displays_task_unittest.cc", |
| 185 "chromeos/display_configurator_unittest.cc", | 186 "chromeos/display_configurator_unittest.cc", |
| 186 "chromeos/query_content_protection_task_unittest.cc", | 187 "chromeos/query_content_protection_task_unittest.cc", |
| 187 "chromeos/update_display_configuration_task_unittest.cc", | 188 "chromeos/update_display_configuration_task_unittest.cc", |
| 188 "chromeos/x11/display_util_x11_unittest.cc", | 189 "chromeos/x11/display_util_x11_unittest.cc", |
| 189 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 190 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 190 "display_change_notifier_unittest.cc", | 191 "display_change_notifier_unittest.cc", |
| 191 "display_list_unittest.cc", | 192 "display_list_unittest.cc", |
| 192 "display_unittest.cc", | 193 "display_unittest.cc", |
| 194 "fake_display_snapshot_unittests.cc", |
| 193 "manager/display_layout_builder_unittest.cc", | 195 "manager/display_layout_builder_unittest.cc", |
| 194 "manager/display_layout_unittest.cc", | 196 "manager/display_layout_unittest.cc", |
| 195 "manager/display_manager_utilities_unittest.cc", | 197 "manager/display_manager_utilities_unittest.cc", |
| 196 "manager/managed_display_info_unittest.cc", | 198 "manager/managed_display_info_unittest.cc", |
| 197 "screen_unittest.cc", | 199 "screen_unittest.cc", |
| 198 "util/display_util_unittest.cc", | 200 "util/display_util_unittest.cc", |
| 199 "util/edid_parser_unittest.cc", | 201 "util/edid_parser_unittest.cc", |
| 200 "win/scaling_util_unittest.cc", | 202 "win/scaling_util_unittest.cc", |
| 201 "win/screen_win_unittest.cc", | 203 "win/screen_win_unittest.cc", |
| 202 ] | 204 ] |
| 203 | 205 |
| 204 deps = [ | 206 deps = [ |
| 205 ":display", | 207 ":display", |
| 206 ":test_support", | 208 ":test_support", |
| 207 "//base", | 209 "//base", |
| 208 "//base/test:run_all_unittests", | 210 "//base/test:run_all_unittests", |
| 209 "//base/test:test_support", | 211 "//base/test:test_support", |
| 212 "//testing/gmock", |
| 210 "//testing/gtest", | 213 "//testing/gtest", |
| 211 "//ui/display/types", | 214 "//ui/display/types", |
| 212 "//ui/display/util", | 215 "//ui/display/util", |
| 213 "//ui/gfx:test_support", | 216 "//ui/gfx:test_support", |
| 214 "//ui/gfx/geometry", | 217 "//ui/gfx/geometry", |
| 215 ] | 218 ] |
| 216 | 219 |
| 217 if (is_chromeos) { | 220 if (is_chromeos) { |
| 218 deps += [ ":test_util" ] | 221 deps += [ ":test_util" ] |
| 219 } | 222 } |
| 220 | 223 |
| 221 if (use_aura) { | 224 if (use_aura) { |
| 222 sources -= [ "screen_unittest.cc" ] | 225 sources -= [ "screen_unittest.cc" ] |
| 223 } | 226 } |
| 224 | 227 |
| 225 if (is_android) { | 228 if (is_android) { |
| 226 # Do not run display_change_notifier_unittest.cc on Android because it | 229 # Do not run display_change_notifier_unittest.cc on Android because it |
| 227 # does not compile display_observer.cc | 230 # does not compile display_observer.cc |
| 228 sources -= [ "display_change_notifier_unittest.cc" ] | 231 sources -= [ "display_change_notifier_unittest.cc" ] |
| 229 } | 232 } |
| 230 | 233 |
| 231 if (is_chromeos && use_ozone) { | 234 if (is_chromeos && use_ozone) { |
| 232 sources -= [ | 235 sources -= [ |
| 233 "chromeos/x11/display_util_x11_unittest.cc", | 236 "chromeos/x11/display_util_x11_unittest.cc", |
| 234 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 237 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 235 ] | 238 ] |
| 236 } | 239 } |
| 237 } | 240 } |
| OLD | NEW |