Chromium Code Reviews| 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") { | |
|
brettw
2014/07/22 17:18:14
Can you put a comment above the 'target_name' in t
Alpha Left Google
2014/07/24 18:24:30
Done.
| |
| 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 "test/fake_media_source.cc", | |
| 182 "test/fake_media_source.h", | |
| 183 "test/fake_single_thread_task_runner.cc", | |
| 184 "test/fake_single_thread_task_runner.h", | |
| 185 "test/skewed_single_thread_task_runner.cc", | |
| 186 "test/skewed_single_thread_task_runner.h", | |
| 187 "test/skewed_tick_clock.cc", | |
| 188 "test/skewed_tick_clock.h", | |
| 189 "test/loopback_transport.cc", | |
| 190 "test/loopback_transport.h", | |
| 191 "test/utility/audio_utility.cc", | |
| 192 "test/utility/audio_utility.h", | |
| 193 "test/utility/barcode.cc", | |
| 194 "test/utility/barcode.h", | |
| 195 "test/utility/default_config.cc", | |
| 196 "test/utility/default_config.h", | |
| 197 # TODO(hclam): libvpx support. | |
| 198 # "test/utility/in_process_receiver.cc", | |
| 199 # "test/utility/in_process_receiver.h", | |
| 200 "test/utility/input_builder.cc", | |
| 201 "test/utility/input_builder.h", | |
| 202 "test/utility/net_utility.cc", | |
| 203 "test/utility/net_utility.h", | |
| 204 "test/utility/standalone_cast_environment.cc", | |
| 205 "test/utility/standalone_cast_environment.h", | |
| 206 "test/utility/video_utility.cc", | |
| 207 "test/utility/video_utility.h", | |
| 208 "test/utility/udp_proxy.cc", | |
| 209 "test/utility/udp_proxy.h", | |
| 210 ] | |
| 211 | |
| 212 deps = [ | |
| 213 ":net", | |
| 214 ":receiver", | |
| 215 "//base/test:test_support", | |
| 216 "//testing/gtest", | |
| 217 "//third_party/ffmpeg", | |
| 218 "//third_party/libyuv", | |
| 219 "//third_party/mt19937ar", | |
| 220 "//ui/gfx", | |
| 221 ] | |
| 222 } | |
| 223 | |
| 224 test("cast_unittests") { | |
| 225 sources = [ | |
| 226 "logging/encoding_event_subscriber_unittest.cc", | |
| 227 "logging/serialize_deserialize_test.cc", | |
| 228 "logging/logging_impl_unittest.cc", | |
| 229 "logging/logging_raw_unittest.cc", | |
| 230 "logging/receiver_time_offset_estimator_impl_unittest.cc", | |
| 231 "logging/simple_event_subscriber_unittest.cc", | |
| 232 "logging/stats_event_subscriber_unittest.cc", | |
| 233 "net/cast_transport_sender_impl_unittest.cc", | |
| 234 "net/pacing/mock_paced_packet_sender.cc", | |
| 235 "net/pacing/mock_paced_packet_sender.h", | |
| 236 "net/pacing/paced_sender_unittest.cc", | |
| 237 "net/rtcp/mock_rtcp_receiver_feedback.cc", | |
| 238 "net/rtcp/mock_rtcp_receiver_feedback.h", | |
| 239 "net/rtcp/rtcp_receiver_unittest.cc", | |
| 240 "net/rtcp/rtcp_sender_unittest.cc", | |
| 241 "net/rtcp/rtcp_unittest.cc", | |
| 242 "net/rtcp/receiver_rtcp_event_subscriber_unittest.cc", | |
| 243 # TODO(miu): The following two are test utility modules. Rename/move the files. | |
| 244 "net/rtcp/test_rtcp_packet_builder.cc", | |
| 245 "net/rtcp/test_rtcp_packet_builder.h", | |
| 246 "net/rtp/cast_message_builder_unittest.cc", | |
| 247 "net/rtp/frame_buffer_unittest.cc", | |
| 248 "net/rtp/framer_unittest.cc", | |
| 249 "net/rtp/mock_rtp_payload_feedback.cc", | |
| 250 "net/rtp/mock_rtp_payload_feedback.h", | |
| 251 "net/rtp/packet_storage_unittest.cc", | |
| 252 "net/rtp/receiver_stats_unittest.cc", | |
| 253 "net/rtp/rtp_header_parser.cc", | |
| 254 "net/rtp/rtp_header_parser.h", | |
| 255 "net/rtp/rtp_packet_builder.cc", | |
| 256 "net/rtp/rtp_parser_unittest.cc", | |
| 257 "net/rtp/rtp_packetizer_unittest.cc", | |
| 258 "net/rtp/rtp_receiver_defines.h", | |
| 259 "net/udp_transport_unittest.cc", | |
| 260 "receiver/audio_decoder_unittest.cc", | |
| 261 "receiver/frame_receiver_unittest.cc", | |
| 262 # TODO(hclam): libvpx support. | |
| 263 # "receiver/video_decoder_unittest.cc", | |
| 264 "sender/audio_encoder_unittest.cc", | |
| 265 "sender/audio_sender_unittest.cc", | |
| 266 "sender/congestion_control_unittest.cc", | |
| 267 "sender/external_video_encoder_unittest.cc", | |
| 268 # TODO(hclam): libvpx support. | |
| 269 # "sender/video_encoder_impl_unittest.cc", | |
| 270 # "sender/video_sender_unittest.cc", | |
| 271 # "test/end2end_unittest.cc", | |
| 272 "test/fake_receiver_time_offset_estimator.cc", | |
| 273 "test/fake_receiver_time_offset_estimator.h", | |
| 274 "test/fake_video_encode_accelerator.cc", | |
| 275 "test/fake_video_encode_accelerator.h", | |
| 276 "test/utility/audio_utility_unittest.cc", | |
| 277 "test/utility/barcode_unittest.cc", | |
| 278 ] | |
| 279 | |
| 280 deps = [ | |
| 281 ":common", | |
| 282 ":receiver", | |
| 283 ":sender", | |
| 284 ":test_support", | |
| 285 "//base/test:run_all_unittests", | |
| 286 "//base/test:test_support", | |
| 287 "//testing/gmock", | |
| 288 "//testing/gtest", | |
| 289 ] | |
| 290 } | |
| 291 | |
| 292 executable("generate_barcode_video") { | |
| 293 sources = [ | |
| 294 "test/utility/generate_barcode_video.cc", | |
| 295 ] | |
| 296 | |
| 297 deps = [ | |
| 298 ":test_support", | |
| 299 "//base", | |
| 300 "//media", | |
| 301 ] | |
| 302 } | |
| 303 | |
| 304 executable("generate_timecode_audio") { | |
| 305 sources = [ | |
| 306 "test/utility/generate_timecode_audio.cc", | |
| 307 ] | |
| 308 | |
| 309 deps = [ | |
| 310 ":test_support", | |
| 311 "//base", | |
| 312 "//media", | |
| 313 ] | |
| 314 } | |
| 315 | |
| 316 executable("udp_proxy") { | |
| 317 sources = [ | |
| 318 "test/utility/udp_proxy_main.cc", | |
| 319 ] | |
| 320 | |
| 321 deps = [ | |
| 322 ":test_support", | |
| 323 "//base", | |
| 324 "//net", | |
| 325 ] | |
| 326 } | |
| OLD | NEW |