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("//testing/test.gni") | 5 source_set("service") { |
| 6 visibility = [ |
| 7 "//media/*", |
| 8 "//content/gpu/*", |
| 9 "//content/public/gpu/*", |
| 10 ] |
6 | 11 |
7 source_set("ports") { | |
8 sources = [ | 12 sources = [ |
9 "event.cc", | 13 "gpu_jpeg_decode_accelerator.cc", |
10 "event.h", | 14 "gpu_jpeg_decode_accelerator.h", |
11 "hash_functions.h", | 15 "gpu_video_decode_accelerator.cc", |
12 "message.cc", | 16 "gpu_video_decode_accelerator.h", |
13 "message.h", | 17 "gpu_video_decode_accelerator_factory_impl.cc", |
14 "message_queue.cc", | 18 "gpu_video_decode_accelerator_factory_impl.h", |
15 "message_queue.h", | 19 "gpu_video_encode_accelerator.cc", |
16 "name.cc", | 20 "gpu_video_encode_accelerator.h", |
17 "name.h", | 21 "media_channel.cc", |
18 "node.cc", | 22 "media_channel.h", |
19 "node.h", | 23 "media_service.cc", |
20 "node_delegate.h", | 24 "media_service.h", |
21 "port.cc", | |
22 "port.h", | |
23 "port_ref.cc", | |
24 "user_data.h", | |
25 ] | 25 ] |
26 | 26 |
| 27 include_dirs = [ "//third_party/mesa/src/include" ] |
| 28 |
27 public_deps = [ | 29 public_deps = [ |
28 "//base", | 30 "//base", |
| 31 "//gpu/config", |
| 32 "//ipc", |
| 33 "//media", |
| 34 "//media/gpu", |
29 ] | 35 ] |
30 } | 36 deps = [ |
31 | 37 "//gpu/ipc/service", |
32 test("mojo_system_ports_unittests") { | 38 "//media/gpu/ipc/common", |
33 sources = [ | 39 "//third_party/mesa:mesa_headers", |
34 "ports_unittest.cc", | |
35 ] | 40 ] |
36 | 41 |
37 deps = [ | 42 if (is_chromeos && current_cpu != "arm") { |
38 ":ports", | 43 configs += [ "//third_party/libva:libva_config" ] |
39 "//base", | 44 } |
40 "//base/test:test_support", | 45 |
41 "//mojo/edk/test:run_all_unittests", | 46 if (is_win) { |
42 "//testing/gtest", | 47 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
43 ] | 48 } |
44 } | 49 } |
OLD | NEW |