kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("video") { |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 12 | sources = [ |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 13 | "call_stats.cc", |
| 14 | "call_stats.h", |
mflodman | 15d8357 | 2016-10-06 08:35:11 -0700 | [diff] [blame] | 15 | "encoder_rtcp_feedback.cc", |
| 16 | "encoder_rtcp_feedback.h", |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 17 | "overuse_frame_detector.cc", |
| 18 | "overuse_frame_detector.h", |
| 19 | "payload_router.cc", |
| 20 | "payload_router.h", |
palmkvist | 349092b | 2016-12-13 02:45:57 -0800 | [diff] [blame] | 21 | "quality_threshold.cc", |
| 22 | "quality_threshold.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 23 | "receive_statistics_proxy.cc", |
| 24 | "receive_statistics_proxy.h", |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 25 | "report_block_stats.cc", |
| 26 | "report_block_stats.h", |
mflodman | 4cd2790 | 2016-08-05 06:28:45 -0700 | [diff] [blame] | 27 | "rtp_streams_synchronizer.cc", |
| 28 | "rtp_streams_synchronizer.h", |
nisse | b1f2ff9 | 2017-06-09 04:01:55 -0700 | [diff] [blame] | 29 | "rtp_video_stream_receiver.cc", |
| 30 | "rtp_video_stream_receiver.h", |
asapersson | 35151f3 | 2016-05-02 23:44:01 -0700 | [diff] [blame] | 31 | "send_delay_stats.cc", |
| 32 | "send_delay_stats.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 33 | "send_statistics_proxy.cc", |
| 34 | "send_statistics_proxy.h", |
asapersson | 0e9d6d9 | 2016-05-23 06:07:55 -0700 | [diff] [blame] | 35 | "stats_counter.cc", |
| 36 | "stats_counter.h", |
Peter Boström | 7623ce4 | 2015-12-09 12:13:30 +0100 | [diff] [blame] | 37 | "stream_synchronization.cc", |
| 38 | "stream_synchronization.h", |
charujain | bf6a45b | 2016-11-03 04:21:42 -0700 | [diff] [blame] | 39 | "transport_adapter.cc", |
| 40 | "transport_adapter.h", |
Ilya Nikolaevskiy | 94150ee | 2018-05-23 11:53:19 +0200 | [diff] [blame] | 41 | "video_quality_observer.cc", |
| 42 | "video_quality_observer.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 43 | "video_receive_stream.cc", |
| 44 | "video_receive_stream.h", |
| 45 | "video_send_stream.cc", |
| 46 | "video_send_stream.h", |
Sebastian Jansson | 8e0b15b | 2018-04-18 19:19:22 +0200 | [diff] [blame] | 47 | "video_send_stream_impl.cc", |
| 48 | "video_send_stream_impl.h", |
mflodman | cfc8e3b | 2016-05-03 21:22:04 -0700 | [diff] [blame] | 49 | "video_stream_decoder.cc", |
| 50 | "video_stream_decoder.h", |
mflodman | cc3d442 | 2017-08-03 08:27:51 -0700 | [diff] [blame] | 51 | "video_stream_encoder.cc", |
| 52 | "video_stream_encoder.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 53 | ] |
| 54 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 55 | if (!build_with_chromium && is_clang) { |
| 56 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 57 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 +0000 | [diff] [blame] | 58 | } |
| 59 | |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 60 | deps = [ |
| 61 | "..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 62 | "../:typedefs", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 63 | "../api:fec_controller_api", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 64 | "../api:libjingle_peerconnection_api", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 65 | "../api:transport_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 66 | "../api/video:video_frame", |
| 67 | "../api/video:video_frame_i420", |
Niels Möller | 0327c2d | 2018-05-21 14:09:31 +0200 | [diff] [blame] | 68 | "../api/video:video_stream_encoder", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 69 | "../api/video_codecs:video_codecs_api", |
Mirko Bonadei | 245660a | 2017-10-10 14:38:11 +0200 | [diff] [blame] | 70 | "../call:bitrate_allocator", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 71 | "../call:call_interfaces", |
nisse | d76b7b2 | 2017-06-01 04:02:35 -0700 | [diff] [blame] | 72 | "../call:rtp_interfaces", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 73 | "../call:video_stream_api", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 74 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 75 | "../modules/video_coding:codec_globals_headers", |
Ilya Nikolaevskiy | 8643b78 | 2018-06-07 16:15:40 +0200 | [diff] [blame] | 76 | "../modules/video_coding:nack_module", |
| 77 | "../modules/video_coding:packet", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 78 | "../modules/video_coding:video_codec_interface", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 79 | "../rtc_base:checks", |
Tommi | fef0500 | 2018-02-27 13:51:08 +0100 | [diff] [blame] | 80 | "../rtc_base:stringutils", |
Sebastian Jansson | cabe383 | 2018-01-12 10:54:18 +0100 | [diff] [blame] | 81 | "../rtc_base/experiments:alr_experiment", |
Åsa Persson | a945aee | 2018-04-24 16:53:25 +0200 | [diff] [blame] | 82 | "../rtc_base/experiments:quality_scaling_experiment", |
Karl Wiberg | 80ba333 | 2018-02-05 10:33:35 +0100 | [diff] [blame] | 83 | "../rtc_base/system:fallthrough", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 84 | "../system_wrappers:field_trial_api", |
| 85 | "../system_wrappers:metrics_api", |
Danil Chapovalov | b9b146c | 2018-06-15 12:28:07 +0200 | [diff] [blame] | 86 | "//third_party/abseil-cpp/absl/types:optional", |
nisse | ca5706d | 2017-09-11 02:32:16 -0700 | [diff] [blame] | 87 | |
| 88 | # For RtxReceiveStream. |
| 89 | "../call:rtp_receiver", |
Peter Boström | 2ee2439 | 2015-06-22 07:57:16 +0200 | [diff] [blame] | 90 | "../common_video", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 91 | "../logging:rtc_event_log_api", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 92 | "../modules:module_api", |
Peter Boström | 2ee2439 | 2015-06-22 07:57:16 +0200 | [diff] [blame] | 93 | "../modules/bitrate_controller", |
sprang | ebbf8a8 | 2015-09-21 15:11:14 -0700 | [diff] [blame] | 94 | "../modules/pacing", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 22:46:09 +0100 | [diff] [blame] | 95 | "../modules/remote_bitrate_estimator", |
Peter Boström | 2ee2439 | 2015-06-22 07:57:16 +0200 | [diff] [blame] | 96 | "../modules/rtp_rtcp", |
| 97 | "../modules/utility", |
Peter Boström | 2ee2439 | 2015-06-22 07:57:16 +0200 | [diff] [blame] | 98 | "../modules/video_coding", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 99 | "../modules/video_coding:video_coding_utility", |
Peter Boström | 2ee2439 | 2015-06-22 07:57:16 +0200 | [diff] [blame] | 100 | "../modules/video_processing", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 101 | "../rtc_base:rtc_base_approved", |
| 102 | "../rtc_base:rtc_numerics", |
| 103 | "../rtc_base:rtc_task_queue", |
| 104 | "../rtc_base:sequenced_task_checker", |
| 105 | "../rtc_base:weak_ptr", |
Karl Wiberg | 76b7f51 | 2018-03-22 15:29:03 +0100 | [diff] [blame] | 106 | "../rtc_base/time:timestamp_extrapolator", |
kjellander | 8237abf | 2015-12-08 07:12:06 -0800 | [diff] [blame] | 107 | "../system_wrappers", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 108 | ] |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 109 | |
| 110 | if (!build_with_mozilla) { |
| 111 | deps += [ "../media:rtc_media_base" ] |
| 112 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 113 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 114 | |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 115 | rtc_source_set("video_stream_decoder_impl") { |
| 116 | visibility = [ "*" ] |
Anders Carlsson | 51e23ae | 2018-05-24 13:31:30 +0200 | [diff] [blame] | 117 | |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 118 | sources = [ |
| 119 | "video_stream_decoder_impl.cc", |
| 120 | "video_stream_decoder_impl.h", |
| 121 | ] |
| 122 | |
| 123 | deps = [ |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 124 | "../api/video:encoded_frame", |
| 125 | "../api/video:video_frame", |
| 126 | "../api/video:video_stream_decoder", |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 127 | "../api/video_codecs:video_codecs_api", |
philipel | 9718711 | 2018-03-23 10:43:21 +0100 | [diff] [blame] | 128 | "../modules/video_coding:video_coding", |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 129 | "../rtc_base:rtc_base_approved", |
philipel | 9718711 | 2018-03-23 10:43:21 +0100 | [diff] [blame] | 130 | "../rtc_base:rtc_task_queue_api", |
| 131 | "../system_wrappers:system_wrappers", |
Danil Chapovalov | b9b146c | 2018-06-15 12:28:07 +0200 | [diff] [blame] | 132 | "//third_party/abseil-cpp/absl/types:optional", |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 133 | ] |
philipel | 2fee4d6 | 2018-03-21 16:52:13 +0100 | [diff] [blame] | 134 | } |
| 135 | |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 136 | if (rtc_include_tests) { |
Sebastian Jansson | 652dc91 | 2018-04-19 17:09:15 +0200 | [diff] [blame] | 137 | rtc_source_set("video_mocks") { |
| 138 | testonly = true |
| 139 | sources = [ |
| 140 | "test/mock_video_stream_encoder.h", |
| 141 | ] |
| 142 | deps = [ |
| 143 | ":video", |
| 144 | "../test:test_support", |
| 145 | ] |
| 146 | } |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 147 | rtc_source_set("video_quality_test") { |
| 148 | testonly = true |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 149 | |
| 150 | # Only targets in this file and api/ can depend on this. |
| 151 | visibility = [ |
| 152 | ":*", |
| 153 | "../api:create_video_quality_test_fixture_api", |
| 154 | ] |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 155 | sources = [ |
| 156 | "video_quality_test.cc", |
| 157 | "video_quality_test.h", |
| 158 | ] |
| 159 | deps = [ |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 160 | "../api:fec_controller_api", |
| 161 | "../api:video_quality_test_fixture_api", |
| 162 | "../call:fake_network", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 163 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 164 | "../logging:rtc_event_log_impl_output", |
Mirko Bonadei | 5f99e65 | 2017-12-19 13:40:40 +0100 | [diff] [blame] | 165 | "../media:rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 166 | "../media:rtc_internal_video_codecs", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 167 | "../modules/audio_mixer:audio_mixer_impl", |
| 168 | "../modules/rtp_rtcp", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 169 | "../modules/video_coding:video_coding", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 170 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | 03e6ec9 | 2018-03-09 15:03:26 -0800 | [diff] [blame] | 171 | "../modules/video_coding:webrtc_multiplex", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 172 | "../modules/video_coding:webrtc_vp8", |
| 173 | "../modules/video_coding:webrtc_vp9", |
mbonadei | 95c8f65 | 2017-08-27 23:40:10 -0700 | [diff] [blame] | 174 | "../rtc_base:rtc_base_approved", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 175 | "../rtc_base:rtc_base_tests_utils", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 176 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 177 | "../test:fileutils", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 178 | "../test:perf_test", |
Jianjun Zhu | 037f3e4 | 2017-08-15 21:48:37 +0800 | [diff] [blame] | 179 | "../test:rtp_test_utils", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 180 | "../test:test_common", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 181 | "../test:test_renderer", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 182 | "../test:test_support", |
Edward Lemur | af8659a | 2017-09-27 14:46:24 +0200 | [diff] [blame] | 183 | "../test:test_support_test_artifacts", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 184 | "../test:video_test_common", |
ilnik | 59cac99 | 2017-07-25 05:45:03 -0700 | [diff] [blame] | 185 | "../test:video_test_support", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 186 | ] |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 187 | if (!build_with_chromium && is_clang) { |
| 188 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 189 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 190 | } |
| 191 | } |
| 192 | |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 193 | rtc_source_set("video_full_stack_tests") { |
| 194 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 195 | |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 196 | sources = [ |
| 197 | "full_stack_tests.cc", |
| 198 | ] |
| 199 | deps = [ |
| 200 | ":video_quality_test", |
sprang | 89c4a7e | 2017-06-30 13:27:40 -0700 | [diff] [blame] | 201 | "../modules/pacing:pacing", |
Sebastian Jansson | f851888 | 2018-05-31 14:52:59 +0200 | [diff] [blame] | 202 | "../rtc_base:rtc_base_approved", |
Sebastian Jansson | cabe383 | 2018-01-12 10:54:18 +0100 | [diff] [blame] | 203 | "../rtc_base/experiments:alr_experiment", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 204 | "../test:field_trial", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 205 | "../test:test_common", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 206 | "../test:test_support", |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 207 | "//testing/gtest", |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 208 | ] |
| 209 | if (!build_with_chromium && is_clang) { |
| 210 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 211 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 212 | } |
| 213 | if (rtc_use_h264) { |
| 214 | defines = [ "WEBRTC_USE_H264" ] |
| 215 | } |
| 216 | } |
| 217 | |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 218 | rtc_executable("video_loopback") { |
| 219 | testonly = true |
| 220 | sources = [ |
| 221 | "video_loopback.cc", |
| 222 | ] |
| 223 | deps = [ |
| 224 | ":video_quality_test", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 225 | "../rtc_base:rtc_base_approved", |
Bjorn Terelius | edab301 | 2018-01-31 17:23:40 +0100 | [diff] [blame] | 226 | "../system_wrappers:field_trial_default", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 227 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 228 | "../system_wrappers:runtime_enabled_features_default", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 229 | "../test:field_trial", |
| 230 | "../test:run_test", |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 231 | "../test:run_test_interface", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 232 | "../test:test_common", |
| 233 | "../test:test_renderer", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 234 | "../test:test_support", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 235 | "//testing/gtest", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 236 | ] |
| 237 | if (!build_with_chromium && is_clang) { |
| 238 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 239 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | rtc_executable("screenshare_loopback") { |
| 244 | testonly = true |
| 245 | sources = [ |
| 246 | "screenshare_loopback.cc", |
| 247 | ] |
| 248 | |
| 249 | deps = [ |
| 250 | ":video_quality_test", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 251 | "../rtc_base:rtc_base_approved", |
Bjorn Terelius | edab301 | 2018-01-31 17:23:40 +0100 | [diff] [blame] | 252 | "../system_wrappers:field_trial_default", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 253 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 254 | "../system_wrappers:runtime_enabled_features_default", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 255 | "../test:field_trial", |
| 256 | "../test:run_test", |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 257 | "../test:run_test_interface", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 258 | "../test:test_common", |
| 259 | "../test:test_renderer", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 260 | "../test:test_support", |
kjellander | a3cac05 | 2016-10-24 01:52:39 -0700 | [diff] [blame] | 261 | ] |
| 262 | if (!build_with_chromium && is_clang) { |
| 263 | # Suppress warnings from Chrome's Clang plugins. |
| 264 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 265 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 266 | } |
| 267 | } |
| 268 | |
Ilya Nikolaevskiy | 255d1cd | 2017-12-21 18:02:59 +0100 | [diff] [blame] | 269 | rtc_executable("sv_loopback") { |
| 270 | testonly = true |
| 271 | sources = [ |
| 272 | "sv_loopback.cc", |
| 273 | ] |
| 274 | deps = [ |
| 275 | ":video_quality_test", |
| 276 | "../rtc_base:rtc_base_approved", |
Bjorn Terelius | edab301 | 2018-01-31 17:23:40 +0100 | [diff] [blame] | 277 | "../system_wrappers:field_trial_default", |
Ilya Nikolaevskiy | 255d1cd | 2017-12-21 18:02:59 +0100 | [diff] [blame] | 278 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 279 | "../system_wrappers:runtime_enabled_features_default", |
Ilya Nikolaevskiy | 255d1cd | 2017-12-21 18:02:59 +0100 | [diff] [blame] | 280 | "../test:field_trial", |
| 281 | "../test:run_test", |
| 282 | "../test:run_test_interface", |
| 283 | "../test:test_common", |
| 284 | "../test:test_renderer", |
| 285 | "../test:test_support", |
Ilya Nikolaevskiy | 255d1cd | 2017-12-21 18:02:59 +0100 | [diff] [blame] | 286 | "//testing/gtest", |
| 287 | ] |
| 288 | if (!build_with_chromium && is_clang) { |
| 289 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 290 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 291 | } |
| 292 | } |
| 293 | |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 294 | rtc_executable("video_replay") { |
| 295 | testonly = true |
| 296 | sources = [ |
| 297 | "replay.cc", |
| 298 | ] |
| 299 | deps = [ |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 300 | "..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 301 | "../:typedefs", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 302 | "../api/video_codecs:video_codecs_api", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 303 | "../call:call_interfaces", |
| 304 | "../common_video", |
| 305 | "../logging:rtc_event_log_api", |
| 306 | "../modules/rtp_rtcp", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 307 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 308 | "../rtc_base:rtc_base_approved", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 309 | "../system_wrappers", |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 310 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 311 | "../system_wrappers:runtime_enabled_features_default", |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 312 | "../test:field_trial", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 313 | "../test:rtp_test_utils", |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 314 | "../test:run_test", |
mbonadei | 9c296b3 | 2017-09-05 05:11:41 -0700 | [diff] [blame] | 315 | "../test:run_test_interface", |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 316 | "../test:test_common", |
| 317 | "../test:test_renderer", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 318 | "../test:test_support", |
| 319 | "../test:video_test_common", |
philipel | 99b6345 | 2017-08-25 07:24:21 -0700 | [diff] [blame] | 320 | "../test:video_test_support", |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 321 | ] |
stefan | 64427e5 | 2016-12-20 07:26:58 -0800 | [diff] [blame] | 322 | if (!build_with_chromium && is_clang) { |
| 323 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 324 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 325 | } |
| 326 | } |
| 327 | |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 328 | # TODO(pbos): Rename test suite. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 329 | rtc_source_set("video_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 330 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 331 | |
hta | 9aa9688 | 2016-12-06 05:36:03 -0800 | [diff] [blame] | 332 | defines = [] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 333 | sources = [ |
| 334 | "call_stats_unittest.cc", |
mflodman | 15d8357 | 2016-10-06 08:35:11 -0700 | [diff] [blame] | 335 | "encoder_rtcp_feedback_unittest.cc", |
Sebastian Jansson | c501713 | 2018-02-02 16:24:16 +0100 | [diff] [blame] | 336 | "end_to_end_tests/bandwidth_tests.cc", |
| 337 | "end_to_end_tests/call_operation_tests.cc", |
| 338 | "end_to_end_tests/codec_tests.cc", |
| 339 | "end_to_end_tests/config_tests.cc", |
| 340 | "end_to_end_tests/extended_reports_tests.cc", |
| 341 | "end_to_end_tests/fec_tests.cc", |
| 342 | "end_to_end_tests/histogram_tests.cc", |
| 343 | "end_to_end_tests/log_tests.cc", |
Åsa Persson | 96c9fc4 | 2018-05-23 12:47:20 +0200 | [diff] [blame] | 344 | "end_to_end_tests/multi_codec_receive_tests.cc", |
Sebastian Jansson | c501713 | 2018-02-02 16:24:16 +0100 | [diff] [blame] | 345 | "end_to_end_tests/multi_stream_tester.cc", |
| 346 | "end_to_end_tests/multi_stream_tester.h", |
| 347 | "end_to_end_tests/multi_stream_tests.cc", |
| 348 | "end_to_end_tests/network_state_tests.cc", |
| 349 | "end_to_end_tests/probing_tests.cc", |
Sebastian Jansson | d78f705 | 2018-04-23 13:35:37 +0200 | [diff] [blame] | 350 | "end_to_end_tests/receive_time_tests.cc", |
Sebastian Jansson | c501713 | 2018-02-02 16:24:16 +0100 | [diff] [blame] | 351 | "end_to_end_tests/retransmission_tests.cc", |
| 352 | "end_to_end_tests/rtp_rtcp_tests.cc", |
| 353 | "end_to_end_tests/ssrc_tests.cc", |
| 354 | "end_to_end_tests/stats_tests.cc", |
| 355 | "end_to_end_tests/transport_feedback_tests.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 356 | "overuse_frame_detector_unittest.cc", |
| 357 | "payload_router_unittest.cc", |
Sebastian Jansson | e92f93f | 2017-06-22 14:44:04 +0200 | [diff] [blame] | 358 | "picture_id_tests.cc", |
Åsa Persson | 2027b66 | 2018-05-02 18:08:06 +0200 | [diff] [blame] | 359 | "quality_scaling_tests.cc", |
palmkvist | 349092b | 2016-12-13 02:45:57 -0800 | [diff] [blame] | 360 | "quality_threshold_unittest.cc", |
sakal | e5ba44e | 2016-10-26 07:09:24 -0700 | [diff] [blame] | 361 | "receive_statistics_proxy_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 362 | "report_block_stats_unittest.cc", |
nisse | b1f2ff9 | 2017-06-09 04:01:55 -0700 | [diff] [blame] | 363 | "rtp_video_stream_receiver_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 364 | "send_delay_stats_unittest.cc", |
| 365 | "send_statistics_proxy_unittest.cc", |
| 366 | "stats_counter_unittest.cc", |
| 367 | "stream_synchronization_unittest.cc", |
johan | f2183ff | 2017-02-28 01:33:09 -0800 | [diff] [blame] | 368 | "video_receive_stream_unittest.cc", |
Sebastian Jansson | 652dc91 | 2018-04-19 17:09:15 +0200 | [diff] [blame] | 369 | "video_send_stream_impl_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 370 | "video_send_stream_tests.cc", |
mflodman | cc3d442 | 2017-08-03 08:27:51 -0700 | [diff] [blame] | 371 | "video_stream_encoder_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 372 | ] |
| 373 | deps = [ |
| 374 | ":video", |
Sebastian Jansson | 652dc91 | 2018-04-19 17:09:15 +0200 | [diff] [blame] | 375 | ":video_mocks", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 376 | "../api/video:video_frame", |
| 377 | "../api/video:video_frame_i420", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 378 | "../api/video_codecs:video_codecs_api", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 379 | "../call:call_interfaces", |
Sebastian Jansson | 652dc91 | 2018-04-19 17:09:15 +0200 | [diff] [blame] | 380 | "../call:mock_bitrate_allocator", |
eladalon | e2173d9 | 2017-07-28 10:05:45 -0700 | [diff] [blame] | 381 | "../call:mock_rtp_interfaces", |
nisse | 0f15f92 | 2017-06-21 01:05:22 -0700 | [diff] [blame] | 382 | "../call:rtp_receiver", |
sprang | db2a9fc | 2017-08-09 06:42:32 -0700 | [diff] [blame] | 383 | "../call:rtp_sender", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 384 | "../call:video_stream_api", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 385 | "../common_video", |
| 386 | "../logging:rtc_event_log_api", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 387 | "../media:rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 388 | "../media:rtc_internal_video_codecs", |
brandtr | 5e17175 | 2017-05-23 03:32:16 -0700 | [diff] [blame] | 389 | "../media:rtc_media", |
magjed | ceecea4 | 2016-11-28 07:20:21 -0800 | [diff] [blame] | 390 | "../media:rtc_media_base", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 391 | "../media:rtc_media_tests_utils", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 392 | "../modules:module_api", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 393 | "../modules/pacing", |
| 394 | "../modules/rtp_rtcp", |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 395 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 396 | "../modules/rtp_rtcp:rtp_rtcp_format", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 397 | "../modules/utility", |
| 398 | "../modules/video_coding", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 399 | "../modules/video_coding:codec_globals_headers", |
Ilya Nikolaevskiy | 8643b78 | 2018-06-07 16:15:40 +0200 | [diff] [blame] | 400 | "../modules/video_coding:packet", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 401 | "../modules/video_coding:video_codec_interface", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 402 | "../modules/video_coding:video_coding_utility", |
| 403 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | ef76e5a | 2018-02-12 13:36:41 -0800 | [diff] [blame] | 404 | "../modules/video_coding:webrtc_multiplex", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 405 | "../modules/video_coding:webrtc_vp8", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 406 | "../modules/video_coding:webrtc_vp9", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 407 | "../rtc_base:checks", |
| 408 | "../rtc_base:rate_limiter", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 409 | "../rtc_base:rtc_base_approved", |
| 410 | "../rtc_base:rtc_base_tests_utils", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 411 | "../rtc_base:rtc_numerics", |
Tommi | 38c5d93 | 2018-03-27 23:11:09 +0200 | [diff] [blame] | 412 | "../rtc_base:rtc_task_queue", |
Sebastian Jansson | 652dc91 | 2018-04-19 17:09:15 +0200 | [diff] [blame] | 413 | "../rtc_base:rtc_task_queue_for_test", |
Sebastian Jansson | cabe383 | 2018-01-12 10:54:18 +0100 | [diff] [blame] | 414 | "../rtc_base/experiments:alr_experiment", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 415 | "../system_wrappers", |
| 416 | "../system_wrappers:field_trial_default", |
| 417 | "../system_wrappers:metrics_api", |
| 418 | "../system_wrappers:metrics_default", |
| 419 | "../test:direct_transport", |
| 420 | "../test:field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 421 | "../test:fileutils", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 422 | "../test:perf_test", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 423 | "../test:rtp_test_utils", |
| 424 | "../test:test_common", |
| 425 | "../test:test_support", |
| 426 | "../test:video_test_common", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 427 | "//testing/gtest", |
Danil Chapovalov | b9b146c | 2018-06-15 12:28:07 +0200 | [diff] [blame] | 428 | "//third_party/abseil-cpp/absl/types:optional", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 429 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 430 | if (!build_with_chromium && is_clang) { |
| 431 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 432 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 433 | } |
brandtr | 445fb8f | 2016-11-14 04:11:23 -0800 | [diff] [blame] | 434 | if (rtc_use_h264) { |
hta | 9aa9688 | 2016-12-06 05:36:03 -0800 | [diff] [blame] | 435 | defines += [ "WEBRTC_USE_H264" ] |
brandtr | 445fb8f | 2016-11-14 04:11:23 -0800 | [diff] [blame] | 436 | } |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 437 | if (!build_with_mozilla) { |
| 438 | deps += [ "../media:rtc_media_base" ] |
| 439 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 440 | } |
| 441 | } |