blob: c9d9a334e12a02c1c15a2837c7c2b0fac4eb96b9 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:071# 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
mbonadei9aa3f0a2017-01-24 14:58:229import("../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:0710
kjellanderb62dbbe2016-09-23 07:38:5211rtc_static_library("video") {
kjellander@webrtc.org788f0582014-08-28 13:51:0812 sources = [
Peter Boström7623ce42015-12-09 11:13:3013 "call_stats.cc",
14 "call_stats.h",
mflodman15d83572016-10-06 15:35:1115 "encoder_rtcp_feedback.cc",
16 "encoder_rtcp_feedback.h",
Peter Boström7623ce42015-12-09 11:13:3017 "overuse_frame_detector.cc",
18 "overuse_frame_detector.h",
19 "payload_router.cc",
20 "payload_router.h",
palmkvist349092b2016-12-13 10:45:5721 "quality_threshold.cc",
22 "quality_threshold.h",
kjellander@webrtc.org788f0582014-08-28 13:51:0823 "receive_statistics_proxy.cc",
24 "receive_statistics_proxy.h",
Peter Boström7623ce42015-12-09 11:13:3025 "report_block_stats.cc",
26 "report_block_stats.h",
mflodmanfa666592016-04-29 06:15:3327 "rtp_stream_receiver.cc",
28 "rtp_stream_receiver.h",
mflodman4cd27902016-08-05 13:28:4529 "rtp_streams_synchronizer.cc",
30 "rtp_streams_synchronizer.h",
asapersson35151f32016-05-03 06:44:0131 "send_delay_stats.cc",
32 "send_delay_stats.h",
kjellander@webrtc.org788f0582014-08-28 13:51:0833 "send_statistics_proxy.cc",
34 "send_statistics_proxy.h",
asapersson0e9d6d92016-05-23 13:07:5535 "stats_counter.cc",
36 "stats_counter.h",
Peter Boström7623ce42015-12-09 11:13:3037 "stream_synchronization.cc",
38 "stream_synchronization.h",
charujainbf6a45b2016-11-03 11:21:4239 "transport_adapter.cc",
40 "transport_adapter.h",
kjellander@webrtc.org788f0582014-08-28 13:51:0841 "video_receive_stream.cc",
42 "video_receive_stream.h",
43 "video_send_stream.cc",
44 "video_send_stream.h",
mflodmancfc8e3b2016-05-04 04:22:0445 "video_stream_decoder.cc",
46 "video_stream_decoder.h",
Peter Boström7623ce42015-12-09 11:13:3047 "vie_encoder.cc",
48 "vie_encoder.h",
Peter Boström7623ce42015-12-09 11:13:3049 "vie_remb.cc",
50 "vie_remb.h",
kjellander@webrtc.org788f0582014-08-28 13:51:0851 ]
52
kjellandere40a7ee2016-10-17 06:56:1253 if (!build_with_chromium && is_clang) {
54 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:3455 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org788f0582014-08-28 13:51:0856 }
57
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:2258 deps = [
59 "..:webrtc_common",
aleloia8eb7562016-11-28 15:02:1360 "../api:transport_api",
ilnikd60d06a2017-04-05 10:02:2061 "../api/video_codecs:video_codecs_api",
kjellander@webrtc.org7ffeab52016-02-26 21:46:0962 "../base:rtc_base_approved",
tereliusbc5d9212017-01-13 17:14:3363 "../base:rtc_numerics",
perkj26091b12016-09-01 08:17:4064 "../base:rtc_task_queue",
Peter Boström2ee24392015-06-22 05:57:1665 "../common_video",
skvladcc91d282016-10-04 01:31:2266 "../logging:rtc_event_log_api",
philipel022b54e2016-12-20 12:15:5967 "../media:rtc_media_base",
Peter Boström2ee24392015-06-22 05:57:1668 "../modules/bitrate_controller",
kjellander@webrtc.org7ffeab52016-02-26 21:46:0969 "../modules/congestion_controller",
sprangebbf8a82015-09-21 22:11:1470 "../modules/pacing",
kjellander@webrtc.org7ffeab52016-02-26 21:46:0971 "../modules/remote_bitrate_estimator",
Peter Boström2ee24392015-06-22 05:57:1672 "../modules/rtp_rtcp",
73 "../modules/utility",
Peter Boström2ee24392015-06-22 05:57:1674 "../modules/video_coding",
75 "../modules/video_processing",
kjellander8237abf2015-12-08 15:12:0676 "../system_wrappers",
Peter Boström7623ce42015-12-09 11:13:3077 "../voice_engine",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:2278 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:0779}
Peter Boström02083222016-06-14 10:52:5480
81if (rtc_include_tests) {
kjellandera3cac052016-10-24 08:52:3982 rtc_source_set("video_quality_test") {
83 testonly = true
84 sources = [
85 "video_quality_test.cc",
86 "video_quality_test.h",
87 ]
88 deps = [
ilnikdf92c5c2017-02-23 10:08:4489 "../base:rtc_base_tests_utils",
brandtr696c9c62016-12-19 13:47:2890 "../base:rtc_task_queue",
magjedceecea42016-11-28 15:20:2191 "../media:rtc_media_base",
kjellandera3cac052016-10-24 08:52:3992 "../system_wrappers",
93 "//testing/gtest",
ehmaldonado021eef32017-01-05 15:09:5094 "//webrtc/test:test_renderer",
perkjc5726c12017-03-01 11:37:0895 "//webrtc/test:video_test_common",
kjellandera3cac052016-10-24 08:52:3996 ]
kjellandera3cac052016-10-24 08:52:3997 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
ehmaldonado021eef32017-01-05 15:09:50103 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
kjellandera3cac052016-10-24 08:52:39122 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",
kjellandera3cac052016-10-24 08:52:39157 "//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
stefan64427e52016-12-20 15:26:58166 rtc_executable("video_replay") {
167 testonly = true
168 sources = [
169 "replay.cc",
170 ]
171 deps = [
ilnikd60d06a2017-04-05 10:02:20172 "../api/video_codecs:video_codecs_api",
stefan64427e52016-12-20 15:26:58173 "../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 ]
stefan64427e52016-12-20 15:26:58180 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öm02083222016-06-14 10:52:54186 # TODO(pbos): Rename test suite.
ehmaldonado38a21322016-09-02 11:10:34187 rtc_source_set("video_tests") {
Peter Boström02083222016-06-14 10:52:54188 testonly = true
hta9aa96882016-12-06 13:36:03189 defines = []
Peter Boström02083222016-06-14 10:52:54190 sources = [
191 "call_stats_unittest.cc",
mflodman15d83572016-10-06 15:35:11192 "encoder_rtcp_feedback_unittest.cc",
Peter Boström02083222016-06-14 10:52:54193 "end_to_end_tests.cc",
194 "overuse_frame_detector_unittest.cc",
195 "payload_router_unittest.cc",
palmkvist349092b2016-12-13 10:45:57196 "quality_threshold_unittest.cc",
sakale5ba44e2016-10-26 14:09:24197 "receive_statistics_proxy_unittest.cc",
Peter Boström02083222016-06-14 10:52:54198 "report_block_stats_unittest.cc",
johan62d02c32017-01-24 12:38:27199 "rtp_stream_receiver_unittest.cc",
Peter Boström02083222016-06-14 10:52:54200 "send_delay_stats_unittest.cc",
201 "send_statistics_proxy_unittest.cc",
202 "stats_counter_unittest.cc",
203 "stream_synchronization_unittest.cc",
johanf2183ff2017-02-28 09:33:09204 "video_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 10:52:54205 "video_send_stream_tests.cc",
perkj26091b12016-09-01 08:17:40206 "vie_encoder_unittest.cc",
Peter Boström02083222016-06-14 10:52:54207 "vie_remb_unittest.cc",
208 ]
209 deps = [
210 ":video",
magjedceecea42016-11-28 15:20:21211 "../media:rtc_media_base",
Peter Boström02083222016-06-14 10:52:54212 "//testing/gmock",
213 "//testing/gtest",
214 ]
kjellandere40a7ee2016-10-17 06:56:12215 if (!build_with_chromium && is_clang) {
216 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 11:10:34217 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 10:52:54218 }
brandtr445fb8f2016-11-14 12:11:23219 if (rtc_use_h264) {
hta9aa96882016-12-06 13:36:03220 defines += [ "WEBRTC_USE_H264" ]
brandtr445fb8f2016-11-14 12:11:23221 }
Peter Boström02083222016-06-14 10:52:54222 }
223}