| 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 "platform_screen.cc", | 10 "screen_manager.cc", |
| 11 "platform_screen.h", | 11 "screen_manager.h", |
| 12 "platform_screen_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 "platform_screen_ozone.cc", | 26 "screen_manager_ozone.cc", |
| 27 "platform_screen_ozone.h", | 27 "screen_manager_ozone.h", |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 deps += [ | 30 deps += [ |
| 31 "//services/ui/public/interfaces/display", | 31 "//services/ui/public/interfaces/display", |
| 32 "//skia", | 32 "//skia", |
| 33 "//ui/ozone", | 33 "//ui/ozone", |
| 34 ] | 34 ] |
| 35 } else { | 35 } else { |
| 36 sources += [ | 36 sources += [ |
| 37 "platform_screen_stub.cc", | 37 "screen_manager_stub.cc", |
| 38 "platform_screen_stub.h", | 38 "screen_manager_stub.h", |
| 39 ] | 39 ] |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 | 42 |
| 43 if (use_ozone && is_chromeos) { | 43 if (use_ozone && is_chromeos) { |
| 44 test("display_service_unittests") { | 44 test("display_service_unittests") { |
| 45 sources = [ | 45 sources = [ |
| 46 "platform_screen_ozone_unittests.cc", | 46 "screen_manager_ozone_unittests.cc", |
| 47 ] | 47 ] |
| 48 | 48 |
| 49 deps = [ | 49 deps = [ |
| 50 ":display", | 50 ":display", |
| 51 "//base", | 51 "//base", |
| 52 "//base/test:run_all_unittests", | 52 "//base/test:run_all_unittests", |
| 53 "//base/test:test_support", | 53 "//base/test:test_support", |
| 54 "//testing/gmock", | 54 "//testing/gmock", |
| 55 "//testing/gtest", | 55 "//testing/gtest", |
| 56 "//ui/display", | 56 "//ui/display", |
| 57 "//ui/gfx", | 57 "//ui/gfx", |
| 58 "//ui/gfx:test_support", | 58 "//ui/gfx:test_support", |
| 59 "//ui/ozone", | 59 "//ui/ozone", |
| 60 ] | 60 ] |
| 61 } | 61 } |
| 62 } | 62 } |
| OLD | NEW |