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