blob: fc7121c49921fb30445e298f8e56dd4868eaa040 [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.h",
Anton Sukhanovc136b062019-05-14 14:53:42 -0700118 "datagram_transport_interface.h",
Harald Alvestrand7061e512019-04-10 17:20:42 +0200119 "dtls_transport_interface.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800120 "dtls_transport_interface.h",
121 "dtmf_sender_interface.h",
Harald Alvestrand98462622019-01-30 14:57:03 +0100122 "ice_transport_interface.h",
Steve Anton845bb732017-12-05 12:50:26 -0800123 "jsep.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700124 "jsep.h",
Steve Anton10542f22019-01-11 09:11:00 -0800125 "jsep_ice_candidate.cc",
126 "jsep_ice_candidate.h",
127 "jsep_session_description.h",
Steve Anton10542f22019-01-11 09:11:00 -0800128 "media_stream_interface.cc",
129 "media_stream_interface.h",
130 "media_stream_proxy.h",
131 "media_stream_track_proxy.h",
Anton Sukhanov4f08faa2019-05-21 11:12:57 -0700132 "media_transport_config.h",
Anton Sukhanovf60bd4b2018-09-05 13:41:46 -0400133 "media_transport_interface.h",
kjellanderc76dc952016-06-03 03:09:32 -0700134 "notifier.h",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200135 "packet_socket_factory.h",
Steve Anton10542f22019-01-11 09:11:00 -0800136 "peer_connection_factory_proxy.h",
137 "peer_connection_interface.cc",
138 "peer_connection_interface.h",
139 "peer_connection_proxy.h",
Steve Antonf2737d22017-10-31 16:27:34 -0700140 "proxy.cc",
kjellanderc76dc952016-06-03 03:09:32 -0700141 "proxy.h",
Steve Anton10542f22019-01-11 09:11:00 -0800142 "rtp_receiver_interface.cc",
143 "rtp_receiver_interface.h",
144 "rtp_sender_interface.cc",
145 "rtp_sender_interface.h",
146 "rtp_transceiver_interface.cc",
147 "rtp_transceiver_interface.h",
Harald Alvestrandc85328f2019-02-28 07:51:00 +0100148 "sctp_transport_interface.cc",
149 "sctp_transport_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800150 "set_remote_description_observer_interface.h",
151 "stats_types.cc",
152 "stats_types.h",
153 "turn_customizer.h",
154 "uma_metrics.h",
155 "video_track_source_proxy.h",
kjellanderc76dc952016-06-03 03:09:32 -0700156 ]
kjellanderc76dc952016-06-03 03:09:32 -0700157 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100158 ":array_view",
Niels Möllera6fe2612018-01-19 11:28:54 +0100159 ":audio_options_api",
Niels Möller8366e172018-02-14 12:20:13 +0100160 ":callfactory_api",
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100161 ":fec_controller_api",
Niels Möller8366e172018-02-14 12:20:13 +0100162 ":libjingle_logging_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200163 ":network_state_predictor_api",
Patrik Höglund662e31f2019-09-05 14:35:04 +0200164 ":packet_socket_factory",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200165 ":rtc_error",
hbos74e1a4f2016-09-15 23:33:01 -0700166 ":rtc_stats_api",
Chen Xingd2a66862019-06-03 14:53:42 +0200167 ":rtp_packet_info",
Niels Möller184b4af2019-08-23 13:33:50 +0200168 ":rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100169 ":scoped_refptr",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100170 "audio:audio_mixer_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100171 "audio_codecs:audio_codecs_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200172 "rtc_event_log",
Danil Chapovalov9435c612019-04-01 10:33:16 +0200173 "task_queue",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200174 "transport:bitrate_settings",
Niels Möller65f17ca2019-09-12 13:59:36 +0200175 "transport:datagram_transport_interface",
Sebastian Janssondfce03a2018-05-18 18:05:10 +0200176 "transport:network_control",
Niels Möllerec3b9ff2019-02-08 00:28:39 +0100177 "transport/media:audio_interfaces",
Niels Möller65f17ca2019-09-12 13:59:36 +0200178 "transport/media:media_transport_interface",
Niels Möller7e0e44f2019-02-12 14:04:11 +0100179 "transport/media:video_interfaces",
Niels Möllera8370302019-09-02 15:16:49 +0200180 "transport/rtp:rtp_source",
Piotr (Peter) Slatala48c54932019-01-28 06:50:38 -0800181 "units:data_rate",
Bjorn A Mellem57dc02a2019-05-30 09:15:37 -0700182 "units:timestamp",
Niels Möller3a742392018-10-08 11:13:58 +0200183 "video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200184 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200185 "video:video_rtp_headers",
Steve Anton2c9ebef2019-01-28 17:27:58 -0800186 "//third_party/abseil-cpp/absl/algorithm:container",
Steve Anton8e967df2019-07-30 18:07:40 -0700187 "//third_party/abseil-cpp/absl/memory",
Steve Anton6fe1fba2018-12-11 10:15:23 -0800188 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200189 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100190
191 # Basically, don't add stuff here. You might break sensitive downstream
192 # targets like pnacl. API should not depend on anything outside of this
193 # file, really. All these should arguably go away in time.
kjellander8a116632017-04-21 05:17:08 -0700194 "..:webrtc_common",
Niels Möller6daa2782018-01-23 10:37:42 +0100195 "../media:rtc_media_config",
Patrik Höglundb874a352017-11-27 14:32:41 +0100196 "../modules/audio_processing:audio_processing_statistics",
Artem Titov94b57c02019-03-21 13:35:10 +0100197 "../rtc_base",
Patrik Höglund3e113432017-12-15 14:40:10 +0100198 "../rtc_base:checks",
199 "../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700200 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200201 "../rtc_base/system:rtc_export",
kjellanderc76dc952016-06-03 03:09:32 -0700202 ]
ossu7bb87ee2017-01-23 04:56:25 -0800203}
kjellanderc76dc952016-06-03 03:09:32 -0700204
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200205rtc_source_set("rtc_error") {
206 visibility = [ "*" ]
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200207 sources = [
208 "rtc_error.cc",
209 "rtc_error.h",
210 ]
211 deps = [
212 "../rtc_base:checks",
213 "../rtc_base:logging",
214 "../rtc_base:macromagic",
215 "../rtc_base/system:rtc_export",
216 "//third_party/abseil-cpp/absl/strings",
217 ]
Mirko Bonadei9bc98852019-09-10 10:05:26 +0200218}
219
Patrik Höglund662e31f2019-09-05 14:35:04 +0200220rtc_source_set("packet_socket_factory") {
221 visibility = [ "*" ]
222 sources = [
223 # TODO(bugs.webrtc.org/7447: remove .h files from the api target once
224 # downstream is updated to use the new target.
225 "async_resolver_factory.h",
226 "packet_socket_factory.h",
227 ]
228 deps = [
229 "../rtc_base:rtc_base",
230 "../rtc_base/system:rtc_export",
231 ]
232}
233
Mirko Bonadei85340ce2018-11-19 15:51:39 +0100234rtc_source_set("scoped_refptr") {
235 visibility = [ "*" ]
236 sources = [
237 "scoped_refptr.h",
238 ]
239}
240
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200241rtc_source_set("video_quality_test_fixture_api") {
242 visibility = [ "*" ]
243 testonly = true
244 sources = [
245 "test/video_quality_test_fixture.h",
246 ]
247 deps = [
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200248 ":fec_controller_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200249 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200250 ":network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200251 ":rtp_parameters",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200252 ":simulated_network_api",
253 "../call:fake_network",
254 "../call:rtp_interfaces",
255 "../test:test_common",
256 "../test:video_test_common",
Sebastian Jansson1391ed22019-04-30 14:23:51 +0200257 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200258 "transport/media:media_transport_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200259 "video_codecs:video_codecs_api",
260 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200261}
262
Artem Titovd57628f2019-03-22 12:34:25 +0100263rtc_source_set("video_quality_analyzer_api") {
264 visibility = [ "*" ]
265 testonly = true
266 sources = [
267 "test/video_quality_analyzer_interface.h",
268 ]
269
270 deps = [
271 ":stats_observer_interface",
272 "video:encoded_image",
273 "video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200274 "video:video_rtp_headers",
Artem Titovd57628f2019-03-22 12:34:25 +0100275 "video_codecs:video_codecs_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100276 "//third_party/abseil-cpp/absl/types:optional",
277 ]
278}
279
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200280rtc_source_set("track_id_stream_label_map") {
281 visibility = [ "*" ]
282 sources = [
283 "test/track_id_stream_label_map.h",
284 ]
285}
286
Niels Möller184b4af2019-08-23 13:33:50 +0200287rtc_source_set("rtp_parameters") {
288 visibility = [ "*" ]
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200289 sources = [
290 "media_types.cc",
291 "media_types.h",
292 "rtp_parameters.cc",
293 "rtp_parameters.h",
294 ]
295 deps = [
296 ":array_view",
297 "../rtc_base:checks",
298 "../rtc_base:stringutils",
299 "../rtc_base/system:rtc_export",
300 "//third_party/abseil-cpp/absl/types:optional",
301 ]
Niels Möller184b4af2019-08-23 13:33:50 +0200302}
303
Artem Titovd57628f2019-03-22 12:34:25 +0100304rtc_source_set("audio_quality_analyzer_api") {
305 visibility = [ "*" ]
306 testonly = true
307 sources = [
308 "test/audio_quality_analyzer_interface.h",
309 ]
310
311 deps = [
312 ":stats_observer_interface",
Mirko Bonadeif948eb62019-04-05 15:13:23 +0200313 ":track_id_stream_label_map",
Artem Titovd57628f2019-03-22 12:34:25 +0100314 ]
315}
316
317rtc_source_set("stats_observer_interface") {
318 visibility = [ "*" ]
319 testonly = true
320 sources = [
321 "test/stats_observer_interface.h",
322 ]
323
324 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200325 # For api/stats_types.h
Artem Titovd57628f2019-03-22 12:34:25 +0100326 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200327 ":rtp_parameters",
Artem Titovd57628f2019-03-22 12:34:25 +0100328 ]
329}
330
331rtc_source_set("peer_connection_quality_test_fixture_api") {
332 visibility = [ "*" ]
333 testonly = true
334 sources = [
335 "test/peerconnection_quality_test_fixture.h",
336 ]
337
338 deps = [
339 ":audio_quality_analyzer_api",
340 ":callfactory_api",
341 ":fec_controller_api",
342 ":function_view",
343 ":libjingle_peerconnection_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200344 ":network_state_predictor_api",
Artem Titovd57628f2019-03-22 12:34:25 +0100345 ":simulated_network_api",
Artem Titova8549212019-08-19 14:38:06 +0200346 ":stats_observer_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100347 ":video_quality_analyzer_api",
Artem Titovf65a89b2019-05-07 11:56:44 +0200348 "../media:rtc_media_base",
Artem Titovd57628f2019-03-22 12:34:25 +0100349 "../rtc_base:rtc_base",
Danil Chapovalov9305d112019-09-04 13:16:09 +0200350 "rtc_event_log",
Danil Chapovalov1a5fc902019-06-10 12:58:03 +0200351 "task_queue",
Artem Titovd57628f2019-03-22 12:34:25 +0100352 "transport:network_control",
Niels Möller65f17ca2019-09-12 13:59:36 +0200353 "transport/media:media_transport_interface",
Artem Titovd57628f2019-03-22 12:34:25 +0100354 "units:time_delta",
355 "video_codecs:video_codecs_api",
356 "//third_party/abseil-cpp/absl/memory",
357 "//third_party/abseil-cpp/absl/types:optional",
358 ]
359}
360
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200361rtc_source_set("test_dependency_factory") {
362 visibility = [ "*" ]
363 testonly = true
364 sources = [
365 "test/test_dependency_factory.cc",
366 "test/test_dependency_factory.h",
367 ]
368 deps = [
369 ":video_quality_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100370 "../rtc_base:checks",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200371 "../rtc_base:thread_checker",
tzikf0e926f2018-10-15 13:52:10 +0900372 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200373 ]
Patrik Höglundd8f3c172018-09-26 14:39:17 +0200374}
375
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200376if (rtc_include_tests) {
377 rtc_source_set("create_video_quality_test_fixture_api") {
378 visibility = [ "*" ]
379 testonly = true
380 sources = [
381 "test/create_video_quality_test_fixture.cc",
382 "test/create_video_quality_test_fixture.h",
383 ]
384 deps = [
385 ":fec_controller_api",
Ying Wang0810a7c2019-04-10 13:48:24 +0200386 ":network_state_predictor_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100387 ":scoped_refptr",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200388 ":video_quality_test_fixture_api",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200389 "../video:video_quality_test",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200390 "//third_party/abseil-cpp/absl/memory",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200391 ]
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200392 }
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100393
Artem Titov8ea8dcb2019-03-26 13:38:02 +0100394 rtc_source_set("create_network_emulation_manager") {
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100395 visibility = [ "*" ]
396 testonly = true
397 sources = [
398 "test/create_network_emulation_manager.cc",
399 "test/create_network_emulation_manager.h",
400 ]
401 deps = [
402 ":network_emulation_manager_api",
Artem Titov386802e2019-07-05 10:48:17 +0200403 "../test/network:emulated_network",
Artem Titov533a9fe2019-03-21 12:18:05 +0100404 "//third_party/abseil-cpp/absl/memory",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100405 ]
406 }
Artem Titovd57628f2019-03-22 12:34:25 +0100407
408 rtc_source_set("create_peerconnection_quality_test_fixture") {
409 visibility = [ "*" ]
410 testonly = true
411 sources = [
412 "test/create_peerconnection_quality_test_fixture.cc",
413 "test/create_peerconnection_quality_test_fixture.h",
414 ]
415
416 deps = [
417 ":audio_quality_analyzer_api",
418 ":peer_connection_quality_test_fixture_api",
419 ":video_quality_analyzer_api",
420 "../test/pc/e2e:peerconnection_quality_test",
421 "//third_party/abseil-cpp/absl/memory",
422 ]
423 }
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200424}
425
Elad Alon80810732017-10-06 13:07:32 +0200426rtc_source_set("libjingle_logging_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000427 visibility = [ "*" ]
Elad Alon80810732017-10-06 13:07:32 +0200428 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800429 "rtc_event_log_output.h",
Elad Alon80810732017-10-06 13:07:32 +0200430 ]
431}
432
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200433rtc_source_set("rtc_event_log_output_file") {
434 visibility = [ "*" ]
435 sources = [
436 "rtc_event_log_output_file.cc",
437 "rtc_event_log_output_file.h",
438 ]
439
440 deps = [
441 ":libjingle_logging_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200442 "../rtc_base:checks",
443 "../rtc_base:rtc_base_approved",
444 "../rtc_base/system:file_wrapper",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200445 "rtc_event_log",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200446 ]
447}
448
hbos74e1a4f2016-09-15 23:33:01 -0700449rtc_source_set("rtc_stats_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000450 visibility = [ "*" ]
hbos74e1a4f2016-09-15 23:33:01 -0700451 cflags = []
452 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800453 "stats/rtc_stats.h",
454 "stats/rtc_stats_collector_callback.h",
455 "stats/rtc_stats_report.h",
hbos74e1a4f2016-09-15 23:33:01 -0700456 "stats/rtcstats_objects.h",
hbos74e1a4f2016-09-15 23:33:01 -0700457 ]
458
459 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100460 ":scoped_refptr",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100461 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700462 "../rtc_base:rtc_base_approved",
Mirko Bonadei3b56ee72018-10-15 17:15:12 +0200463 "../rtc_base/system:rtc_export",
hbos74e1a4f2016-09-15 23:33:01 -0700464 ]
465}
466
Niels Möllera6fe2612018-01-19 11:28:54 +0100467rtc_source_set("audio_options_api") {
468 visibility = [ "*" ]
469 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +0200470 "audio_options.cc",
Niels Möllera6fe2612018-01-19 11:28:54 +0100471 "audio_options.h",
472 ]
473
474 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100475 ":array_view",
Danil Chapovalov21652332018-08-31 10:29:07 +0200476 "../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200477 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllera6fe2612018-01-19 11:28:54 +0100478 ]
479}
480
aleloia8eb7562016-11-28 07:02:13 -0800481rtc_source_set("transport_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000482 visibility = [ "*" ]
aleloia8eb7562016-11-28 07:02:13 -0800483 sources = [
Dino Radaković1807d572018-02-22 14:18:06 +0100484 "call/transport.cc",
aleloia8eb7562016-11-28 07:02:13 -0800485 "call/transport.h",
486 ]
487}
nisseb2250e52016-12-02 04:01:14 -0800488
Sebastian Jansson6736df12018-11-21 19:18:39 +0100489rtc_source_set("bitrate_allocation") {
490 visibility = [ "*" ]
491 sources = [
492 "call/bitrate_allocation.h",
493 ]
494 deps = [
495 "units:data_rate",
496 "units:time_delta",
497 ]
498}
499
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200500rtc_source_set("simulated_network_api") {
501 visibility = [ "*" ]
502 sources = [
503 "test/simulated_network.h",
504 ]
505 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100506 "../rtc_base",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200507 "../rtc_base:criticalsection",
Danil Chapovalov065a52a2018-07-09 10:58:54 +0200508 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200509 ]
510}
511
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100512rtc_source_set("network_emulation_manager_api") {
513 visibility = [ "*" ]
514 sources = [
515 "test/network_emulation_manager.h",
516 ]
517 deps = [
518 ":simulated_network_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100519 "../rtc_base",
Artem Titov806299e2019-04-12 12:17:19 +0200520 "units:data_rate",
521 "units:data_size",
522 "units:timestamp",
Artem Titov7bf8c7f2019-03-15 15:00:37 +0100523 ]
524}
525
Ying Wang3b790f32018-01-19 17:58:57 +0100526rtc_source_set("fec_controller_api") {
527 visibility = [ "*" ]
528 sources = [
529 "fec_controller.h",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200530 "fec_controller_override.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100531 ]
532
533 deps = [
Ying Wang0dd1b0a2018-02-20 12:50:27 +0100534 "../modules:module_fec_api",
Niels Möller8f7ce222019-03-21 15:43:58 +0100535 "video:video_frame_type",
Ying Wang3b790f32018-01-19 17:58:57 +0100536 ]
537}
538
Ying Wang0810a7c2019-04-10 13:48:24 +0200539rtc_source_set("network_state_predictor_api") {
540 visibility = [ "*" ]
541 sources = [
542 "network_state_predictor.h",
543 ]
544}
545
kwiberg529662a2017-09-04 05:43:17 -0700546rtc_source_set("array_view") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000547 visibility = [ "*" ]
kwiberg529662a2017-09-04 05:43:17 -0700548 sources = [
549 "array_view.h",
550 ]
551 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100552 "../rtc_base:checks",
553 "../rtc_base:type_traits",
kwiberg529662a2017-09-04 05:43:17 -0700554 ]
555}
556
Niels Möller9155e492017-10-23 11:22:30 +0200557rtc_source_set("refcountedbase") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000558 visibility = [ "*" ]
Niels Möller9155e492017-10-23 11:22:30 +0200559 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800560 "ref_counted_base.h",
Niels Möller9155e492017-10-23 11:22:30 +0200561 ]
562 deps = [
563 "../rtc_base:rtc_base_approved",
564 ]
565}
566
Harald Alvestrand98462622019-01-30 14:57:03 +0100567rtc_source_set("ice_transport_factory") {
568 visibility = [ "*" ]
569 sources = [
570 "ice_transport_factory.cc",
571 "ice_transport_factory.h",
572 ]
573 deps = [
574 ":libjingle_peerconnection_api",
575 ":scoped_refptr",
576 "../p2p:rtc_p2p",
Artem Titov94b57c02019-03-21 13:35:10 +0100577 "../rtc_base",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200578 "../rtc_base/system:rtc_export",
Steve Anton6fdfec12019-07-01 14:07:33 -0700579 "rtc_event_log:rtc_event_log",
Artem Titov533a9fe2019-03-21 12:18:05 +0100580 "//third_party/abseil-cpp/absl/memory",
Harald Alvestrand98462622019-01-30 14:57:03 +0100581 ]
582}
583
Ivo Creusen55de08e2018-09-03 11:49:27 +0200584rtc_source_set("neteq_simulator_api") {
585 visibility = [ "*" ]
586 sources = [
587 "test/neteq_simulator.cc",
588 "test/neteq_simulator.h",
589 ]
590}
591
Artem Titov741daaf2019-03-21 14:37:36 +0100592rtc_source_set("function_view") {
593 visibility = [ "*" ]
594 sources = [
595 "function_view.h",
596 ]
597 deps = [
598 "../rtc_base:checks",
599 ]
600}
601
kjellanderfd5b4e92016-06-13 12:08:33 -0700602if (rtc_include_tests) {
Ivo Creusen2cb41052018-03-15 12:22:52 +0100603 if (rtc_enable_protobuf) {
604 rtc_source_set("audioproc_f_api") {
605 visibility = [ "*" ]
606 testonly = true
607 sources = [
608 "test/audioproc_float.cc",
609 "test/audioproc_float.h",
610 ]
611
612 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100613 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +0000614 "../modules/audio_processing:api",
Ivo Creusen2cb41052018-03-15 12:22:52 +0100615 "../modules/audio_processing:audioproc_f_impl",
616 ]
617 }
Ivo Creusen55de08e2018-09-03 11:49:27 +0200618
619 rtc_source_set("neteq_simulator_factory") {
620 visibility = [ "*" ]
621 testonly = true
622 sources = [
623 "test/neteq_simulator_factory.cc",
624 "test/neteq_simulator_factory.h",
625 ]
626 deps = [
627 ":neteq_simulator_api",
628 "../modules/audio_coding:neteq_test_factory",
Ivo Creusenf81b0f12018-09-11 10:30:58 +0200629 "../rtc_base:checks",
Mirko Bonadei2ab97f62019-07-18 13:44:12 +0200630 "//third_party/abseil-cpp/absl/flags:flag",
631 "//third_party/abseil-cpp/absl/flags:parse",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200632 "//third_party/abseil-cpp/absl/memory",
Ivo Creusen5ec61562019-03-20 10:52:18 +0100633 "//third_party/abseil-cpp/absl/strings",
Ivo Creusen55de08e2018-09-03 11:49:27 +0200634 ]
635 }
Ivo Creusen2cb41052018-03-15 12:22:52 +0100636 }
637
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200638 rtc_source_set("simulcast_test_fixture_api") {
639 visibility = [ "*" ]
640 testonly = true
641 sources = [
642 "test/simulcast_test_fixture.h",
643 ]
644 }
645
646 rtc_source_set("create_simulcast_test_fixture_api") {
647 visibility = [ "*" ]
648 testonly = true
649 sources = [
650 "test/create_simulcast_test_fixture.cc",
651 "test/create_simulcast_test_fixture.h",
652 ]
653 deps = [
654 ":simulcast_test_fixture_api",
655 "../modules/video_coding:simulcast_test_fixture_impl",
656 "../rtc_base:rtc_base_approved",
657 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200658 "//third_party/abseil-cpp/absl/memory",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200659 ]
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200660 }
661
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200662 rtc_source_set("videocodec_test_fixture_api") {
663 visibility = [ "*" ]
664 testonly = true
665 sources = [
666 "test/videocodec_test_fixture.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200667 "test/videocodec_test_stats.cc",
668 "test/videocodec_test_stats.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200669 ]
670 deps = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200671 "..:webrtc_common",
672 "../modules/video_coding:video_codec_interface",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200673 "../rtc_base:stringutils",
Niels Möller8f7ce222019-03-21 15:43:58 +0100674 "video:video_frame_type",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200675 "video_codecs:video_codecs_api",
676 ]
677 }
678
679 rtc_source_set("create_videocodec_test_fixture_api") {
680 visibility = [ "*" ]
681 testonly = true
682 sources = [
683 "test/create_videocodec_test_fixture.cc",
684 "test/create_videocodec_test_fixture.h",
685 ]
686 deps = [
687 ":videocodec_test_fixture_api",
688 "../modules/video_coding:video_codecs_test_framework",
689 "../modules/video_coding:videocodec_test_impl",
690 "../rtc_base:rtc_base_approved",
691 "video_codecs:video_codecs_api",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200692 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200693 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200694 }
695
kjellander2f6af9c2017-03-02 22:26:23 -0800696 rtc_source_set("mock_audio_mixer") {
697 testonly = true
698 sources = [
699 "test/mock_audio_mixer.h",
700 ]
701
kjellander2f6af9c2017-03-02 22:26:23 -0800702 deps = [
jianjun.zhuc0247402017-07-11 06:20:45 -0700703 "../test:test_support",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100704 "audio:audio_mixer_api",
kjellander2f6af9c2017-03-02 22:26:23 -0800705 ]
706 }
707
Elad Alon45befc52019-07-02 11:20:09 +0200708 rtc_source_set("mock_fec_controller_override") {
709 testonly = true
710 sources = [
711 "test/mock_fec_controller_override.h",
712 ]
713 deps = [
714 ":fec_controller_api",
715 "../test:test_support",
716 ]
717 }
718
Benjamin Wright78410ad2018-10-25 09:52:57 -0700719 rtc_source_set("mock_frame_encryptor") {
720 testonly = true
721 sources = [
722 "test/mock_frame_encryptor.cc",
723 "test/mock_frame_encryptor.h",
724 ]
725 deps = [
Niels Möllerb4a61282019-08-29 12:16:56 +0200726 # For api/crypto/frame_encryptor_interface.h
Benjamin Wright78410ad2018-10-25 09:52:57 -0700727 ":libjingle_peerconnection_api",
728 "../test:test_support",
729 ]
730 }
731
732 rtc_source_set("mock_frame_decryptor") {
733 testonly = true
734 sources = [
735 "test/mock_frame_decryptor.cc",
736 "test/mock_frame_decryptor.h",
737 ]
738 deps = [
739 ":libjingle_peerconnection_api",
740 "../test:test_support",
741 ]
742 }
743
744 rtc_source_set("fake_frame_encryptor") {
745 testonly = true
746 sources = [
747 "test/fake_frame_encryptor.cc",
748 "test/fake_frame_encryptor.h",
749 ]
750 deps = [
751 ":array_view",
752 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200753 ":rtp_parameters",
Benjamin Wright78410ad2018-10-25 09:52:57 -0700754 "..:webrtc_common",
755 "../rtc_base:checks",
756 "../rtc_base:rtc_base_approved",
757 ]
758 }
759
760 rtc_source_set("fake_frame_decryptor") {
Benjamin Wright84583f62018-10-04 14:22:34 -0700761 testonly = true
762 sources = [
763 "test/fake_frame_decryptor.cc",
764 "test/fake_frame_decryptor.h",
Benjamin Wright84583f62018-10-04 14:22:34 -0700765 ]
766 deps = [
767 ":array_view",
768 ":libjingle_peerconnection_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200769 ":rtp_parameters",
Benjamin Wright84583f62018-10-04 14:22:34 -0700770 "..:webrtc_common",
771 "../rtc_base:checks",
772 "../rtc_base:rtc_base_approved",
773 ]
774 }
775
Jiawei Ou651b92e2018-06-29 15:46:44 -0700776 rtc_source_set("mock_peerconnectioninterface") {
777 testonly = true
778 sources = [
779 "test/mock_peerconnectioninterface.h",
780 ]
781
782 deps = [
783 ":libjingle_peerconnection_api",
784 "../test:test_support",
785 ]
786 }
787
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100788 rtc_source_set("mock_rtp") {
789 testonly = true
790 sources = [
791 "test/mock_rtpreceiver.h",
792 "test/mock_rtpsender.h",
793 ]
794
795 deps = [
796 ":libjingle_peerconnection_api",
797 "../test:test_support",
Patrik Höglund4b9e6ba2017-12-19 10:32:11 +0100798 ]
799 }
800
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700801 rtc_source_set("mock_video_bitrate_allocator") {
802 testonly = true
803 sources = [
804 "test/mock_video_bitrate_allocator.h",
805 ]
806
807 deps = [
808 "../api/video:video_bitrate_allocator",
809 "../test:test_support",
810 ]
811 }
812
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800813 rtc_source_set("mock_video_bitrate_allocator_factory") {
814 testonly = true
815 sources = [
816 "test/mock_video_bitrate_allocator_factory.h",
817 ]
818
819 deps = [
820 "../api/video:video_bitrate_allocator_factory",
821 "../test:test_support",
822 ]
823 }
824
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700825 rtc_source_set("mock_video_codec_factory") {
826 testonly = true
827 sources = [
828 "test/mock_video_decoder_factory.h",
829 "test/mock_video_encoder_factory.h",
830 ]
831
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700832 deps = [
Mirko Bonadei34814c72018-01-11 10:13:56 +0100833 "../api/video_codecs:video_codecs_api",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700834 "../test:test_support",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700835 ]
836 }
837
Erik Språngc84cd952018-10-15 11:55:13 +0200838 rtc_source_set("mock_video_decoder") {
839 visibility = [ "*" ]
840
841 testonly = true
842 sources = [
843 "test/mock_video_decoder.cc",
844 "test/mock_video_decoder.h",
845 ]
846
847 deps = [
848 "../api/video_codecs:video_codecs_api",
849 "../test:test_support",
850 ]
851 }
852
Erik Språng6af1c922018-10-12 10:01:30 +0200853 rtc_source_set("mock_video_encoder") {
Erik Språngc84cd952018-10-15 11:55:13 +0200854 visibility = [ "*" ]
855
Erik Språng6af1c922018-10-12 10:01:30 +0200856 testonly = true
857 sources = [
858 "test/mock_video_encoder.cc",
859 "test/mock_video_encoder.h",
860 ]
861
862 deps = [
863 "../api/video_codecs:video_codecs_api",
864 "../test:test_support",
865 ]
866 }
867
Anton Sukhanov7940da02018-10-10 10:34:49 -0700868 rtc_source_set("fake_media_transport") {
869 testonly = true
870
871 sources = [
Bjorn A Mellemc85ebbe2019-06-07 10:28:06 -0700872 "test/fake_datagram_transport.h",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700873 "test/fake_media_transport.h",
874 ]
875
876 deps = [
Anton Sukhanov7940da02018-10-10 10:34:49 -0700877 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200878 "transport:datagram_transport_interface",
879 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700880 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100881 "//third_party/abseil-cpp/absl/memory",
Anton Sukhanov7940da02018-10-10 10:34:49 -0700882 ]
883 }
Niels Möller2e47f7c2018-10-16 10:41:42 +0200884
885 rtc_source_set("loopback_media_transport") {
886 testonly = true
887
888 sources = [
Niels Möllere0446cb2018-11-30 09:35:52 +0100889 "test/loopback_media_transport.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200890 "test/loopback_media_transport.h",
891 ]
892
893 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100894 "../rtc_base",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200895 "../rtc_base:checks",
Niels Möller65f17ca2019-09-12 13:59:36 +0200896 "transport:datagram_transport_interface",
897 "transport/media:media_transport_interface",
Steve Antona59dcc32019-03-25 13:53:07 -0700898 "//third_party/abseil-cpp/absl/algorithm:container",
Niels Möllere0446cb2018-11-30 09:35:52 +0100899 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200900 ]
901 }
902
903 rtc_source_set("rtc_api_unittests") {
904 testonly = true
905
906 sources = [
907 "array_view_unittest.cc",
Artem Titov741daaf2019-03-21 14:37:36 +0100908 "function_view_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800909 "rtc_error_unittest.cc",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200910 "rtc_event_log_output_file_unittest.cc",
Chen Xingd2a66862019-06-03 14:53:42 +0200911 "rtp_packet_info_unittest.cc",
912 "rtp_packet_infos_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800913 "rtp_parameters_unittest.cc",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200914 "test/loopback_media_transport_unittest.cc",
915 ]
916
Niels Möller2e47f7c2018-10-16 10:41:42 +0200917 deps = [
918 ":array_view",
Artem Titov741daaf2019-03-21 14:37:36 +0100919 ":function_view",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200920 ":libjingle_peerconnection_api",
921 ":loopback_media_transport",
Mirko Bonadeifcfeefe2019-09-10 10:51:23 +0200922 ":rtc_error",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200923 ":rtc_event_log_output_file",
Chen Xingd2a66862019-06-03 14:53:42 +0200924 ":rtp_packet_info",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200925 ":rtp_parameters",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200926 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100927 "../rtc_base:gunit_helpers",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200928 "../rtc_base:rtc_base_approved",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200929 "../test:fileutils",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200930 "../test:test_support",
Danil Chapovalov2684ab32019-02-26 10:18:08 +0100931 "task_queue:task_queue_default_factory_unittests",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200932 "units:units_unittests",
Danil Chapovalovb703db92019-04-08 16:59:28 +0200933 "video:video_unittests",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200934 "//third_party/abseil-cpp/absl/memory",
Niels Möller2e47f7c2018-10-16 10:41:42 +0200935 ]
936 }
Harald Alvestrand3cc45d42019-03-14 05:42:04 +0100937
938 rtc_source_set("compile_all_headers") {
939 testonly = true
940
941 sources = [
942 "test/compile_all_headers.cc",
943 ]
944
945 deps = [
946 ":fake_frame_decryptor",
947 ":fake_frame_encryptor",
948 ":fake_media_transport",
949 ":loopback_media_transport",
950 ":mock_audio_mixer",
951 ":mock_frame_decryptor",
952 ":mock_frame_encryptor",
953 ":mock_peerconnectioninterface",
954 ":mock_rtp",
955 ":mock_video_bitrate_allocator",
956 ":mock_video_bitrate_allocator_factory",
957 ":mock_video_codec_factory",
958 ":mock_video_decoder",
959 ":mock_video_encoder",
960 ":rtc_api_unittests",
961 "units:units_unittests",
962 ]
963 }
kjellanderfd5b4e92016-06-13 12:08:33 -0700964}