blob: 5aee9486da63cd21b15d1860479bfb4399b12def [file] [log] [blame]
hjonaa32c3e2015-12-13 19:58:11 -08001# Copyright (c) 2015 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 06:58:22 -08009import("../webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
kjellanderc76dc952016-06-03 03:09:32 -070014
15group("api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
Dan Minor9c686132018-01-15 10:20:00 -050017 deps = []
18
19 if (!build_with_mozilla) {
20 deps += [ ":libjingle_peerconnection_api" ]
21 }
kjellanderc76dc952016-06-03 03:09:32 -070022}
23
ehmaldonado38a21322016-09-02 04:10:34 -070024rtc_source_set("call_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000025 visibility = [ "*" ]
kjellandera69d9732016-08-31 07:33:05 -070026 sources = [
kjellandera69d9732016-08-31 07:33:05 -070027 "call/audio_sink.h",
kjellandera69d9732016-08-31 07:33:05 -070028 ]
29
kjellandera69d9732016-08-31 07:33:05 -070030 deps = [
31 # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
aleloia8eb7562016-11-28 07:02:13 -080032 ":transport_api",
kjellandera69d9732016-08-31 07:33:05 -070033 "..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070034 "../rtc_base:rtc_base_approved",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010035 "audio:audio_mixer_api",
kwiberg087bd342017-02-10 08:15:44 -080036 "audio_codecs:audio_codecs_api",
kjellandera69d9732016-08-31 07:33:05 -070037 ]
38}
39
Niels Möller8366e172018-02-14 12:20:13 +010040rtc_source_set("callfactory_api") {
41 visibility = [ "*" ]
42 sources = [
43 "call/callfactoryinterface.h",
44 ]
45}
46
ossu7bb87ee2017-01-23 04:56:25 -080047rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000048 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -070049 cflags = []
50 sources = [
Zach Steine20867f2018-08-02 13:20:15 -070051 "asyncresolverfactory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +020052 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -070053 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +020054 "candidate.h",
Benjamin Wrighta54daf12018-10-11 15:33:17 -070055 "crypto/cryptooptions.cc",
56 "crypto/cryptooptions.h",
Benjamin Wrightea086912018-08-29 13:06:15 -070057 "crypto/framedecryptorinterface.h",
58 "crypto/frameencryptorinterface.h",
Patrik Höglund7aee3d52017-11-15 13:15:17 +010059 "cryptoparams.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020060 "datachannelinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070061 "datachannelinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070062 "dtmfsenderinterface.h",
Steve Anton845bb732017-12-05 12:50:26 -080063 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -070064 "jsep.h",
Mirko Bonadei2ffed6d2018-07-20 11:09:32 +020065 "jsepicecandidate.cc",
kjellanderc76dc952016-06-03 03:09:32 -070066 "jsepicecandidate.h",
kjellanderc76dc952016-06-03 03:09:32 -070067 "jsepsessiondescription.h",
Niels Möller3a742392018-10-08 11:13:58 +020068 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -040069 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -070070 "mediaconstraintsinterface.cc",
71 "mediaconstraintsinterface.h",
ossu7bb87ee2017-01-23 04:56:25 -080072 "mediastreaminterface.cc",
Patrik Höglund825249f2018-01-09 10:38:21 +010073 "mediastreaminterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070074 "mediastreamproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "mediastreamtrackproxy.h",
ossu7bb87ee2017-01-23 04:56:25 -080076 "mediatypes.cc",
77 "mediatypes.h",
kjellanderc76dc952016-06-03 03:09:32 -070078 "notifier.h",
kjellanderc76dc952016-06-03 03:09:32 -070079 "peerconnectionfactoryproxy.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020080 "peerconnectioninterface.cc",
Niels Möller8366e172018-02-14 12:20:13 +010081 "peerconnectioninterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070082 "peerconnectionproxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -070083 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -070084 "proxy.h",
deadbeef6038e972017-02-16 23:31:33 -080085 "rtcerror.cc",
86 "rtcerror.h",
Patrik Höglund3e113432017-12-15 14:40:10 +010087 "rtp_headers.cc",
88 "rtp_headers.h",
Stefan Holmer1acbd682017-09-01 15:29:28 +020089 "rtpparameters.cc",
kjellanderc76dc952016-06-03 03:09:32 -070090 "rtpparameters.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010091 "rtpreceiverinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070092 "rtpreceiverinterface.h",
Benjamin Wrightd81ac952018-08-29 17:02:10 -070093 "rtpsenderinterface.cc",
kjellanderc76dc952016-06-03 03:09:32 -070094 "rtpsenderinterface.h",
Mirko Bonadei79eb4dd2018-07-19 10:39:30 +020095 "rtptransceiverinterface.cc",
Steve Anton6e634bf2017-11-13 10:44:53 -080096 "rtptransceiverinterface.h",
Henrik Boström31638672017-11-23 17:48:32 +010097 "setremotedescriptionobserverinterface.h",
kjellanderc76dc952016-06-03 03:09:32 -070098 "statstypes.cc",
99 "statstypes.h",
Jonas Orelandbdcee282017-10-10 14:01:40 +0200100 "turncustomizer.h",
ossu7bb87ee2017-01-23 04:56:25 -0800101 "umametrics.h",
kjellanderc76dc952016-06-03 03:09:32 -0700102 "videosourceproxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700103 ]
kjellanderc76dc952016-06-03 03:09:32 -0700104 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100105 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100106 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100107 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100108 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100109 ":libjingle_logging_api",
hbos74e1a4f2016-09-15 23:33:01 -0700110 ":rtc_stats_api",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100111 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100112 "audio_codecs:audio_codecs_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200113 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200114 "transport:network_control",
Niels Möller3a742392018-10-08 11:13:58 +0200115 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200116 "video:video_frame",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200117 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100118
119 # Basically, don't add stuff here. You might break sensitive downstream
120 # targets like pnacl. API should not depend on anything outside of this
121 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700122 "..:webrtc_common",
Niels Möller8366e172018-02-14 12:20:13 +0100123 "../logging:rtc_event_log_api",
Niels Möller6daa2782018-01-23 10:37:42 +0100124 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100125 "../modules/audio_processing:audio_processing_statistics",
Patrik Höglund3e113432017-12-15 14:40:10 +0100126 "../rtc_base:checks",
127 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700128 "../rtc_base:rtc_base",
129 "../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100130 "../rtc_base:stringutils",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200131 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700132 ]
Niels Möller8366e172018-02-14 12:20:13 +0100133
kjellander8a116632017-04-21 05:17:08 -0700134 if (is_nacl) {
Patrik Höglund30bd03b2017-12-19 11:45:31 +0100135 # This is needed by .h files included from rtc_base.
kjellander8a116632017-04-21 05:17:08 -0700136 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
137 }
ossu7bb87ee2017-01-23 04:56:25 -0800138}
kjellanderc76dc952016-06-03 03:09:32 -0700139
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200140rtc_source_set("video_quality_test_fixture_api") {
141 visibility = [ "*" ]
142 testonly = true
143 sources = [
144 "test/video_quality_test_fixture.h",
145 ]
146 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200147 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200148 ":libjingle_peerconnection_api",
149 ":simulated_network_api",
150 "../call:fake_network",
151 "../call:rtp_interfaces",
152 "../test:test_common",
153 "../test:video_test_common",
154 "video_codecs:video_codecs_api",
155 ]
156 if (!build_with_chromium && is_clang) {
157 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
158 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
159 }
160}
161
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200162rtc_source_set("test_dependency_factory") {
163 visibility = [ "*" ]
164 testonly = true
165 sources = [
166 "test/test_dependency_factory.cc",
167 "test/test_dependency_factory.h",
168 ]
169 deps = [
170 ":video_quality_test_fixture_api",
171 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900172 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200173 ]
174 if (!build_with_chromium && is_clang) {
175 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
176 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
177 }
178}
179
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200180if (rtc_include_tests) {
181 rtc_source_set("create_video_quality_test_fixture_api") {
182 visibility = [ "*" ]
183 testonly = true
184 sources = [
185 "test/create_video_quality_test_fixture.cc",
186 "test/create_video_quality_test_fixture.h",
187 ]
188 deps = [
189 ":fec_controller_api",
190 ":video_quality_test_fixture_api",
191 "../rtc_base:ptr_util",
192 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200193 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200194 ]
195 if (!build_with_chromium && is_clang) {
196 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
197 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
198 }
199 }
200}
201
Elad Alon80810732017-10-06 13:07:32 +0200202rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000203 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200204 sources = [
205 "rtceventlogoutput.h",
206 ]
207}
208
deadbeefe814a0d2017-02-25 18:15:09 -0800209rtc_source_set("ortc_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000210 visibility = [ "*" ]
deadbeefe814a0d2017-02-25 18:15:09 -0800211 sources = [
zhihuang55adc0e2017-03-10 18:33:45 -0800212 "ortc/mediadescription.cc",
213 "ortc/mediadescription.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800214 "ortc/ortcfactoryinterface.h",
215 "ortc/ortcrtpreceiverinterface.h",
216 "ortc/ortcrtpsenderinterface.h",
217 "ortc/packettransportinterface.h",
218 "ortc/rtptransportcontrollerinterface.h",
219 "ortc/rtptransportinterface.h",
zhihuang55adc0e2017-03-10 18:33:45 -0800220 "ortc/sessiondescription.cc",
221 "ortc/sessiondescription.h",
zhihuangd3501ad2017-03-03 14:39:06 -0800222 "ortc/srtptransportinterface.h",
deadbeefe814a0d2017-02-25 18:15:09 -0800223 "ortc/udptransportinterface.h",
224 ]
225
226 # For mediastreaminterface.h, etc.
227 # TODO(deadbeef): Create a separate target for the common things ORTC and
228 # PeerConnection code shares, so that ortc_api can depend on that instead of
229 # libjingle_peerconnection_api.
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100230 deps = [
deadbeefe814a0d2017-02-25 18:15:09 -0800231 ":libjingle_peerconnection_api",
Patrik Höglund7aee3d52017-11-15 13:15:17 +0100232 "..:webrtc_common",
233 "../rtc_base:rtc_base",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200234 "//third_party/abseil-cpp/absl/types:optional",
deadbeefe814a0d2017-02-25 18:15:09 -0800235 ]
zhihuang55adc0e2017-03-10 18:33:45 -0800236 if (!build_with_chromium && is_clang) {
237 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
238 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
239 }
deadbeefe814a0d2017-02-25 18:15:09 -0800240}
241
hbos74e1a4f2016-09-15 23:33:01 -0700242rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000243 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700244 cflags = []
245 sources = [
246 "stats/rtcstats.h",
247 "stats/rtcstats_objects.h",
ossu7bb87ee2017-01-23 04:56:25 -0800248 "stats/rtcstatscollectorcallback.h",
hbos74e1a4f2016-09-15 23:33:01 -0700249 "stats/rtcstatsreport.h",
250 ]
251
252 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100253 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700254 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200255 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700256 ]
257}
258
Niels Möllera6fe2612018-01-19 11:28:54 +0100259rtc_source_set("audio_options_api") {
260 visibility = [ "*" ]
261 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200262 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100263 "audio_options.h",
264 ]
265
266 deps = [
Danil Chapovalov21652332018-08-31 10:29:07 +0200267 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200268 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100269 ]
270}
271
aleloia8eb7562016-11-28 07:02:13 -0800272rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000273 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800274 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100275 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800276 "call/transport.h",
277 ]
278}
nisseb2250e52016-12-02 04:01:14 -0800279
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200280rtc_source_set("simulated_network_api") {
281 visibility = [ "*" ]
282 sources = [
283 "test/simulated_network.h",
284 ]
285 deps = [
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200286 "../rtc_base:criticalsection",
287 "../rtc_base:rtc_base",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200288 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200289 ]
290}
291
Ying Wang3b790f32018-01-19 17:58:57 +0100292rtc_source_set("fec_controller_api") {
293 visibility = [ "*" ]
294 sources = [
295 "fec_controller.h",
296 ]
297
298 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100299 "..:webrtc_common",
300 "../modules:module_fec_api",
Ying Wang3b790f32018-01-19 17:58:57 +0100301 ]
302}
303
kwiberg529662a2017-09-04 05:43:17 -0700304rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000305 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700306 sources = [
307 "array_view.h",
308 ]
309 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100310 "../rtc_base:checks",
311 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700312 ]
313}
314
Niels Möller9155e492017-10-23 11:22:30 +0200315rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000316 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200317 sources = [
318 "refcountedbase.h",
319 ]
320 deps = [
321 "../rtc_base:rtc_base_approved",
322 ]
323}
324
kjellander1993b1d2017-03-06 00:29:21 -0800325rtc_source_set("libjingle_peerconnection_test_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000326 visibility = [ "*" ]
kjellander1993b1d2017-03-06 00:29:21 -0800327 testonly = true
328 sources = [
329 "test/fakeconstraints.h",
330 ]
331
kjellander1993b1d2017-03-06 00:29:21 -0800332 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100333 ":libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700334 "../rtc_base:rtc_base_approved",
kjellander1993b1d2017-03-06 00:29:21 -0800335 ]
336}
337
Ivo Creusen55de08e2018-09-03 11:49:27 +0200338rtc_source_set("neteq_simulator_api") {
339 visibility = [ "*" ]
340 sources = [
341 "test/neteq_simulator.cc",
342 "test/neteq_simulator.h",
343 ]
344}
345
kjellanderfd5b4e92016-06-13 12:08:33 -0700346if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100347 if (rtc_enable_protobuf) {
348 rtc_source_set("audioproc_f_api") {
349 visibility = [ "*" ]
350 testonly = true
351 sources = [
352 "test/audioproc_float.cc",
353 "test/audioproc_float.h",
354 ]
355
356 deps = [
357 "../modules/audio_processing:audio_processing",
358 "../modules/audio_processing:audioproc_f_impl",
359 ]
360 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200361
362 rtc_source_set("neteq_simulator_factory") {
363 visibility = [ "*" ]
364 testonly = true
365 sources = [
366 "test/neteq_simulator_factory.cc",
367 "test/neteq_simulator_factory.h",
368 ]
369 deps = [
370 ":neteq_simulator_api",
371 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200372 "../rtc_base:checks",
373 "../rtc_base:rtc_base_approved",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200374 "//third_party/abseil-cpp/absl/memory",
375 ]
376 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100377 }
378
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200379 rtc_source_set("simulcast_test_fixture_api") {
380 visibility = [ "*" ]
381 testonly = true
382 sources = [
383 "test/simulcast_test_fixture.h",
384 ]
385 }
386
387 rtc_source_set("create_simulcast_test_fixture_api") {
388 visibility = [ "*" ]
389 testonly = true
390 sources = [
391 "test/create_simulcast_test_fixture.cc",
392 "test/create_simulcast_test_fixture.h",
393 ]
394 deps = [
395 ":simulcast_test_fixture_api",
396 "../modules/video_coding:simulcast_test_fixture_impl",
397 "../rtc_base:rtc_base_approved",
398 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200399 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200400 ]
401 if (!build_with_chromium && is_clang) {
402 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
404 }
405 }
406
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200407 rtc_source_set("videocodec_test_fixture_api") {
408 visibility = [ "*" ]
409 testonly = true
410 sources = [
411 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200412 "test/videocodec_test_stats.cc",
413 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200414 ]
415 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200416 "..:webrtc_common",
417 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200418 "../rtc_base:stringutils",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200419 "video_codecs:video_codecs_api",
420 ]
421 }
422
423 rtc_source_set("create_videocodec_test_fixture_api") {
424 visibility = [ "*" ]
425 testonly = true
426 sources = [
427 "test/create_videocodec_test_fixture.cc",
428 "test/create_videocodec_test_fixture.h",
429 ]
430 deps = [
431 ":videocodec_test_fixture_api",
432 "../modules/video_coding:video_codecs_test_framework",
433 "../modules/video_coding:videocodec_test_impl",
434 "../rtc_base:rtc_base_approved",
435 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200436 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200437 ]
438 if (!build_with_chromium && is_clang) {
439 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
440 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
441 }
442 }
443
kjellander2f6af9c2017-03-02 22:26:23 -0800444 rtc_source_set("mock_audio_mixer") {
445 testonly = true
446 sources = [
447 "test/mock_audio_mixer.h",
448 ]
449
kjellander2f6af9c2017-03-02 22:26:23 -0800450 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700451 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100452 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800453 ]
454 }
455
Benjamin Wright84583f62018-10-04 14:22:34 -0700456 rtc_source_set("fake_frame_crypto") {
457 testonly = true
458 sources = [
459 "test/fake_frame_decryptor.cc",
460 "test/fake_frame_decryptor.h",
461 "test/fake_frame_encryptor.cc",
462 "test/fake_frame_encryptor.h",
463 ]
464 deps = [
465 ":array_view",
466 ":libjingle_peerconnection_api",
467 "..:webrtc_common",
468 "../rtc_base:checks",
469 "../rtc_base:rtc_base_approved",
470 ]
471 }
472
Jiawei Ou651b92e2018-06-29 15:46:44 -0700473 rtc_source_set("mock_peerconnectioninterface") {
474 testonly = true
475 sources = [
476 "test/mock_peerconnectioninterface.h",
477 ]
478
479 deps = [
480 ":libjingle_peerconnection_api",
481 "../test:test_support",
482 ]
483 }
484
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100485 rtc_source_set("mock_rtp") {
486 testonly = true
487 sources = [
488 "test/mock_rtpreceiver.h",
489 "test/mock_rtpsender.h",
490 ]
491
492 deps = [
493 ":libjingle_peerconnection_api",
494 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100495 ]
496 }
497
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700498 rtc_source_set("mock_video_bitrate_allocator") {
499 testonly = true
500 sources = [
501 "test/mock_video_bitrate_allocator.h",
502 ]
503
504 deps = [
505 "../api/video:video_bitrate_allocator",
506 "../test:test_support",
507 ]
508 }
509
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700510 rtc_source_set("mock_video_codec_factory") {
511 testonly = true
512 sources = [
513 "test/mock_video_decoder_factory.h",
514 "test/mock_video_encoder_factory.h",
515 ]
516
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700517 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100518 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700519 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700520 ]
521 }
522
Erik Språngc84cd952018-10-15 11:55:13 +0200523 rtc_source_set("mock_video_decoder") {
524 visibility = [ "*" ]
525
526 testonly = true
527 sources = [
528 "test/mock_video_decoder.cc",
529 "test/mock_video_decoder.h",
530 ]
531
532 deps = [
533 "../api/video_codecs:video_codecs_api",
534 "../test:test_support",
535 ]
536 }
537
Erik Språng6af1c922018-10-12 10:01:30 +0200538 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200539 visibility = [ "*" ]
540
Erik Språng6af1c922018-10-12 10:01:30 +0200541 testonly = true
542 sources = [
543 "test/mock_video_encoder.cc",
544 "test/mock_video_encoder.h",
545 ]
546
547 deps = [
548 "../api/video_codecs:video_codecs_api",
549 "../test:test_support",
550 ]
551 }
552
deadbeefb5388d72017-02-24 01:17:43 -0800553 rtc_source_set("rtc_api_unittests") {
deadbeef6038e972017-02-16 23:31:33 -0800554 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700555
deadbeef6038e972017-02-16 23:31:33 -0800556 sources = [
kwiberg529662a2017-09-04 05:43:17 -0700557 "array_view_unittest.cc",
zhihuang55adc0e2017-03-10 18:33:45 -0800558 "ortc/mediadescription_unittest.cc",
559 "ortc/sessiondescription_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800560 "rtcerror_unittest.cc",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200561 "rtpparameters_unittest.cc",
deadbeef6038e972017-02-16 23:31:33 -0800562 ]
563
564 if (!build_with_chromium && is_clang) {
565 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
566 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
567 }
568
569 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700570 ":array_view",
deadbeef6038e972017-02-16 23:31:33 -0800571 ":libjingle_peerconnection_api",
zhihuang55adc0e2017-03-10 18:33:45 -0800572 ":ortc_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100573 "../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -0700574 "../rtc_base:rtc_base_approved",
575 "../rtc_base:rtc_base_tests_utils",
jianjun.zhuc0247402017-07-11 06:20:45 -0700576 "../test:test_support",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +0200577 "units:units_unittests",
deadbeef6038e972017-02-16 23:31:33 -0800578 ]
deadbeef6038e972017-02-16 23:31:33 -0800579 }
Anton Sukhanov7940da02018-10-10 10:34:49 -0700580
581 rtc_source_set("fake_media_transport") {
582 testonly = true
583
584 sources = [
585 "test/fake_media_transport.h",
586 ]
587
588 deps = [
589 ":libjingle_peerconnection_api",
590 "../rtc_base:checks",
591 ]
592 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700593}