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("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 source_set("gpu") { | 9 source_set("gpu") { |
10 output_name = "mus_gpu" | 10 output_name = "mus_gpu" |
11 | 11 |
12 sources = [ | 12 sources = [ |
13 "gpu_service_impl.cc", | 13 "gpu_service_impl.cc", |
14 "gpu_service_impl.h", | 14 "gpu_service_impl.h", |
15 "gpu_service_mus.cc", | 15 "gpu_service_mus.cc", |
16 "gpu_service_mus.h", | 16 "gpu_service_mus.h", |
17 "mus_gpu_memory_buffer_manager.cc", | 17 "mus_gpu_memory_buffer_manager.cc", |
18 "mus_gpu_memory_buffer_manager.h", | 18 "mus_gpu_memory_buffer_manager.h", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//components/mus/common:mus_common", | |
23 "//components/mus/public/interfaces", | |
24 "//gpu/ipc/common", | 22 "//gpu/ipc/common", |
25 "//gpu/ipc/service", | 23 "//gpu/ipc/service", |
26 "//ipc", | 24 "//ipc", |
27 "//media/gpu/ipc/service", | 25 "//media/gpu/ipc/service", |
28 "//mojo/public/cpp/system", | 26 "//mojo/public/cpp/system", |
29 "//services/shell/public/cpp", | 27 "//services/shell/public/cpp", |
| 28 "//services/ui/common:mus_common", |
| 29 "//services/ui/public/interfaces", |
30 "//ui/gfx:memory_buffer", | 30 "//ui/gfx:memory_buffer", |
31 "//ui/gl/init", | 31 "//ui/gl/init", |
32 ] | 32 ] |
33 | 33 |
34 if (use_ozone) { | 34 if (use_ozone) { |
35 deps += [ "//ui/ozone:ozone" ] | 35 deps += [ "//ui/ozone:ozone" ] |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 group("tests") { | 39 group("tests") { |
40 testonly = true | 40 testonly = true |
41 deps = [ | 41 deps = [ |
42 ":mus_gpu_unittests", | 42 ":mus_gpu_unittests", |
43 ] | 43 ] |
44 } | 44 } |
45 | 45 |
46 test("mus_gpu_unittests") { | 46 test("mus_gpu_unittests") { |
47 deps = [ | 47 deps = [ |
48 ":gpu", | 48 ":gpu", |
49 "//base", | 49 "//base", |
50 "//components/mus/common:run_all_shelltests", | |
51 "//ipc", | 50 "//ipc", |
| 51 "//services/ui/common:run_all_shelltests", |
52 "//testing/gtest", | 52 "//testing/gtest", |
53 "//ui/gfx:memory_buffer", | 53 "//ui/gfx:memory_buffer", |
54 "//ui/gfx/geometry", | 54 "//ui/gfx/geometry", |
55 ] | 55 ] |
56 | 56 |
57 data_deps = [ | 57 data_deps = [ |
58 ":mus_gpu_unittests_app_manifest", | 58 ":mus_gpu_unittests_app_manifest", |
59 ] | 59 ] |
60 } | 60 } |
61 | 61 |
62 mojo_application_manifest("mus_gpu_unittests_app_manifest") { | 62 mojo_application_manifest("mus_gpu_unittests_app_manifest") { |
63 application_name = "mus_gpu_unittests_app" | 63 application_name = "mus_gpu_unittests_app" |
64 source = "mus_gpu_unittests_app_manifest.json" | 64 source = "mus_gpu_unittests_app_manifest.json" |
65 } | 65 } |
OLD | NEW |