hjon | aa32c3e | 2015-12-14 03:58:11 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 12:55:00 | [diff] [blame] | 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 14 | |
| 15 | group("api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 16 | visibility = [ "*" ] |
Dan Minor | 9c68613 | 2018-01-15 15:20:00 | [diff] [blame] | 17 | deps = [] |
| 18 | |
| 19 | if (!build_with_mozilla) { |
| 20 | deps += [ ":libjingle_peerconnection_api" ] |
| 21 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 22 | } |
| 23 | |
ehmaldonado | 38a2132 | 2016-09-02 11:10:34 | [diff] [blame] | 24 | rtc_source_set("call_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 25 | visibility = [ "*" ] |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 26 | sources = [ |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 27 | "call/audio_sink.h", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 28 | ] |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 29 | } |
| 30 | |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 31 | rtc_source_set("callfactory_api") { |
| 32 | visibility = [ "*" ] |
| 33 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 34 | "call/call_factory_interface.h", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 35 | ] |
| 36 | } |
| 37 | |
Mirko Bonadei | 3cf8f3e | 2018-11-19 08:17:51 | [diff] [blame] | 38 | rtc_static_library("create_peerconnection_factory") { |
Mirko Bonadei | c3313a3 | 2018-11-19 13:30:17 | [diff] [blame] | 39 | visibility = [ "*" ] |
Mirko Bonadei | 3cf8f3e | 2018-11-19 08:17:51 | [diff] [blame] | 40 | sources = [ |
| 41 | "create_peerconnection_factory.cc", |
| 42 | "create_peerconnection_factory.h", |
| 43 | ] |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 44 | deps = [ |
| 45 | ":callfactory_api", |
| 46 | ":fec_controller_api", |
| 47 | ":libjingle_peerconnection_api", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 48 | ":scoped_refptr", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 49 | "../logging:rtc_event_log_api", |
| 50 | "../logging:rtc_event_log_impl_base", |
| 51 | "../media:rtc_audio_video", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 52 | "../media:rtc_media_base", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 53 | "../modules/audio_device:audio_device_api", |
| 54 | "../modules/audio_processing:api", |
| 55 | "../pc:peerconnection", |
Anders Carlsson | 0109295 | 2018-12-11 14:44:54 | [diff] [blame] | 56 | "../rtc_base:deprecation", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 57 | "../rtc_base:rtc_base", |
| 58 | "../rtc_base:rtc_base_approved", |
| 59 | "audio:audio_mixer_api", |
| 60 | "audio_codecs:audio_codecs_api", |
| 61 | "transport:network_control", |
| 62 | "video_codecs:video_codecs_api", |
| 63 | ] |
Mirko Bonadei | 3cf8f3e | 2018-11-19 08:17:51 | [diff] [blame] | 64 | } |
| 65 | |
Niels Möller | b838952 | 2019-03-19 13:27:03 | [diff] [blame^] | 66 | rtc_source_set("rtp_headers") { |
| 67 | visibility = [ "*" ] |
| 68 | } |
| 69 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 70 | rtc_static_library("libjingle_peerconnection_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 71 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 72 | cflags = [] |
| 73 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 74 | "async_resolver_factory.h", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 75 | "bitrate_constraints.h", |
Steve Anton | 36b28db | 2017-10-26 18:27:17 | [diff] [blame] | 76 | "candidate.cc", |
Patrik Höglund | e2d6a06 | 2017-10-05 12:53:33 | [diff] [blame] | 77 | "candidate.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 78 | "crypto/crypto_options.cc", |
| 79 | "crypto/crypto_options.h", |
| 80 | "crypto/frame_decryptor_interface.h", |
| 81 | "crypto/frame_encryptor_interface.h", |
| 82 | "crypto_params.h", |
| 83 | "data_channel_interface.cc", |
| 84 | "data_channel_interface.h", |
| 85 | "dtls_transport_interface.h", |
| 86 | "dtmf_sender_interface.h", |
Harald Alvestrand | 9846262 | 2019-01-30 13:57:03 | [diff] [blame] | 87 | "ice_transport_interface.h", |
Steve Anton | 845bb73 | 2017-12-05 20:50:26 | [diff] [blame] | 88 | "jsep.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 89 | "jsep.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 90 | "jsep_ice_candidate.cc", |
| 91 | "jsep_ice_candidate.h", |
| 92 | "jsep_session_description.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 93 | "media_stream_interface.cc", |
| 94 | "media_stream_interface.h", |
| 95 | "media_stream_proxy.h", |
| 96 | "media_stream_track_proxy.h", |
Niels Möller | 3a74239 | 2018-10-08 09:13:58 | [diff] [blame] | 97 | "media_transport_interface.cc", |
Anton Sukhanov | f60bd4b | 2018-09-05 17:41:46 | [diff] [blame] | 98 | "media_transport_interface.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 99 | "media_types.cc", |
| 100 | "media_types.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 101 | "notifier.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 102 | "peer_connection_factory_proxy.h", |
| 103 | "peer_connection_interface.cc", |
| 104 | "peer_connection_interface.h", |
| 105 | "peer_connection_proxy.h", |
Steve Anton | f2737d2 | 2017-10-31 23:27:34 | [diff] [blame] | 106 | "proxy.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 107 | "proxy.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 108 | "rtc_error.cc", |
| 109 | "rtc_error.h", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 110 | "rtp_headers.cc", |
| 111 | "rtp_headers.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 112 | "rtp_parameters.cc", |
| 113 | "rtp_parameters.h", |
| 114 | "rtp_receiver_interface.cc", |
| 115 | "rtp_receiver_interface.h", |
| 116 | "rtp_sender_interface.cc", |
| 117 | "rtp_sender_interface.h", |
| 118 | "rtp_transceiver_interface.cc", |
| 119 | "rtp_transceiver_interface.h", |
Harald Alvestrand | c85328f | 2019-02-28 06:51:00 | [diff] [blame] | 120 | "sctp_transport_interface.cc", |
| 121 | "sctp_transport_interface.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 122 | "set_remote_description_observer_interface.h", |
| 123 | "stats_types.cc", |
| 124 | "stats_types.h", |
| 125 | "turn_customizer.h", |
| 126 | "uma_metrics.h", |
| 127 | "video_track_source_proxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 128 | ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 129 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 130 | ":array_view", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 131 | ":audio_options_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 132 | ":callfactory_api", |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 133 | ":fec_controller_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 134 | ":libjingle_logging_api", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 135 | ":rtc_stats_api", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 136 | ":scoped_refptr", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 137 | "audio:audio_mixer_api", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 138 | "audio_codecs:audio_codecs_api", |
Niels Möller | 0c4f7be | 2018-05-07 12:01:37 | [diff] [blame] | 139 | "transport:bitrate_settings", |
Sebastian Jansson | dfce03a | 2018-05-18 16:05:10 | [diff] [blame] | 140 | "transport:network_control", |
Niels Möller | ec3b9ff | 2019-02-07 23:28:39 | [diff] [blame] | 141 | "transport/media:audio_interfaces", |
Niels Möller | 7e0e44f | 2019-02-12 13:04:11 | [diff] [blame] | 142 | "transport/media:video_interfaces", |
Piotr (Peter) Slatala | 48c5493 | 2019-01-28 14:50:38 | [diff] [blame] | 143 | "units:data_rate", |
Niels Möller | 3a74239 | 2018-10-08 09:13:58 | [diff] [blame] | 144 | "video:encoded_image", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 145 | "video:video_frame", |
Steve Anton | 2c9ebef | 2019-01-29 01:27:58 | [diff] [blame] | 146 | "//third_party/abseil-cpp/absl/algorithm:container", |
Steve Anton | 6fe1fba | 2018-12-11 18:15:23 | [diff] [blame] | 147 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 148 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 149 | |
| 150 | # Basically, don't add stuff here. You might break sensitive downstream |
| 151 | # targets like pnacl. API should not depend on anything outside of this |
| 152 | # file, really. All these should arguably go away in time. |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 153 | "..:webrtc_common", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 154 | "../logging:rtc_event_log_api", |
Niels Möller | 6daa278 | 2018-01-23 09:37:42 | [diff] [blame] | 155 | "../media:rtc_media_config", |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 156 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 157 | "../rtc_base:checks", |
| 158 | "../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 159 | "../rtc_base:rtc_base", |
| 160 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 15:15:12 | [diff] [blame] | 161 | "../rtc_base/system:rtc_export", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 162 | ] |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 163 | |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 164 | if (is_nacl) { |
Patrik Höglund | 30bd03b | 2017-12-19 10:45:31 | [diff] [blame] | 165 | # This is needed by .h files included from rtc_base. |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 166 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 167 | } |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 168 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 169 | |
Mirko Bonadei | 85340ce | 2018-11-19 14:51:39 | [diff] [blame] | 170 | rtc_source_set("scoped_refptr") { |
| 171 | visibility = [ "*" ] |
| 172 | sources = [ |
| 173 | "scoped_refptr.h", |
| 174 | ] |
| 175 | } |
| 176 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 177 | rtc_source_set("video_quality_test_fixture_api") { |
| 178 | visibility = [ "*" ] |
| 179 | testonly = true |
| 180 | sources = [ |
| 181 | "test/video_quality_test_fixture.h", |
| 182 | ] |
| 183 | deps = [ |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 184 | ":fec_controller_api", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 185 | ":libjingle_peerconnection_api", |
| 186 | ":simulated_network_api", |
| 187 | "../call:fake_network", |
| 188 | "../call:rtp_interfaces", |
| 189 | "../test:test_common", |
| 190 | "../test:video_test_common", |
| 191 | "video_codecs:video_codecs_api", |
| 192 | ] |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 193 | } |
| 194 | |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 195 | rtc_source_set("test_dependency_factory") { |
| 196 | visibility = [ "*" ] |
| 197 | testonly = true |
| 198 | sources = [ |
| 199 | "test/test_dependency_factory.cc", |
| 200 | "test/test_dependency_factory.h", |
| 201 | ] |
| 202 | deps = [ |
| 203 | ":video_quality_test_fixture_api", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 204 | "../rtc_base:checks", |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 205 | "../rtc_base:thread_checker", |
tzik | f0e926f | 2018-10-15 04:52:10 | [diff] [blame] | 206 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 207 | ] |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 208 | } |
| 209 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 210 | if (rtc_include_tests) { |
| 211 | rtc_source_set("create_video_quality_test_fixture_api") { |
| 212 | visibility = [ "*" ] |
| 213 | testonly = true |
| 214 | sources = [ |
| 215 | "test/create_video_quality_test_fixture.cc", |
| 216 | "test/create_video_quality_test_fixture.h", |
| 217 | ] |
| 218 | deps = [ |
| 219 | ":fec_controller_api", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 220 | ":scoped_refptr", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 221 | ":video_quality_test_fixture_api", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 222 | "../video:video_quality_test", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 223 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 224 | ] |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 225 | } |
Artem Titov | 7bf8c7f | 2019-03-15 14:00:37 | [diff] [blame] | 226 | |
| 227 | rtc_source_set("create_network_emulation_manager_api") { |
| 228 | visibility = [ "*" ] |
| 229 | testonly = true |
| 230 | sources = [ |
| 231 | "test/create_network_emulation_manager.cc", |
| 232 | "test/create_network_emulation_manager.h", |
| 233 | ] |
| 234 | deps = [ |
| 235 | ":network_emulation_manager_api", |
| 236 | "../test/scenario/network:emulated_network", |
| 237 | "//third_party/abseil-cpp/absl/memory:memory", |
| 238 | ] |
| 239 | } |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 240 | } |
| 241 | |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 242 | rtc_source_set("libjingle_logging_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 243 | visibility = [ "*" ] |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 244 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 245 | "rtc_event_log_output.h", |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 246 | ] |
| 247 | } |
| 248 | |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 249 | rtc_source_set("ortc_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 250 | visibility = [ "*" ] |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 251 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 252 | "ortc/packet_transport_interface.h", |
| 253 | "ortc/rtp_transport_interface.h", |
| 254 | "ortc/srtp_transport_interface.h", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 255 | ] |
| 256 | |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 257 | deps = [ |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 258 | ":libjingle_peerconnection_api", |
Niels Möller | b838952 | 2019-03-19 13:27:03 | [diff] [blame^] | 259 | ":rtp_headers", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 260 | "//third_party/abseil-cpp/absl/types:optional", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 261 | ] |
| 262 | } |
| 263 | |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 264 | rtc_source_set("rtc_stats_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 265 | visibility = [ "*" ] |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 266 | cflags = [] |
| 267 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 268 | "stats/rtc_stats.h", |
| 269 | "stats/rtc_stats_collector_callback.h", |
| 270 | "stats/rtc_stats_report.h", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 271 | "stats/rtcstats_objects.h", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 272 | ] |
| 273 | |
| 274 | deps = [ |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 275 | ":scoped_refptr", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 276 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 277 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 15:15:12 | [diff] [blame] | 278 | "../rtc_base/system:rtc_export", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 279 | ] |
| 280 | } |
| 281 | |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 282 | rtc_source_set("audio_options_api") { |
| 283 | visibility = [ "*" ] |
| 284 | sources = [ |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 285 | "audio_options.cc", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 286 | "audio_options.h", |
| 287 | ] |
| 288 | |
| 289 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 290 | ":array_view", |
Danil Chapovalov | 2165233 | 2018-08-31 08:29:07 | [diff] [blame] | 291 | "../rtc_base:stringutils", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 292 | "//third_party/abseil-cpp/absl/types:optional", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 293 | ] |
| 294 | } |
| 295 | |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 296 | rtc_source_set("transport_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 297 | visibility = [ "*" ] |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 298 | sources = [ |
Dino Radaković | 1807d57 | 2018-02-22 13:18:06 | [diff] [blame] | 299 | "call/transport.cc", |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 300 | "call/transport.h", |
| 301 | ] |
| 302 | } |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 303 | |
Sebastian Jansson | 6736df1 | 2018-11-21 18:18:39 | [diff] [blame] | 304 | rtc_source_set("bitrate_allocation") { |
| 305 | visibility = [ "*" ] |
| 306 | sources = [ |
| 307 | "call/bitrate_allocation.h", |
| 308 | ] |
| 309 | deps = [ |
| 310 | "units:data_rate", |
| 311 | "units:time_delta", |
| 312 | ] |
| 313 | } |
| 314 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 315 | rtc_source_set("simulated_network_api") { |
| 316 | visibility = [ "*" ] |
| 317 | sources = [ |
| 318 | "test/simulated_network.h", |
| 319 | ] |
| 320 | deps = [ |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 321 | "../rtc_base:criticalsection", |
| 322 | "../rtc_base:rtc_base", |
Danil Chapovalov | 065a52a | 2018-07-09 08:58:54 | [diff] [blame] | 323 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 324 | ] |
| 325 | } |
| 326 | |
Artem Titov | 7bf8c7f | 2019-03-15 14:00:37 | [diff] [blame] | 327 | rtc_source_set("network_emulation_manager_api") { |
| 328 | visibility = [ "*" ] |
| 329 | sources = [ |
| 330 | "test/network_emulation_manager.h", |
| 331 | ] |
| 332 | deps = [ |
| 333 | ":simulated_network_api", |
| 334 | "../rtc_base:rtc_base", |
| 335 | ] |
| 336 | } |
| 337 | |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 338 | rtc_source_set("fec_controller_api") { |
| 339 | visibility = [ "*" ] |
| 340 | sources = [ |
| 341 | "fec_controller.h", |
| 342 | ] |
| 343 | |
| 344 | deps = [ |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 345 | "..:webrtc_common", |
| 346 | "../modules:module_fec_api", |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 347 | ] |
| 348 | } |
| 349 | |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 350 | rtc_source_set("array_view") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 351 | visibility = [ "*" ] |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 352 | sources = [ |
| 353 | "array_view.h", |
| 354 | ] |
| 355 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 356 | "../rtc_base:checks", |
| 357 | "../rtc_base:type_traits", |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 358 | ] |
| 359 | } |
| 360 | |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 361 | rtc_source_set("refcountedbase") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 362 | visibility = [ "*" ] |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 363 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 364 | "ref_counted_base.h", |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 365 | ] |
| 366 | deps = [ |
| 367 | "../rtc_base:rtc_base_approved", |
| 368 | ] |
| 369 | } |
| 370 | |
Harald Alvestrand | 9846262 | 2019-01-30 13:57:03 | [diff] [blame] | 371 | rtc_source_set("ice_transport_factory") { |
| 372 | visibility = [ "*" ] |
| 373 | sources = [ |
| 374 | "ice_transport_factory.cc", |
| 375 | "ice_transport_factory.h", |
| 376 | ] |
| 377 | deps = [ |
| 378 | ":libjingle_peerconnection_api", |
| 379 | ":scoped_refptr", |
| 380 | "../p2p:rtc_p2p", |
| 381 | "../rtc_base:rtc_base", |
| 382 | "//third_party/abseil-cpp/absl/memory:memory", |
| 383 | ] |
| 384 | } |
| 385 | |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 386 | rtc_source_set("neteq_simulator_api") { |
| 387 | visibility = [ "*" ] |
| 388 | sources = [ |
| 389 | "test/neteq_simulator.cc", |
| 390 | "test/neteq_simulator.h", |
| 391 | ] |
| 392 | } |
| 393 | |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 394 | if (rtc_include_tests) { |
Ivo Creusen | 2cb4105 | 2018-03-15 11:22:52 | [diff] [blame] | 395 | if (rtc_enable_protobuf) { |
| 396 | rtc_source_set("audioproc_f_api") { |
| 397 | visibility = [ "*" ] |
| 398 | testonly = true |
| 399 | sources = [ |
| 400 | "test/audioproc_float.cc", |
| 401 | "test/audioproc_float.h", |
| 402 | ] |
| 403 | |
| 404 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 405 | "../modules/audio_processing:api", |
Ivo Creusen | 2cb4105 | 2018-03-15 11:22:52 | [diff] [blame] | 406 | "../modules/audio_processing:audio_processing", |
| 407 | "../modules/audio_processing:audioproc_f_impl", |
| 408 | ] |
| 409 | } |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 410 | |
| 411 | rtc_source_set("neteq_simulator_factory") { |
| 412 | visibility = [ "*" ] |
| 413 | testonly = true |
| 414 | sources = [ |
| 415 | "test/neteq_simulator_factory.cc", |
| 416 | "test/neteq_simulator_factory.h", |
| 417 | ] |
| 418 | deps = [ |
| 419 | ":neteq_simulator_api", |
| 420 | "../modules/audio_coding:neteq_test_factory", |
Ivo Creusen | f81b0f1 | 2018-09-11 08:30:58 | [diff] [blame] | 421 | "../rtc_base:checks", |
| 422 | "../rtc_base:rtc_base_approved", |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 423 | "//third_party/abseil-cpp/absl/memory", |
| 424 | ] |
| 425 | } |
Ivo Creusen | 2cb4105 | 2018-03-15 11:22:52 | [diff] [blame] | 426 | } |
| 427 | |
Rasmus Brandt | 0cedc05 | 2018-05-31 10:53:00 | [diff] [blame] | 428 | rtc_source_set("simulcast_test_fixture_api") { |
| 429 | visibility = [ "*" ] |
| 430 | testonly = true |
| 431 | sources = [ |
| 432 | "test/simulcast_test_fixture.h", |
| 433 | ] |
| 434 | } |
| 435 | |
| 436 | rtc_source_set("create_simulcast_test_fixture_api") { |
| 437 | visibility = [ "*" ] |
| 438 | testonly = true |
| 439 | sources = [ |
| 440 | "test/create_simulcast_test_fixture.cc", |
| 441 | "test/create_simulcast_test_fixture.h", |
| 442 | ] |
| 443 | deps = [ |
| 444 | ":simulcast_test_fixture_api", |
| 445 | "../modules/video_coding:simulcast_test_fixture_impl", |
| 446 | "../rtc_base:rtc_base_approved", |
| 447 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 448 | "//third_party/abseil-cpp/absl/memory", |
Rasmus Brandt | 0cedc05 | 2018-05-31 10:53:00 | [diff] [blame] | 449 | ] |
Rasmus Brandt | 0cedc05 | 2018-05-31 10:53:00 | [diff] [blame] | 450 | } |
| 451 | |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 452 | rtc_source_set("videocodec_test_fixture_api") { |
| 453 | visibility = [ "*" ] |
| 454 | testonly = true |
| 455 | sources = [ |
| 456 | "test/videocodec_test_fixture.h", |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 457 | "test/videocodec_test_stats.cc", |
| 458 | "test/videocodec_test_stats.h", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 459 | ] |
| 460 | deps = [ |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 461 | "..:webrtc_common", |
| 462 | "../modules/video_coding:video_codec_interface", |
Jonas Olsson | 366a50c | 2018-09-06 11:41:30 | [diff] [blame] | 463 | "../rtc_base:stringutils", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 464 | "video_codecs:video_codecs_api", |
| 465 | ] |
| 466 | } |
| 467 | |
| 468 | rtc_source_set("create_videocodec_test_fixture_api") { |
| 469 | visibility = [ "*" ] |
| 470 | testonly = true |
| 471 | sources = [ |
| 472 | "test/create_videocodec_test_fixture.cc", |
| 473 | "test/create_videocodec_test_fixture.h", |
| 474 | ] |
| 475 | deps = [ |
| 476 | ":videocodec_test_fixture_api", |
| 477 | "../modules/video_coding:video_codecs_test_framework", |
| 478 | "../modules/video_coding:videocodec_test_impl", |
| 479 | "../rtc_base:rtc_base_approved", |
| 480 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 481 | "//third_party/abseil-cpp/absl/memory", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 482 | ] |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 483 | } |
| 484 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 485 | rtc_source_set("mock_audio_mixer") { |
| 486 | testonly = true |
| 487 | sources = [ |
| 488 | "test/mock_audio_mixer.h", |
| 489 | ] |
| 490 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 491 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 492 | "../test:test_support", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 493 | "audio:audio_mixer_api", |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 494 | ] |
| 495 | } |
| 496 | |
Benjamin Wright | 78410ad | 2018-10-25 16:52:57 | [diff] [blame] | 497 | rtc_source_set("mock_frame_encryptor") { |
| 498 | testonly = true |
| 499 | sources = [ |
| 500 | "test/mock_frame_encryptor.cc", |
| 501 | "test/mock_frame_encryptor.h", |
| 502 | ] |
| 503 | deps = [ |
| 504 | ":libjingle_peerconnection_api", |
| 505 | "../test:test_support", |
| 506 | ] |
| 507 | } |
| 508 | |
| 509 | rtc_source_set("mock_frame_decryptor") { |
| 510 | testonly = true |
| 511 | sources = [ |
| 512 | "test/mock_frame_decryptor.cc", |
| 513 | "test/mock_frame_decryptor.h", |
| 514 | ] |
| 515 | deps = [ |
| 516 | ":libjingle_peerconnection_api", |
| 517 | "../test:test_support", |
| 518 | ] |
| 519 | } |
| 520 | |
| 521 | rtc_source_set("fake_frame_encryptor") { |
| 522 | testonly = true |
| 523 | sources = [ |
| 524 | "test/fake_frame_encryptor.cc", |
| 525 | "test/fake_frame_encryptor.h", |
| 526 | ] |
| 527 | deps = [ |
| 528 | ":array_view", |
| 529 | ":libjingle_peerconnection_api", |
| 530 | "..:webrtc_common", |
| 531 | "../rtc_base:checks", |
| 532 | "../rtc_base:rtc_base_approved", |
| 533 | ] |
| 534 | } |
| 535 | |
| 536 | rtc_source_set("fake_frame_decryptor") { |
Benjamin Wright | 84583f6 | 2018-10-04 21:22:34 | [diff] [blame] | 537 | testonly = true |
| 538 | sources = [ |
| 539 | "test/fake_frame_decryptor.cc", |
| 540 | "test/fake_frame_decryptor.h", |
Benjamin Wright | 84583f6 | 2018-10-04 21:22:34 | [diff] [blame] | 541 | ] |
| 542 | deps = [ |
| 543 | ":array_view", |
| 544 | ":libjingle_peerconnection_api", |
| 545 | "..:webrtc_common", |
| 546 | "../rtc_base:checks", |
| 547 | "../rtc_base:rtc_base_approved", |
| 548 | ] |
| 549 | } |
| 550 | |
Jiawei Ou | 651b92e | 2018-06-29 22:46:44 | [diff] [blame] | 551 | rtc_source_set("mock_peerconnectioninterface") { |
| 552 | testonly = true |
| 553 | sources = [ |
| 554 | "test/mock_peerconnectioninterface.h", |
| 555 | ] |
| 556 | |
| 557 | deps = [ |
| 558 | ":libjingle_peerconnection_api", |
| 559 | "../test:test_support", |
| 560 | ] |
| 561 | } |
| 562 | |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 563 | rtc_source_set("mock_rtp") { |
| 564 | testonly = true |
| 565 | sources = [ |
| 566 | "test/mock_rtpreceiver.h", |
| 567 | "test/mock_rtpsender.h", |
| 568 | ] |
| 569 | |
| 570 | deps = [ |
| 571 | ":libjingle_peerconnection_api", |
| 572 | "../test:test_support", |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 573 | ] |
| 574 | } |
| 575 | |
Jiawei Ou | 4206a0a | 2018-07-20 22:49:43 | [diff] [blame] | 576 | rtc_source_set("mock_video_bitrate_allocator") { |
| 577 | testonly = true |
| 578 | sources = [ |
| 579 | "test/mock_video_bitrate_allocator.h", |
| 580 | ] |
| 581 | |
| 582 | deps = [ |
| 583 | "../api/video:video_bitrate_allocator", |
| 584 | "../test:test_support", |
| 585 | ] |
| 586 | } |
| 587 | |
Jiawei Ou | c2ebe21 | 2018-11-08 18:02:56 | [diff] [blame] | 588 | rtc_source_set("mock_video_bitrate_allocator_factory") { |
| 589 | testonly = true |
| 590 | sources = [ |
| 591 | "test/mock_video_bitrate_allocator_factory.h", |
| 592 | ] |
| 593 | |
| 594 | deps = [ |
| 595 | "../api/video:video_bitrate_allocator_factory", |
| 596 | "../test:test_support", |
| 597 | ] |
| 598 | } |
| 599 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 600 | rtc_source_set("mock_video_codec_factory") { |
| 601 | testonly = true |
| 602 | sources = [ |
| 603 | "test/mock_video_decoder_factory.h", |
| 604 | "test/mock_video_encoder_factory.h", |
| 605 | ] |
| 606 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 607 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 608 | "../api/video_codecs:video_codecs_api", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 609 | "../test:test_support", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 610 | ] |
| 611 | } |
| 612 | |
Erik Språng | c84cd95 | 2018-10-15 09:55:13 | [diff] [blame] | 613 | rtc_source_set("mock_video_decoder") { |
| 614 | visibility = [ "*" ] |
| 615 | |
| 616 | testonly = true |
| 617 | sources = [ |
| 618 | "test/mock_video_decoder.cc", |
| 619 | "test/mock_video_decoder.h", |
| 620 | ] |
| 621 | |
| 622 | deps = [ |
| 623 | "../api/video_codecs:video_codecs_api", |
| 624 | "../test:test_support", |
| 625 | ] |
| 626 | } |
| 627 | |
Erik Språng | 6af1c92 | 2018-10-12 08:01:30 | [diff] [blame] | 628 | rtc_source_set("mock_video_encoder") { |
Erik Språng | c84cd95 | 2018-10-15 09:55:13 | [diff] [blame] | 629 | visibility = [ "*" ] |
| 630 | |
Erik Språng | 6af1c92 | 2018-10-12 08:01:30 | [diff] [blame] | 631 | testonly = true |
| 632 | sources = [ |
| 633 | "test/mock_video_encoder.cc", |
| 634 | "test/mock_video_encoder.h", |
| 635 | ] |
| 636 | |
| 637 | deps = [ |
| 638 | "../api/video_codecs:video_codecs_api", |
| 639 | "../test:test_support", |
| 640 | ] |
| 641 | } |
| 642 | |
Anton Sukhanov | 7940da0 | 2018-10-10 17:34:49 | [diff] [blame] | 643 | rtc_source_set("fake_media_transport") { |
| 644 | testonly = true |
| 645 | |
| 646 | sources = [ |
| 647 | "test/fake_media_transport.h", |
| 648 | ] |
| 649 | |
| 650 | deps = [ |
| 651 | ":libjingle_peerconnection_api", |
| 652 | "../rtc_base:checks", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 653 | "//third_party/abseil-cpp/absl/memory", |
Anton Sukhanov | 7940da0 | 2018-10-10 17:34:49 | [diff] [blame] | 654 | ] |
| 655 | } |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 656 | |
| 657 | rtc_source_set("loopback_media_transport") { |
| 658 | testonly = true |
| 659 | |
| 660 | sources = [ |
Niels Möller | e0446cb | 2018-11-30 08:35:52 | [diff] [blame] | 661 | "test/loopback_media_transport.cc", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 662 | "test/loopback_media_transport.h", |
| 663 | ] |
| 664 | |
| 665 | deps = [ |
| 666 | ":libjingle_peerconnection_api", |
| 667 | "../rtc_base:checks", |
Bjorn Mellem | 273d029 | 2018-11-01 23:42:44 | [diff] [blame] | 668 | "../rtc_base:rtc_base", |
Niels Möller | e0446cb | 2018-11-30 08:35:52 | [diff] [blame] | 669 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 670 | ] |
| 671 | } |
| 672 | |
| 673 | rtc_source_set("rtc_api_unittests") { |
| 674 | testonly = true |
| 675 | |
| 676 | sources = [ |
| 677 | "array_view_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 678 | "rtc_error_unittest.cc", |
| 679 | "rtp_parameters_unittest.cc", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 680 | "test/loopback_media_transport_unittest.cc", |
| 681 | ] |
| 682 | |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 683 | deps = [ |
| 684 | ":array_view", |
| 685 | ":libjingle_peerconnection_api", |
| 686 | ":loopback_media_transport", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 687 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 688 | "../rtc_base:gunit_helpers", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 689 | "../rtc_base:rtc_base_approved", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 690 | "../test:test_support", |
Danil Chapovalov | 2684ab3 | 2019-02-26 09:18:08 | [diff] [blame] | 691 | "task_queue:task_queue_default_factory_unittests", |
Niels Möller | 2e47f7c | 2018-10-16 08:41:42 | [diff] [blame] | 692 | "units:units_unittests", |
| 693 | ] |
| 694 | } |
Harald Alvestrand | 3cc45d4 | 2019-03-14 04:42:04 | [diff] [blame] | 695 | |
| 696 | rtc_source_set("compile_all_headers") { |
| 697 | testonly = true |
| 698 | |
| 699 | sources = [ |
| 700 | "test/compile_all_headers.cc", |
| 701 | ] |
| 702 | |
| 703 | deps = [ |
| 704 | ":fake_frame_decryptor", |
| 705 | ":fake_frame_encryptor", |
| 706 | ":fake_media_transport", |
| 707 | ":loopback_media_transport", |
| 708 | ":mock_audio_mixer", |
| 709 | ":mock_frame_decryptor", |
| 710 | ":mock_frame_encryptor", |
| 711 | ":mock_peerconnectioninterface", |
| 712 | ":mock_rtp", |
| 713 | ":mock_video_bitrate_allocator", |
| 714 | ":mock_video_bitrate_allocator_factory", |
| 715 | ":mock_video_codec_factory", |
| 716 | ":mock_video_decoder", |
| 717 | ":mock_video_encoder", |
| 718 | ":rtc_api_unittests", |
| 719 | "units:units_unittests", |
| 720 | ] |
| 721 | } |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 722 | } |