| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 source_set("display") { | 8 source_set("display") { |
| 9 sources = [ | 9 sources = [ |
| 10 "screen_manager.cc", | 10 "screen_manager.cc", |
| 11 "screen_manager.h", | 11 "screen_manager.h", |
| 12 "screen_manager_delegate.h", | 12 "screen_manager_delegate.h", |
| 13 "viewport_metrics.cc", | 13 "viewport_metrics.cc", |
| 14 "viewport_metrics.h", | 14 "viewport_metrics.h", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 deps = [ | 17 deps = [ |
| 18 "//base", | 18 "//base", |
| 19 "//services/service_manager/public/cpp", | 19 "//services/service_manager/public/cpp", |
| 20 "//ui/display", | 20 "//ui/display", |
| 21 "//ui/gfx", | 21 "//ui/gfx", |
| 22 ] | 22 ] |
| 23 | 23 |
| 24 if (use_ozone && is_chromeos) { | 24 if (use_ozone && is_chromeos) { |
| 25 sources += [ | 25 sources += [ |
| 26 "screen_manager_ozone.cc", | 26 "screen_manager_ozone_internal.cc", |
| 27 "screen_manager_ozone.h", | 27 "screen_manager_ozone_internal.h", |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 deps += [ | 30 deps += [ |
| 31 "//chromeos", | 31 "//chromeos", |
| 32 "//services/ui/public/interfaces/display", | 32 "//services/ui/public/interfaces/display", |
| 33 "//skia", | 33 "//skia", |
| 34 "//ui/display/manager", | 34 "//ui/display/manager", |
| 35 "//ui/ozone", | 35 "//ui/ozone", |
| 36 ] | 36 ] |
| 37 } else { | 37 } else { |
| 38 sources += [ | 38 sources += [ |
| 39 "screen_manager_stub.cc", | 39 "screen_manager_stub_internal.cc", |
| 40 "screen_manager_stub.h", | 40 "screen_manager_stub_internal.h", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 if (use_ozone && is_chromeos) { | 45 if (use_ozone && is_chromeos) { |
| 46 test("display_service_unittests") { | 46 test("display_service_unittests") { |
| 47 sources = [ | 47 sources = [ |
| 48 "run_all_unittests.cc", | 48 "run_all_unittests.cc", |
| 49 "screen_manager_ozone_unittests.cc", | 49 "screen_manager_ozone_internal_unittests.cc", |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 deps = [ | 52 deps = [ |
| 53 ":display", | 53 ":display", |
| 54 "//base", | 54 "//base", |
| 55 "//base/test:test_support", | 55 "//base/test:test_support", |
| 56 "//services/ui/common:task_runner_test_base", | 56 "//services/ui/common:task_runner_test_base", |
| 57 "//testing/gmock", | 57 "//testing/gmock", |
| 58 "//testing/gtest", | 58 "//testing/gtest", |
| 59 "//ui/base", | 59 "//ui/base", |
| 60 "//ui/display", | 60 "//ui/display", |
| 61 "//ui/events/devices", | 61 "//ui/events/devices", |
| 62 "//ui/gfx", | 62 "//ui/gfx", |
| 63 "//ui/gfx:test_support", | 63 "//ui/gfx:test_support", |
| 64 "//ui/ozone", | 64 "//ui/ozone", |
| 65 ] | 65 ] |
| 66 | 66 |
| 67 data_deps = [ | 67 data_deps = [ |
| 68 "//ui/resources:ui_test_pak_data", | 68 "//ui/resources:ui_test_pak_data", |
| 69 ] | 69 ] |
| 70 } | 70 } |
| 71 } | 71 } |
| OLD | NEW |