blob: 68bb3d1013a86498db1c831ef615ae6e026070c2 [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 ]
kjellandera69d9732016-08-31 07:33:05 -070029}
30
Niels Möller8366e172018-02-14 12:20:13 +010031rtc_source_set("callfactory_api") {
32 visibility = [ "*" ]
33 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080034 "call/call_factory_interface.h",
Niels Möller8366e172018-02-14 12:20:13 +010035 ]
36}
37
Danil Chapovalov5bf58062019-06-18 16:43:37 +020038if (!build_with_chromium) {
39 rtc_static_library("create_peerconnection_factory") {
40 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +020041 allow_poison = [ "default_task_queue" ]
Danil Chapovalov5bf58062019-06-18 16:43:37 +020042 sources = [
43 "create_peerconnection_factory.cc",
44 "create_peerconnection_factory.h",
45 ]
46 deps = [
47 ":callfactory_api",
48 ":libjingle_peerconnection_api",
49 ":scoped_refptr",
50 "../api/rtc_event_log:rtc_event_log_factory",
51 "../media:rtc_audio_video",
52 "../media:rtc_media_base",
53 "../modules/audio_device:audio_device_api",
54 "../modules/audio_processing:api",
55 "../pc:peerconnection",
56 "../rtc_base",
57 "../rtc_base:rtc_base_approved",
58 "audio:audio_mixer_api",
59 "audio_codecs:audio_codecs_api",
60 "task_queue:default_task_queue_factory",
61 "video_codecs:video_codecs_api",
62 "//third_party/abseil-cpp/absl/memory",
63 ]
64 }
Mirko Bonadei3cf8f3e2018-11-19 09:17:51 +010065}
66
Niels Möllerb8389522019-03-19 14:27:03 +010067rtc_source_set("rtp_headers") {
68 visibility = [ "*" ]
Niels Mölleref1052a2019-03-20 08:40:23 +010069 sources = [
70 "rtp_headers.cc",
71 "rtp_headers.h",
72 ]
73 deps = [
74 ":array_view",
75 "..:webrtc_common",
Sebastian Jansson3d61ab12019-06-14 13:35:51 +020076 "units:timestamp",
Chen Xing5d24b162019-06-10 12:59:38 +020077 "video:video_rtp_headers",
Niels Mölleref1052a2019-03-20 08:40:23 +010078 "//third_party/abseil-cpp/absl/types:optional",
79 ]
Niels Möllerb8389522019-03-19 14:27:03 +010080}
81
Chen Xingd2a66862019-06-03 14:53:42 +020082rtc_source_set("rtp_packet_info") {
83 visibility = [ "*" ]
84 sources = [
85 "rtp_packet_info.cc",
86 "rtp_packet_info.h",
87 "rtp_packet_infos.h",
88 ]
89 deps = [
90 ":array_view",
91 ":refcountedbase",
92 ":rtp_headers",
93 ":scoped_refptr",
94 "..:webrtc_common",
Chen Xinge08648d2019-08-05 16:29:13 +020095 "../rtc_base:deprecation",
Chen Xingd2a66862019-06-03 14:53:42 +020096 "../rtc_base:rtc_base_approved",
97 "//third_party/abseil-cpp/absl/types:optional",
98 ]
99}
100
ossu7bb87ee2017-01-23 04:56:25 -0800101rtc_static_library("libjingle_peerconnection_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000102 visibility = [ "*" ]
kjellanderc76dc952016-06-03 03:09:32 -0700103 cflags = []
104 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800105 "async_resolver_factory.h",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200106 "bitrate_constraints.h",
Steve Anton36b28db2017-10-26 11:27:17 -0700107 "candidate.cc",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200108 "candidate.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700109 "congestion_control_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800110 "crypto/crypto_options.cc",
111 "crypto/crypto_options.h",
112 "crypto/frame_decryptor_interface.h",
113 "crypto/frame_encryptor_interface.h",
114 "crypto_params.h",
115 "data_channel_interface.cc",
116 "data_channel_interface.h",
Bjorn A Mellem05497f22019-08-01 10:48:20 -0700117 "data_channel_transport_interface.cc",
118 "data_channel_transport_interface.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700119 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200120 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800121 "dtls_transport_interface.h",
122 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100123 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800124 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700125 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800126 "jsep_ice_candidate.cc",
127 "jsep_ice_candidate.h",
128 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800129 "media_stream_interface.cc",
130 "media_stream_interface.h",
131 "media_stream_proxy.h",
132 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700133 "media_transport_config.cc",
134 "media_transport_config.h",
Niels Möller3a742392018-10-08 11:13:58 +0200135 "media_transport_interface.cc",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400136 "media_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800137 "media_types.cc",
138 "media_types.h",
kjellanderc76dc952016-06-03 03:09:32 -0700139 "notifier.h",
Steve Anton10542f22019-01-11 09:11:00 -0800140 "peer_connection_factory_proxy.h",
141 "peer_connection_interface.cc",
142 "peer_connection_interface.h",
143 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700144 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700145 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800146 "rtc_error.cc",
147 "rtc_error.h",
Steve Anton10542f22019-01-11 09:11:00 -0800148 "rtp_parameters.cc",
149 "rtp_parameters.h",
150 "rtp_receiver_interface.cc",
151 "rtp_receiver_interface.h",
152 "rtp_sender_interface.cc",
153 "rtp_sender_interface.h",
154 "rtp_transceiver_interface.cc",
155 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100156 "sctp_transport_interface.cc",
157 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800158 "set_remote_description_observer_interface.h",
159 "stats_types.cc",
160 "stats_types.h",
161 "turn_customizer.h",
162 "uma_metrics.h",
163 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700164 ]
kjellanderc76dc952016-06-03 03:09:32 -0700165 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100166 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100167 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100168 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100169 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100170 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200171 ":network_state_predictor_api",
hbos74e1a4f2016-09-15 23:33:01 -0700172 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200173 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200174 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100175 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100176 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100177 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200178 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200179 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200180 "transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200181 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100182 "transport/media:audio_interfaces",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100183 "transport/media:video_interfaces",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800184 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700185 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200186 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200187 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200188 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800189 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700190 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800191 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200192 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100193
194 # Basically, don't add stuff here. You might break sensitive downstream
195 # targets like pnacl. API should not depend on anything outside of this
196 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700197 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100198 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100199 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100200 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100201 "../rtc_base:checks",
202 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700203 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200204 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700205 ]
ossu7bb87ee2017-01-23 04:56:25 -0800206}
kjellanderc76dc952016-06-03 03:09:32 -0700207
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100208rtc_source_set("scoped_refptr") {
209 visibility = [ "*" ]
210 sources = [
211 "scoped_refptr.h",
212 ]
213}
214
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200215rtc_source_set("video_quality_test_fixture_api") {
216 visibility = [ "*" ]
217 testonly = true
218 sources = [
219 "test/video_quality_test_fixture.h",
220 ]
221 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200222 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200223 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200224 ":network_state_predictor_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200225 ":simulated_network_api",
226 "../call:fake_network",
227 "../call:rtp_interfaces",
228 "../test:test_common",
229 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200230 "transport:network_control",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200231 "video_codecs:video_codecs_api",
232 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200233}
234
Artem Titovd57628f2019-03-22 12:34:25 +0100235rtc_source_set("video_quality_analyzer_api") {
236 visibility = [ "*" ]
237 testonly = true
238 sources = [
239 "test/video_quality_analyzer_interface.h",
240 ]
241
242 deps = [
243 ":stats_observer_interface",
244 "video:encoded_image",
245 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200246 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100247 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100248 "//third_party/abseil-cpp/absl/types:optional",
249 ]
250}
251
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200252rtc_source_set("track_id_stream_label_map") {
253 visibility = [ "*" ]
254 sources = [
255 "test/track_id_stream_label_map.h",
256 ]
257}
258
Niels Möller184b4af2019-08-23 13:33:50 +0200259# TODO(bugs.webrtc.org/8733): Move media_types.* and rtp_parameters.*
260# to this target.
261rtc_source_set("rtp_parameters") {
262 visibility = [ "*" ]
263}
264
Artem Titovd57628f2019-03-22 12:34:25 +0100265rtc_source_set("audio_quality_analyzer_api") {
266 visibility = [ "*" ]
267 testonly = true
268 sources = [
269 "test/audio_quality_analyzer_interface.h",
270 ]
271
272 deps = [
273 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200274 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100275 ]
276}
277
278rtc_source_set("stats_observer_interface") {
279 visibility = [ "*" ]
280 testonly = true
281 sources = [
282 "test/stats_observer_interface.h",
283 ]
284
285 deps = [
286 ":libjingle_peerconnection_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100287 ]
288}
289
290rtc_source_set("peer_connection_quality_test_fixture_api") {
291 visibility = [ "*" ]
292 testonly = true
293 sources = [
294 "test/peerconnection_quality_test_fixture.h",
295 ]
296
297 deps = [
298 ":audio_quality_analyzer_api",
299 ":callfactory_api",
300 ":fec_controller_api",
301 ":function_view",
302 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200303 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100304 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200305 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100306 ":video_quality_analyzer_api",
307 "../logging:rtc_event_log_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200308 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100309 "../rtc_base:rtc_base",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200310 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100311 "transport:network_control",
312 "units:time_delta",
313 "video_codecs:video_codecs_api",
314 "//third_party/abseil-cpp/absl/memory",
315 "//third_party/abseil-cpp/absl/types:optional",
316 ]
317}
318
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200319rtc_source_set("test_dependency_factory") {
320 visibility = [ "*" ]
321 testonly = true
322 sources = [
323 "test/test_dependency_factory.cc",
324 "test/test_dependency_factory.h",
325 ]
326 deps = [
327 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100328 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200329 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900330 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200331 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200332}
333
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200334if (rtc_include_tests) {
335 rtc_source_set("create_video_quality_test_fixture_api") {
336 visibility = [ "*" ]
337 testonly = true
338 sources = [
339 "test/create_video_quality_test_fixture.cc",
340 "test/create_video_quality_test_fixture.h",
341 ]
342 deps = [
343 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200344 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100345 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200346 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200347 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200348 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200349 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200350 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100351
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100352 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100353 visibility = [ "*" ]
354 testonly = true
355 sources = [
356 "test/create_network_emulation_manager.cc",
357 "test/create_network_emulation_manager.h",
358 ]
359 deps = [
360 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200361 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100362 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100363 ]
364 }
Artem Titovd57628f2019-03-22 12:34:25 +0100365
366 rtc_source_set("create_peerconnection_quality_test_fixture") {
367 visibility = [ "*" ]
368 testonly = true
369 sources = [
370 "test/create_peerconnection_quality_test_fixture.cc",
371 "test/create_peerconnection_quality_test_fixture.h",
372 ]
373
374 deps = [
375 ":audio_quality_analyzer_api",
376 ":peer_connection_quality_test_fixture_api",
377 ":video_quality_analyzer_api",
378 "../test/pc/e2e:peerconnection_quality_test",
379 "//third_party/abseil-cpp/absl/memory",
380 ]
381 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200382}
383
Elad Alon80810732017-10-06 13:07:32 +0200384rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000385 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200386 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800387 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200388 ]
389}
390
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200391rtc_source_set("rtc_event_log_output_file") {
392 visibility = [ "*" ]
393 sources = [
394 "rtc_event_log_output_file.cc",
395 "rtc_event_log_output_file.h",
396 ]
397
398 deps = [
399 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200400 "../rtc_base:checks",
401 "../rtc_base:rtc_base_approved",
402 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200403 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200404 ]
405}
406
hbos74e1a4f2016-09-15 23:33:01 -0700407rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000408 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700409 cflags = []
410 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800411 "stats/rtc_stats.h",
412 "stats/rtc_stats_collector_callback.h",
413 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700414 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700415 ]
416
417 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100418 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100419 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700420 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200421 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700422 ]
423}
424
Niels Möllera6fe2612018-01-19 11:28:54 +0100425rtc_source_set("audio_options_api") {
426 visibility = [ "*" ]
427 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200428 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100429 "audio_options.h",
430 ]
431
432 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100433 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200434 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200435 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100436 ]
437}
438
aleloia8eb7562016-11-28 07:02:13 -0800439rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000440 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800441 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100442 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800443 "call/transport.h",
444 ]
445}
nisseb2250e52016-12-02 04:01:14 -0800446
Sebastian Jansson6736df12018-11-21 19:18:39 +0100447rtc_source_set("bitrate_allocation") {
448 visibility = [ "*" ]
449 sources = [
450 "call/bitrate_allocation.h",
451 ]
452 deps = [
453 "units:data_rate",
454 "units:time_delta",
455 ]
456}
457
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200458rtc_source_set("simulated_network_api") {
459 visibility = [ "*" ]
460 sources = [
461 "test/simulated_network.h",
462 ]
463 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100464 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200465 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200466 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200467 ]
468}
469
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100470rtc_source_set("network_emulation_manager_api") {
471 visibility = [ "*" ]
472 sources = [
473 "test/network_emulation_manager.h",
474 ]
475 deps = [
476 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100477 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200478 "units:data_rate",
479 "units:data_size",
480 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100481 ]
482}
483
Ying Wang3b790f32018-01-19 17:58:57 +0100484rtc_source_set("fec_controller_api") {
485 visibility = [ "*" ]
486 sources = [
487 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200488 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100489 ]
490
491 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100492 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100493 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100494 ]
495}
496
Ying Wang0810a7c2019-04-10 13:48:24 +0200497rtc_source_set("network_state_predictor_api") {
498 visibility = [ "*" ]
499 sources = [
500 "network_state_predictor.h",
501 ]
502}
503
kwiberg529662a2017-09-04 05:43:17 -0700504rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000505 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700506 sources = [
507 "array_view.h",
508 ]
509 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100510 "../rtc_base:checks",
511 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700512 ]
513}
514
Niels Möller9155e492017-10-23 11:22:30 +0200515rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000516 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200517 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800518 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200519 ]
520 deps = [
521 "../rtc_base:rtc_base_approved",
522 ]
523}
524
Harald Alvestrand98462622019-01-30 14:57:03 +0100525rtc_source_set("ice_transport_factory") {
526 visibility = [ "*" ]
527 sources = [
528 "ice_transport_factory.cc",
529 "ice_transport_factory.h",
530 ]
531 deps = [
532 ":libjingle_peerconnection_api",
533 ":scoped_refptr",
534 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100535 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200536 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700537 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100538 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100539 ]
540}
541
Ivo Creusen55de08e2018-09-03 11:49:27 +0200542rtc_source_set("neteq_simulator_api") {
543 visibility = [ "*" ]
544 sources = [
545 "test/neteq_simulator.cc",
546 "test/neteq_simulator.h",
547 ]
548}
549
Artem Titov741daaf2019-03-21 14:37:36 +0100550rtc_source_set("function_view") {
551 visibility = [ "*" ]
552 sources = [
553 "function_view.h",
554 ]
555 deps = [
556 "../rtc_base:checks",
557 ]
558}
559
kjellanderfd5b4e92016-06-13 12:08:33 -0700560if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100561 if (rtc_enable_protobuf) {
562 rtc_source_set("audioproc_f_api") {
563 visibility = [ "*" ]
564 testonly = true
565 sources = [
566 "test/audioproc_float.cc",
567 "test/audioproc_float.h",
568 ]
569
570 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100571 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000572 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100573 "../modules/audio_processing:audioproc_f_impl",
574 ]
575 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200576
577 rtc_source_set("neteq_simulator_factory") {
578 visibility = [ "*" ]
579 testonly = true
580 sources = [
581 "test/neteq_simulator_factory.cc",
582 "test/neteq_simulator_factory.h",
583 ]
584 deps = [
585 ":neteq_simulator_api",
586 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200587 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200588 "//third_party/abseil-cpp/absl/flags:flag",
589 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200590 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100591 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200592 ]
593 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100594 }
595
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200596 rtc_source_set("simulcast_test_fixture_api") {
597 visibility = [ "*" ]
598 testonly = true
599 sources = [
600 "test/simulcast_test_fixture.h",
601 ]
602 }
603
604 rtc_source_set("create_simulcast_test_fixture_api") {
605 visibility = [ "*" ]
606 testonly = true
607 sources = [
608 "test/create_simulcast_test_fixture.cc",
609 "test/create_simulcast_test_fixture.h",
610 ]
611 deps = [
612 ":simulcast_test_fixture_api",
613 "../modules/video_coding:simulcast_test_fixture_impl",
614 "../rtc_base:rtc_base_approved",
615 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200616 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200617 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200618 }
619
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200620 rtc_source_set("videocodec_test_fixture_api") {
621 visibility = [ "*" ]
622 testonly = true
623 sources = [
624 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200625 "test/videocodec_test_stats.cc",
626 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200627 ]
628 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200629 "..:webrtc_common",
630 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200631 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100632 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200633 "video_codecs:video_codecs_api",
634 ]
635 }
636
637 rtc_source_set("create_videocodec_test_fixture_api") {
638 visibility = [ "*" ]
639 testonly = true
640 sources = [
641 "test/create_videocodec_test_fixture.cc",
642 "test/create_videocodec_test_fixture.h",
643 ]
644 deps = [
645 ":videocodec_test_fixture_api",
646 "../modules/video_coding:video_codecs_test_framework",
647 "../modules/video_coding:videocodec_test_impl",
648 "../rtc_base:rtc_base_approved",
649 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200650 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200651 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200652 }
653
kjellander2f6af9c2017-03-02 22:26:23 -0800654 rtc_source_set("mock_audio_mixer") {
655 testonly = true
656 sources = [
657 "test/mock_audio_mixer.h",
658 ]
659
kjellander2f6af9c2017-03-02 22:26:23 -0800660 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700661 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100662 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800663 ]
664 }
665
Elad Alon45befc52019-07-02 11:20:09 +0200666 rtc_source_set("mock_fec_controller_override") {
667 testonly = true
668 sources = [
669 "test/mock_fec_controller_override.h",
670 ]
671 deps = [
672 ":fec_controller_api",
673 "../test:test_support",
674 ]
675 }
676
Benjamin Wright78410ad2018-10-25 09:52:57 -0700677 rtc_source_set("mock_frame_encryptor") {
678 testonly = true
679 sources = [
680 "test/mock_frame_encryptor.cc",
681 "test/mock_frame_encryptor.h",
682 ]
683 deps = [
684 ":libjingle_peerconnection_api",
685 "../test:test_support",
686 ]
687 }
688
689 rtc_source_set("mock_frame_decryptor") {
690 testonly = true
691 sources = [
692 "test/mock_frame_decryptor.cc",
693 "test/mock_frame_decryptor.h",
694 ]
695 deps = [
696 ":libjingle_peerconnection_api",
697 "../test:test_support",
698 ]
699 }
700
701 rtc_source_set("fake_frame_encryptor") {
702 testonly = true
703 sources = [
704 "test/fake_frame_encryptor.cc",
705 "test/fake_frame_encryptor.h",
706 ]
707 deps = [
708 ":array_view",
709 ":libjingle_peerconnection_api",
710 "..:webrtc_common",
711 "../rtc_base:checks",
712 "../rtc_base:rtc_base_approved",
713 ]
714 }
715
716 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700717 testonly = true
718 sources = [
719 "test/fake_frame_decryptor.cc",
720 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700721 ]
722 deps = [
723 ":array_view",
724 ":libjingle_peerconnection_api",
725 "..:webrtc_common",
726 "../rtc_base:checks",
727 "../rtc_base:rtc_base_approved",
728 ]
729 }
730
Jiawei Ou651b92e2018-06-29 15:46:44 -0700731 rtc_source_set("mock_peerconnectioninterface") {
732 testonly = true
733 sources = [
734 "test/mock_peerconnectioninterface.h",
735 ]
736
737 deps = [
738 ":libjingle_peerconnection_api",
739 "../test:test_support",
740 ]
741 }
742
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100743 rtc_source_set("mock_rtp") {
744 testonly = true
745 sources = [
746 "test/mock_rtpreceiver.h",
747 "test/mock_rtpsender.h",
748 ]
749
750 deps = [
751 ":libjingle_peerconnection_api",
752 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100753 ]
754 }
755
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700756 rtc_source_set("mock_video_bitrate_allocator") {
757 testonly = true
758 sources = [
759 "test/mock_video_bitrate_allocator.h",
760 ]
761
762 deps = [
763 "../api/video:video_bitrate_allocator",
764 "../test:test_support",
765 ]
766 }
767
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800768 rtc_source_set("mock_video_bitrate_allocator_factory") {
769 testonly = true
770 sources = [
771 "test/mock_video_bitrate_allocator_factory.h",
772 ]
773
774 deps = [
775 "../api/video:video_bitrate_allocator_factory",
776 "../test:test_support",
777 ]
778 }
779
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700780 rtc_source_set("mock_video_codec_factory") {
781 testonly = true
782 sources = [
783 "test/mock_video_decoder_factory.h",
784 "test/mock_video_encoder_factory.h",
785 ]
786
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700787 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100788 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700789 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700790 ]
791 }
792
Erik Språngc84cd952018-10-15 11:55:13 +0200793 rtc_source_set("mock_video_decoder") {
794 visibility = [ "*" ]
795
796 testonly = true
797 sources = [
798 "test/mock_video_decoder.cc",
799 "test/mock_video_decoder.h",
800 ]
801
802 deps = [
803 "../api/video_codecs:video_codecs_api",
804 "../test:test_support",
805 ]
806 }
807
Erik Språng6af1c922018-10-12 10:01:30 +0200808 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200809 visibility = [ "*" ]
810
Erik Språng6af1c922018-10-12 10:01:30 +0200811 testonly = true
812 sources = [
813 "test/mock_video_encoder.cc",
814 "test/mock_video_encoder.h",
815 ]
816
817 deps = [
818 "../api/video_codecs:video_codecs_api",
819 "../test:test_support",
820 ]
821 }
822
Anton Sukhanov7940da02018-10-10 10:34:49 -0700823 rtc_source_set("fake_media_transport") {
824 testonly = true
825
826 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700827 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700828 "test/fake_media_transport.h",
829 ]
830
831 deps = [
832 ":libjingle_peerconnection_api",
833 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700834 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100835 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700836 ]
837 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200838
839 rtc_source_set("loopback_media_transport") {
840 testonly = true
841
842 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100843 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200844 "test/loopback_media_transport.h",
845 ]
846
847 deps = [
848 ":libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100849 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200850 "../rtc_base:checks",
Steve Antona59dcc32019-03-25 13:53:07 -0700851 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100852 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200853 ]
854 }
855
856 rtc_source_set("rtc_api_unittests") {
857 testonly = true
858
859 sources = [
860 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100861 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800862 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200863 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200864 "rtp_packet_info_unittest.cc",
865 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800866 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200867 "test/loopback_media_transport_unittest.cc",
868 ]
869
Niels Möller2e47f7c2018-10-16 10:41:42 +0200870 deps = [
871 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100872 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200873 ":libjingle_peerconnection_api",
874 ":loopback_media_transport",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200875 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200876 ":rtp_packet_info",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200877 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100878 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200879 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200880 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200881 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100882 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200883 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200884 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200885 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200886 ]
887 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100888
889 rtc_source_set("compile_all_headers") {
890 testonly = true
891
892 sources = [
893 "test/compile_all_headers.cc",
894 ]
895
896 deps = [
897 ":fake_frame_decryptor",
898 ":fake_frame_encryptor",
899 ":fake_media_transport",
900 ":loopback_media_transport",
901 ":mock_audio_mixer",
902 ":mock_frame_decryptor",
903 ":mock_frame_encryptor",
904 ":mock_peerconnectioninterface",
905 ":mock_rtp",
906 ":mock_video_bitrate_allocator",
907 ":mock_video_bitrate_allocator_factory",
908 ":mock_video_codec_factory",
909 ":mock_video_decoder",
910 ":mock_video_encoder",
911 ":rtc_api_unittests",
912 "units:units_unittests",
913 ]
914 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700915}