kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 | [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 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 | [diff] [blame] | 10 | |
kjellander | b62dbbe | 2016-09-23 07:38:52 | [diff] [blame] | 11 | rtc_static_library("video") { |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 12 | sources = [ |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 13 | "call_stats.cc", |
| 14 | "call_stats.h", |
mflodman | 15d8357 | 2016-10-06 15:35:11 | [diff] [blame] | 15 | "encoder_rtcp_feedback.cc", |
| 16 | "encoder_rtcp_feedback.h", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [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 10:45:57 | [diff] [blame] | 21 | "quality_threshold.cc", |
| 22 | "quality_threshold.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 23 | "receive_statistics_proxy.cc", |
| 24 | "receive_statistics_proxy.h", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 25 | "report_block_stats.cc", |
| 26 | "report_block_stats.h", |
mflodman | fa66659 | 2016-04-29 06:15:33 | [diff] [blame] | 27 | "rtp_stream_receiver.cc", |
| 28 | "rtp_stream_receiver.h", |
mflodman | 4cd2790 | 2016-08-05 13:28:45 | [diff] [blame] | 29 | "rtp_streams_synchronizer.cc", |
| 30 | "rtp_streams_synchronizer.h", |
asapersson | 35151f3 | 2016-05-03 06:44:01 | [diff] [blame] | 31 | "send_delay_stats.cc", |
| 32 | "send_delay_stats.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 33 | "send_statistics_proxy.cc", |
| 34 | "send_statistics_proxy.h", |
asapersson | 0e9d6d9 | 2016-05-23 13:07:55 | [diff] [blame] | 35 | "stats_counter.cc", |
| 36 | "stats_counter.h", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 37 | "stream_synchronization.cc", |
| 38 | "stream_synchronization.h", |
charujain | bf6a45b | 2016-11-03 11:21:42 | [diff] [blame] | 39 | "transport_adapter.cc", |
| 40 | "transport_adapter.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 41 | "video_receive_stream.cc", |
| 42 | "video_receive_stream.h", |
| 43 | "video_send_stream.cc", |
| 44 | "video_send_stream.h", |
mflodman | cfc8e3b | 2016-05-04 04:22:04 | [diff] [blame] | 45 | "video_stream_decoder.cc", |
| 46 | "video_stream_decoder.h", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 47 | "vie_encoder.cc", |
| 48 | "vie_encoder.h", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 49 | "vie_remb.cc", |
| 50 | "vie_remb.h", |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 51 | ] |
| 52 | |
kjellander | e40a7ee | 2016-10-17 06:56:12 | [diff] [blame] | 53 | if (!build_with_chromium && is_clang) { |
| 54 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 55 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 788f058 | 2014-08-28 13:51:08 | [diff] [blame] | 56 | } |
| 57 | |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 | [diff] [blame] | 58 | deps = [ |
| 59 | "..:webrtc_common", |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 60 | "../api:transport_api", |
ilnik | d60d06a | 2017-04-05 10:02:20 | [diff] [blame^] | 61 | "../api/video_codecs:video_codecs_api", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 21:46:09 | [diff] [blame] | 62 | "../base:rtc_base_approved", |
terelius | bc5d921 | 2017-01-13 17:14:33 | [diff] [blame] | 63 | "../base:rtc_numerics", |
perkj | 26091b1 | 2016-09-01 08:17:40 | [diff] [blame] | 64 | "../base:rtc_task_queue", |
Peter Boström | 2ee2439 | 2015-06-22 05:57:16 | [diff] [blame] | 65 | "../common_video", |
skvlad | cc91d28 | 2016-10-04 01:31:22 | [diff] [blame] | 66 | "../logging:rtc_event_log_api", |
philipel | 022b54e | 2016-12-20 12:15:59 | [diff] [blame] | 67 | "../media:rtc_media_base", |
Peter Boström | 2ee2439 | 2015-06-22 05:57:16 | [diff] [blame] | 68 | "../modules/bitrate_controller", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 21:46:09 | [diff] [blame] | 69 | "../modules/congestion_controller", |
sprang | ebbf8a8 | 2015-09-21 22:11:14 | [diff] [blame] | 70 | "../modules/pacing", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 21:46:09 | [diff] [blame] | 71 | "../modules/remote_bitrate_estimator", |
Peter Boström | 2ee2439 | 2015-06-22 05:57:16 | [diff] [blame] | 72 | "../modules/rtp_rtcp", |
| 73 | "../modules/utility", |
Peter Boström | 2ee2439 | 2015-06-22 05:57:16 | [diff] [blame] | 74 | "../modules/video_coding", |
| 75 | "../modules/video_processing", |
kjellander | 8237abf | 2015-12-08 15:12:06 | [diff] [blame] | 76 | "../system_wrappers", |
Peter Boström | 7623ce4 | 2015-12-09 11:13:30 | [diff] [blame] | 77 | "../voice_engine", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 | [diff] [blame] | 78 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 | [diff] [blame] | 79 | } |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 80 | |
| 81 | if (rtc_include_tests) { |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 82 | rtc_source_set("video_quality_test") { |
| 83 | testonly = true |
| 84 | sources = [ |
| 85 | "video_quality_test.cc", |
| 86 | "video_quality_test.h", |
| 87 | ] |
| 88 | deps = [ |
ilnik | df92c5c | 2017-02-23 10:08:44 | [diff] [blame] | 89 | "../base:rtc_base_tests_utils", |
brandtr | 696c9c6 | 2016-12-19 13:47:28 | [diff] [blame] | 90 | "../base:rtc_task_queue", |
magjed | ceecea4 | 2016-11-28 15:20:21 | [diff] [blame] | 91 | "../media:rtc_media_base", |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 92 | "../system_wrappers", |
| 93 | "//testing/gtest", |
ehmaldonado | 021eef3 | 2017-01-05 15:09:50 | [diff] [blame] | 94 | "//webrtc/test:test_renderer", |
perkj | c5726c1 | 2017-03-01 11:37:08 | [diff] [blame] | 95 | "//webrtc/test:video_test_common", |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 96 | ] |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 97 | if (!build_with_chromium && is_clang) { |
| 98 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 99 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 100 | } |
| 101 | } |
| 102 | |
ehmaldonado | 021eef3 | 2017-01-05 15:09:50 | [diff] [blame] | 103 | rtc_source_set("video_full_stack_tests") { |
| 104 | testonly = true |
| 105 | sources = [ |
| 106 | "full_stack_tests.cc", |
| 107 | ] |
| 108 | deps = [ |
| 109 | ":video_quality_test", |
| 110 | "//testing/gtest", |
| 111 | "//webrtc/test:test_common", |
| 112 | ] |
| 113 | if (!build_with_chromium && is_clang) { |
| 114 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 115 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 116 | } |
| 117 | if (rtc_use_h264) { |
| 118 | defines = [ "WEBRTC_USE_H264" ] |
| 119 | } |
| 120 | } |
| 121 | |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 122 | rtc_executable("video_loopback") { |
| 123 | testonly = true |
| 124 | sources = [ |
| 125 | "video_loopback.cc", |
| 126 | ] |
| 127 | deps = [ |
| 128 | ":video_quality_test", |
| 129 | "../system_wrappers:metrics_default", |
| 130 | "../test:field_trial", |
| 131 | "../test:run_test", |
| 132 | "../test:test_common", |
| 133 | "../test:test_renderer", |
| 134 | "//testing/gmock", |
| 135 | "//testing/gtest", |
| 136 | "//third_party/gflags", |
| 137 | ] |
| 138 | if (!build_with_chromium && is_clang) { |
| 139 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 140 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | rtc_executable("screenshare_loopback") { |
| 145 | testonly = true |
| 146 | sources = [ |
| 147 | "screenshare_loopback.cc", |
| 148 | ] |
| 149 | |
| 150 | deps = [ |
| 151 | ":video_quality_test", |
| 152 | "../system_wrappers:metrics_default", |
| 153 | "../test:field_trial", |
| 154 | "../test:run_test", |
| 155 | "../test:test_common", |
| 156 | "../test:test_renderer", |
kjellander | a3cac05 | 2016-10-24 08:52:39 | [diff] [blame] | 157 | "//third_party/gflags", |
| 158 | ] |
| 159 | if (!build_with_chromium && is_clang) { |
| 160 | # Suppress warnings from Chrome's Clang plugins. |
| 161 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 162 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 163 | } |
| 164 | } |
| 165 | |
stefan | 64427e5 | 2016-12-20 15:26:58 | [diff] [blame] | 166 | rtc_executable("video_replay") { |
| 167 | testonly = true |
| 168 | sources = [ |
| 169 | "replay.cc", |
| 170 | ] |
| 171 | deps = [ |
ilnik | d60d06a | 2017-04-05 10:02:20 | [diff] [blame^] | 172 | "../api/video_codecs:video_codecs_api", |
stefan | 64427e5 | 2016-12-20 15:26:58 | [diff] [blame] | 173 | "../system_wrappers:metrics_default", |
| 174 | "../test:field_trial", |
| 175 | "../test:run_test", |
| 176 | "../test:test_common", |
| 177 | "../test:test_renderer", |
| 178 | "//third_party/gflags", |
| 179 | ] |
stefan | 64427e5 | 2016-12-20 15:26:58 | [diff] [blame] | 180 | if (!build_with_chromium && is_clang) { |
| 181 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 182 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 183 | } |
| 184 | } |
| 185 | |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 186 | # TODO(pbos): Rename test suite. |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 187 | rtc_source_set("video_tests") { |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 188 | testonly = true |
hta | 9aa9688 | 2016-12-06 13:36:03 | [diff] [blame] | 189 | defines = [] |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 190 | sources = [ |
| 191 | "call_stats_unittest.cc", |
mflodman | 15d8357 | 2016-10-06 15:35:11 | [diff] [blame] | 192 | "encoder_rtcp_feedback_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 193 | "end_to_end_tests.cc", |
| 194 | "overuse_frame_detector_unittest.cc", |
| 195 | "payload_router_unittest.cc", |
palmkvist | 349092b | 2016-12-13 10:45:57 | [diff] [blame] | 196 | "quality_threshold_unittest.cc", |
sakal | e5ba44e | 2016-10-26 14:09:24 | [diff] [blame] | 197 | "receive_statistics_proxy_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 198 | "report_block_stats_unittest.cc", |
johan | 62d02c3 | 2017-01-24 12:38:27 | [diff] [blame] | 199 | "rtp_stream_receiver_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 200 | "send_delay_stats_unittest.cc", |
| 201 | "send_statistics_proxy_unittest.cc", |
| 202 | "stats_counter_unittest.cc", |
| 203 | "stream_synchronization_unittest.cc", |
johan | f2183ff | 2017-02-28 09:33:09 | [diff] [blame] | 204 | "video_receive_stream_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 205 | "video_send_stream_tests.cc", |
perkj | 26091b1 | 2016-09-01 08:17:40 | [diff] [blame] | 206 | "vie_encoder_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 207 | "vie_remb_unittest.cc", |
| 208 | ] |
| 209 | deps = [ |
| 210 | ":video", |
magjed | ceecea4 | 2016-11-28 15:20:21 | [diff] [blame] | 211 | "../media:rtc_media_base", |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 212 | "//testing/gmock", |
| 213 | "//testing/gtest", |
| 214 | ] |
kjellander | e40a7ee | 2016-10-17 06:56:12 | [diff] [blame] | 215 | if (!build_with_chromium && is_clang) { |
| 216 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 217 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 218 | } |
brandtr | 445fb8f | 2016-11-14 12:11:23 | [diff] [blame] | 219 | if (rtc_use_h264) { |
hta | 9aa9688 | 2016-12-06 13:36:03 | [diff] [blame] | 220 | defines += [ "WEBRTC_USE_H264" ] |
brandtr | 445fb8f | 2016-11-14 12:11:23 | [diff] [blame] | 221 | } |
Peter Boström | 0208322 | 2016-06-14 10:52:54 | [diff] [blame] | 222 | } |
| 223 | } |