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/display/manager", | 33 "//ui/display/manager", |
34 "//ui/ozone", | 34 "//ui/ozone", |
35 ] | 35 ] |
36 } else { | 36 } else { |
37 sources += [ | 37 sources += [ |
38 "platform_screen_stub.cc", | 38 "screen_manager_stub.cc", |
39 "platform_screen_stub.h", | 39 "screen_manager_stub.h", |
40 ] | 40 ] |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 if (use_ozone && is_chromeos) { | 44 if (use_ozone && is_chromeos) { |
45 test("display_service_unittests") { | 45 test("display_service_unittests") { |
46 sources = [ | 46 sources = [ |
47 "platform_screen_ozone_unittests.cc", | 47 "screen_manager_ozone_unittests.cc", |
48 ] | 48 ] |
49 | 49 |
50 deps = [ | 50 deps = [ |
51 ":display", | 51 ":display", |
52 "//base", | 52 "//base", |
53 "//base/test:run_all_unittests", | 53 "//base/test:run_all_unittests", |
54 "//base/test:test_support", | 54 "//base/test:test_support", |
55 "//testing/gmock", | 55 "//testing/gmock", |
56 "//testing/gtest", | 56 "//testing/gtest", |
57 "//ui/display", | 57 "//ui/display", |
58 "//ui/gfx", | 58 "//ui/gfx", |
59 "//ui/gfx:test_support", | 59 "//ui/gfx:test_support", |
60 "//ui/ozone", | 60 "//ui/ozone", |
61 ] | 61 ] |
62 } | 62 } |
63 } | 63 } |
OLD | NEW |