OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 component("cast") { |
| 6 deps = [ |
| 7 ":sender", |
| 8 ":receiver", |
| 9 ] |
| 10 } |
| 11 |
| 12 # Common code shared by all cast components. |
| 13 source_set("common") { |
| 14 sources = [ |
| 15 "cast_config.cc", |
| 16 "cast_config.h", |
| 17 "cast_defines.h", |
| 18 "cast_environment.cc", |
| 19 "cast_environment.h", |
| 20 "common/clock_drift_smoother.cc", |
| 21 "common/clock_drift_smoother.h", |
| 22 "common/transport_encryption_handler.cc", |
| 23 "common/transport_encryption_handler.h", |
| 24 "logging/encoding_event_subscriber.cc", |
| 25 "logging/encoding_event_subscriber.h", |
| 26 "logging/log_deserializer.cc", |
| 27 "logging/log_deserializer.h", |
| 28 "logging/log_serializer.cc", |
| 29 "logging/log_serializer.h", |
| 30 "logging/logging_defines.cc", |
| 31 "logging/logging_defines.h", |
| 32 "logging/logging_impl.cc", |
| 33 "logging/logging_impl.h", |
| 34 "logging/logging_raw.cc", |
| 35 "logging/logging_raw.h", |
| 36 "logging/raw_event_subscriber.h", |
| 37 "logging/raw_event_subscriber_bundle.cc", |
| 38 "logging/raw_event_subscriber_bundle.h", |
| 39 "logging/receiver_time_offset_estimator.h", |
| 40 "logging/receiver_time_offset_estimator_impl.cc", |
| 41 "logging/receiver_time_offset_estimator_impl.h", |
| 42 "logging/simple_event_subscriber.cc", |
| 43 "logging/simple_event_subscriber.h", |
| 44 "logging/stats_event_subscriber.cc", |
| 45 "logging/stats_event_subscriber.h", |
| 46 ] |
| 47 |
| 48 deps = [ |
| 49 "//base", |
| 50 "//crypto", |
| 51 "//media/cast/logging/proto", |
| 52 "//net", |
| 53 ] |
| 54 |
| 55 forward_dependent_configs_from = [ |
| 56 "//media/cast/logging/proto", |
| 57 ] |
| 58 } |
| 59 |
| 60 source_set("net") { |
| 61 sources = [ |
| 62 "net/cast_transport_config.cc", |
| 63 "net/cast_transport_config.h", |
| 64 "net/cast_transport_defines.h", |
| 65 "net/cast_transport_sender.h", |
| 66 "net/cast_transport_sender_impl.cc", |
| 67 "net/cast_transport_sender_impl.h", |
| 68 "net/pacing/paced_sender.cc", |
| 69 "net/pacing/paced_sender.h", |
| 70 "net/rtcp/receiver_rtcp_event_subscriber.cc", |
| 71 "net/rtcp/rtcp_defines.cc", |
| 72 "net/rtcp/rtcp_defines.h", |
| 73 "net/rtcp/rtcp.h", |
| 74 "net/rtcp/rtcp.cc", |
| 75 "net/rtcp/rtcp_receiver.cc", |
| 76 "net/rtcp/rtcp_receiver.h", |
| 77 "net/rtcp/rtcp_sender.cc", |
| 78 "net/rtcp/rtcp_sender.h", |
| 79 "net/rtcp/rtcp_utility.cc", |
| 80 "net/rtcp/rtcp_utility.h", |
| 81 "net/rtp/packet_storage.cc", |
| 82 "net/rtp/packet_storage.h", |
| 83 "net/rtp/rtp_packetizer.cc", |
| 84 "net/rtp/rtp_packetizer.h", |
| 85 "net/rtp/rtp_sender.cc", |
| 86 "net/rtp/rtp_sender.h", |
| 87 "net/udp_transport.cc", |
| 88 "net/udp_transport.h", |
| 89 "net/rtp/cast_message_builder.cc", |
| 90 "net/rtp/cast_message_builder.h", |
| 91 "net/rtp/frame_buffer.cc", |
| 92 "net/rtp/frame_buffer.h", |
| 93 "net/rtp/frame_id_map.cc", |
| 94 "net/rtp/frame_id_map.h", |
| 95 "net/rtp/framer.cc", |
| 96 "net/rtp/framer.h", |
| 97 "net/rtp/receiver_stats.cc", |
| 98 "net/rtp/receiver_stats.h", |
| 99 "net/rtp/rtp_parser.cc", |
| 100 "net/rtp/rtp_parser.h", |
| 101 "net/rtp/rtp_receiver_defines.cc", |
| 102 "net/rtp/rtp_receiver_defines.h", |
| 103 ] |
| 104 |
| 105 deps = [ |
| 106 ":common", |
| 107 ] |
| 108 } |
| 109 |
| 110 source_set("sender") { |
| 111 sources = [ |
| 112 "cast_sender.h", |
| 113 # TODO(hclam): libvpx support. |
| 114 # "cast_sender_impl.cc", |
| 115 "cast_sender_impl.h", |
| 116 "sender/audio_encoder.h", |
| 117 "sender/audio_encoder.cc", |
| 118 "sender/audio_sender.h", |
| 119 "sender/audio_sender.cc", |
| 120 "sender/congestion_control.h", |
| 121 "sender/congestion_control.cc", |
| 122 "sender/external_video_encoder.h", |
| 123 "sender/external_video_encoder.cc", |
| 124 "sender/fake_software_video_encoder.h", |
| 125 "sender/fake_software_video_encoder.cc", |
| 126 "sender/frame_sender.cc", |
| 127 "sender/frame_sender.h", |
| 128 "sender/rtp_timestamp_helper.cc", |
| 129 "sender/rtp_timestamp_helper.h", |
| 130 "sender/software_video_encoder.h", |
| 131 # TODO(hclam): libvpx support. |
| 132 # "sender/video_encoder.h", |
| 133 # "sender/video_encoder_impl.h", |
| 134 # "sender/video_encoder_impl.cc", |
| 135 # "sender/video_sender.h", |
| 136 # "sender/video_sender.cc", |
| 137 # "sender/vp8_encoder.cc", |
| 138 # "sender/vp8_encoder.h", |
| 139 ] |
| 140 |
| 141 deps = [ |
| 142 ":common", |
| 143 ":net", |
| 144 "//media", |
| 145 "//media:shared_memory_support", |
| 146 "//third_party/opus", |
| 147 # TODO(hclam): libvpx support. |
| 148 # "//third_party/libvpx", |
| 149 ] |
| 150 } |
| 151 |
| 152 source_set("receiver") { |
| 153 sources = [ |
| 154 "cast_receiver.h", |
| 155 "receiver/audio_decoder.cc", |
| 156 "receiver/audio_decoder.h", |
| 157 # TODO(hclam): Libvpx support. |
| 158 # "receiver/cast_receiver_impl.cc", |
| 159 # "receiver/cast_receiver_impl.h", |
| 160 "receiver/frame_receiver.cc", |
| 161 "receiver/frame_receiver.h", |
| 162 # TODO(hclam): Need libvpx support. |
| 163 # "receiver/video_decoder.cc", |
| 164 # "receiver/video_decoder.h", |
| 165 ] |
| 166 |
| 167 deps = [ |
| 168 ":common", |
| 169 ":net", |
| 170 "//media", |
| 171 "//media:shared_memory_support", |
| 172 "//third_party/opus", |
| 173 # TODO(hclam): libvpx support. |
| 174 # "//third_party/libvpx", |
| 175 "//ui/gfx", |
| 176 ] |
| 177 } |
| 178 |
| 179 source_set("test_support") { |
| 180 sources = [ |
| 181 # TODO(hclam): FFmpeg. |
| 182 # "test/fake_media_source.cc", |
| 183 # "test/fake_media_source.h", |
| 184 "test/fake_single_thread_task_runner.cc", |
| 185 "test/fake_single_thread_task_runner.h", |
| 186 "test/skewed_single_thread_task_runner.cc", |
| 187 "test/skewed_single_thread_task_runner.h", |
| 188 "test/skewed_tick_clock.cc", |
| 189 "test/skewed_tick_clock.h", |
| 190 "test/loopback_transport.cc", |
| 191 "test/loopback_transport.h", |
| 192 "test/utility/audio_utility.cc", |
| 193 "test/utility/audio_utility.h", |
| 194 "test/utility/barcode.cc", |
| 195 "test/utility/barcode.h", |
| 196 "test/utility/default_config.cc", |
| 197 "test/utility/default_config.h", |
| 198 # TODO(hclam): libvpx support. |
| 199 # "test/utility/in_process_receiver.cc", |
| 200 # "test/utility/in_process_receiver.h", |
| 201 "test/utility/input_builder.cc", |
| 202 "test/utility/input_builder.h", |
| 203 "test/utility/net_utility.cc", |
| 204 "test/utility/net_utility.h", |
| 205 "test/utility/standalone_cast_environment.cc", |
| 206 "test/utility/standalone_cast_environment.h", |
| 207 "test/utility/video_utility.cc", |
| 208 "test/utility/video_utility.h", |
| 209 "test/utility/udp_proxy.cc", |
| 210 "test/utility/udp_proxy.h", |
| 211 ] |
| 212 |
| 213 deps = [ |
| 214 ":net", |
| 215 ":receiver", |
| 216 "//base/test:test_support", |
| 217 "//testing/gtest", |
| 218 # TODO(hclam): Does not build on ARM yet. |
| 219 # "//third_party/ffmpeg", |
| 220 "//third_party/libyuv", |
| 221 "//third_party/mt19937ar", |
| 222 "//ui/gfx", |
| 223 ] |
| 224 } |
| 225 |
| 226 test("cast_unittests") { |
| 227 sources = [ |
| 228 "logging/encoding_event_subscriber_unittest.cc", |
| 229 "logging/serialize_deserialize_test.cc", |
| 230 "logging/logging_impl_unittest.cc", |
| 231 "logging/logging_raw_unittest.cc", |
| 232 "logging/receiver_time_offset_estimator_impl_unittest.cc", |
| 233 "logging/simple_event_subscriber_unittest.cc", |
| 234 "logging/stats_event_subscriber_unittest.cc", |
| 235 "net/cast_transport_sender_impl_unittest.cc", |
| 236 "net/pacing/mock_paced_packet_sender.cc", |
| 237 "net/pacing/mock_paced_packet_sender.h", |
| 238 "net/pacing/paced_sender_unittest.cc", |
| 239 "net/rtcp/mock_rtcp_receiver_feedback.cc", |
| 240 "net/rtcp/mock_rtcp_receiver_feedback.h", |
| 241 "net/rtcp/rtcp_receiver_unittest.cc", |
| 242 "net/rtcp/rtcp_sender_unittest.cc", |
| 243 "net/rtcp/rtcp_unittest.cc", |
| 244 "net/rtcp/receiver_rtcp_event_subscriber_unittest.cc", |
| 245 # TODO(miu): The following two are test utility modules. Rename/move the files. |
| 246 "net/rtcp/test_rtcp_packet_builder.cc", |
| 247 "net/rtcp/test_rtcp_packet_builder.h", |
| 248 "net/rtp/cast_message_builder_unittest.cc", |
| 249 "net/rtp/frame_buffer_unittest.cc", |
| 250 "net/rtp/framer_unittest.cc", |
| 251 "net/rtp/mock_rtp_payload_feedback.cc", |
| 252 "net/rtp/mock_rtp_payload_feedback.h", |
| 253 "net/rtp/packet_storage_unittest.cc", |
| 254 "net/rtp/receiver_stats_unittest.cc", |
| 255 "net/rtp/rtp_header_parser.cc", |
| 256 "net/rtp/rtp_header_parser.h", |
| 257 "net/rtp/rtp_packet_builder.cc", |
| 258 "net/rtp/rtp_parser_unittest.cc", |
| 259 "net/rtp/rtp_packetizer_unittest.cc", |
| 260 "net/rtp/rtp_receiver_defines.h", |
| 261 "net/udp_transport_unittest.cc", |
| 262 "receiver/audio_decoder_unittest.cc", |
| 263 "receiver/frame_receiver_unittest.cc", |
| 264 # TODO(hclam): libvpx support. |
| 265 # "receiver/video_decoder_unittest.cc", |
| 266 "sender/audio_encoder_unittest.cc", |
| 267 "sender/audio_sender_unittest.cc", |
| 268 "sender/congestion_control_unittest.cc", |
| 269 "sender/external_video_encoder_unittest.cc", |
| 270 # TODO(hclam): libvpx support. |
| 271 # "sender/video_encoder_impl_unittest.cc", |
| 272 # "sender/video_sender_unittest.cc", |
| 273 # "test/end2end_unittest.cc", |
| 274 "test/fake_receiver_time_offset_estimator.cc", |
| 275 "test/fake_receiver_time_offset_estimator.h", |
| 276 "test/fake_video_encode_accelerator.cc", |
| 277 "test/fake_video_encode_accelerator.h", |
| 278 "test/utility/audio_utility_unittest.cc", |
| 279 "test/utility/barcode_unittest.cc", |
| 280 ] |
| 281 |
| 282 deps = [ |
| 283 ":common", |
| 284 ":receiver", |
| 285 ":sender", |
| 286 ":test_support", |
| 287 "//base/test:run_all_unittests", |
| 288 "//base/test:test_support", |
| 289 "//testing/gmock", |
| 290 "//testing/gtest", |
| 291 ] |
| 292 } |
| 293 |
| 294 executable("generate_barcode_video") { |
| 295 sources = [ |
| 296 "test/utility/generate_barcode_video.cc", |
| 297 ] |
| 298 |
| 299 deps = [ |
| 300 ":test_support", |
| 301 "//base", |
| 302 "//media", |
| 303 ] |
| 304 } |
| 305 |
| 306 executable("generate_timecode_audio") { |
| 307 sources = [ |
| 308 "test/utility/generate_timecode_audio.cc", |
| 309 ] |
| 310 |
| 311 deps = [ |
| 312 ":test_support", |
| 313 "//base", |
| 314 "//media", |
| 315 ] |
| 316 } |
| 317 |
| 318 executable("udp_proxy") { |
| 319 sources = [ |
| 320 "test/utility/udp_proxy_main.cc", |
| 321 ] |
| 322 |
| 323 deps = [ |
| 324 ":test_support", |
| 325 "//base", |
| 326 "//net", |
| 327 ] |
| 328 } |
OLD | NEW |