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