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 import("//testing/test.gni") |
6 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
7 | 7 |
8 proto_library("media_remoting_proto") { | 8 proto_library("media_remoting_proto") { |
9 proto_out_dir = "media/remoting" | 9 proto_out_dir = "media/remoting" |
10 sources = [ | 10 sources = [ |
11 "proto/remoting_rpc_message.proto", | 11 "rpc.proto", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
| 15 # This target is separate from "remoting" because this code is shared by the |
| 16 # receiver implementation (currently outside of the Chromium project). |
15 source_set("rpc") { | 17 source_set("rpc") { |
16 sources = [ | 18 sources = [ |
17 "rpc/proto_enum_utils.cc", | 19 "proto_enum_utils.cc", |
18 "rpc/proto_enum_utils.h", | 20 "proto_enum_utils.h", |
19 "rpc/proto_utils.cc", | 21 "proto_utils.cc", |
20 "rpc/proto_utils.h", | 22 "proto_utils.h", |
21 "rpc/rpc_broker.cc", | 23 "rpc_broker.cc", |
22 "rpc/rpc_broker.h", | 24 "rpc_broker.h", |
23 ] | 25 ] |
24 | 26 |
25 deps = [ | 27 deps = [ |
26 "//base", | 28 "//base", |
27 "//media", | 29 "//media", |
28 ] | 30 ] |
29 | 31 |
30 public_deps = [ | 32 public_deps = [ |
31 ":media_remoting_proto", | 33 ":media_remoting_proto", |
32 ] | 34 ] |
33 } | 35 } |
34 | 36 |
35 source_set("remoting") { | 37 source_set("remoting") { |
36 sources = [ | 38 sources = [ |
| 39 "adaptive_renderer_factory.cc", |
| 40 "adaptive_renderer_factory.h", |
| 41 "courier_renderer.cc", |
| 42 "courier_renderer.h", |
| 43 "demuxer_stream_adapter.cc", |
| 44 "demuxer_stream_adapter.h", |
| 45 "interstitial.cc", |
| 46 "interstitial.h", |
37 "metrics.cc", | 47 "metrics.cc", |
38 "metrics.h", | 48 "metrics.h", |
39 "remote_demuxer_stream_adapter.cc", | |
40 "remote_demuxer_stream_adapter.h", | |
41 "remote_renderer_impl.cc", | |
42 "remote_renderer_impl.h", | |
43 "remoting_cdm.cc", | 49 "remoting_cdm.cc", |
44 "remoting_cdm.h", | 50 "remoting_cdm.h", |
45 "remoting_cdm_context.cc", | 51 "remoting_cdm_context.cc", |
46 "remoting_cdm_context.h", | 52 "remoting_cdm_context.h", |
47 "remoting_cdm_controller.cc", | 53 "remoting_cdm_controller.cc", |
48 "remoting_cdm_controller.h", | 54 "remoting_cdm_controller.h", |
49 "remoting_cdm_factory.cc", | 55 "remoting_cdm_factory.cc", |
50 "remoting_cdm_factory.h", | 56 "remoting_cdm_factory.h", |
51 "remoting_interstitial_ui.cc", | 57 "renderer_controller.cc", |
52 "remoting_interstitial_ui.h", | 58 "renderer_controller.h", |
53 "remoting_renderer_controller.cc", | 59 "shared_session.cc", |
54 "remoting_renderer_controller.h", | 60 "shared_session.h", |
55 "remoting_renderer_factory.cc", | 61 "sink_availability_observer.cc", |
56 "remoting_renderer_factory.h", | 62 "sink_availability_observer.h", |
57 "remoting_sink_observer.cc", | |
58 "remoting_sink_observer.h", | |
59 "remoting_source_impl.cc", | |
60 "remoting_source_impl.h", | |
61 "triggers.h", | 63 "triggers.h", |
62 ] | 64 ] |
| 65 |
63 deps = [ | 66 deps = [ |
64 ":rpc", | 67 ":rpc", |
65 "//base", | 68 "//base", |
66 "//media", | 69 "//media", |
67 "//media/mojo/interfaces:remoting", | 70 "//media/mojo/interfaces:remoting", |
68 "//mojo/public/cpp/bindings", | 71 "//mojo/public/cpp/bindings", |
69 "//skia", | 72 "//skia", |
70 "//ui/gfx", | 73 "//ui/gfx", |
71 ] | 74 ] |
72 } | 75 } |
73 | 76 |
74 source_set("media_remoting_tests") { | 77 source_set("media_remoting_tests") { |
75 testonly = true | 78 testonly = true |
76 sources = [ | 79 sources = [ |
77 "fake_remoting_controller.cc", | 80 "courier_renderer_unittest.cc", |
78 "fake_remoting_controller.h", | 81 "demuxer_stream_adapter_unittest.cc", |
79 "fake_remoting_demuxer_stream_provider.cc", | 82 "fake_demuxer_stream_provider.cc", |
80 "fake_remoting_demuxer_stream_provider.h", | 83 "fake_demuxer_stream_provider.h", |
81 "remote_demuxer_stream_adapter_unittest.cc", | 84 "fake_remoter.cc", |
82 "remote_renderer_impl_unittest.cc", | 85 "fake_remoter.h", |
83 "remoting_renderer_controller_unittest.cc", | 86 "proto_utils_unittest.cc", |
84 "rpc/proto_utils_unittest.cc", | 87 "renderer_controller_unittest.cc", |
85 "rpc/rpc_broker_unittest.cc", | 88 "rpc_broker_unittest.cc", |
86 ] | 89 ] |
87 | 90 |
88 deps = [ | 91 deps = [ |
89 ":remoting", | 92 ":remoting", |
90 ":rpc", | 93 ":rpc", |
91 "//base", | 94 "//base", |
92 "//base/test:test_support", | 95 "//base/test:test_support", |
93 "//media", | 96 "//media", |
94 "//media/base:test_support", | 97 "//media/base:test_support", |
95 "//media/mojo/interfaces:remoting", | 98 "//media/mojo/interfaces:remoting", |
96 "//testing/gmock", | 99 "//testing/gmock", |
97 "//testing/gtest", | 100 "//testing/gtest", |
98 "//ui/gfx:test_support", | 101 "//ui/gfx:test_support", |
99 "//ui/gfx/geometry", | 102 "//ui/gfx/geometry", |
100 "//url", | 103 "//url", |
101 ] | 104 ] |
102 } | 105 } |
103 | 106 |
104 test("media_remoting_unittests") { | 107 test("media_remoting_unittests") { |
105 deps = [ | 108 deps = [ |
106 ":media_remoting_tests", | 109 ":media_remoting_tests", |
107 "//media/test:run_all_unittests", | 110 "//media/test:run_all_unittests", |
108 ] | 111 ] |
109 } | 112 } |
OLD | NEW |