hjon | aa32c3e | 2015-12-13 19:58:11 -0800 | [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 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [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 03:09:32 -0700 | [diff] [blame] | 14 | |
| 15 | group("api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 16 | visibility = [ "*" ] |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 17 | deps = [] |
| 18 | |
| 19 | if (!build_with_mozilla) { |
| 20 | deps += [ ":libjingle_peerconnection_api" ] |
| 21 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 22 | } |
| 23 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 24 | rtc_source_set("call_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 25 | visibility = [ "*" ] |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 26 | sources = [ |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 27 | "call/audio_sink.h", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 28 | ] |
| 29 | |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 30 | deps = [ |
| 31 | # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 32 | ":transport_api", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 33 | "..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 34 | "../rtc_base:rtc_base_approved", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 35 | "audio:audio_mixer_api", |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 36 | "audio_codecs:audio_codecs_api", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 37 | ] |
| 38 | } |
| 39 | |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 40 | rtc_source_set("callfactory_api") { |
| 41 | visibility = [ "*" ] |
| 42 | sources = [ |
| 43 | "call/callfactoryinterface.h", |
| 44 | ] |
| 45 | } |
| 46 | |
Mirko Bonadei | 3cf8f3e | 2018-11-19 09:17:51 +0100 | [diff] [blame] | 47 | rtc_static_library("create_peerconnection_factory") { |
Mirko Bonadei | c3313a3 | 2018-11-19 14:30:17 +0100 | [diff] [blame] | 48 | visibility = [ "*" ] |
Mirko Bonadei | 2ff3f49 | 2018-11-22 09:00:13 +0100 | [diff] [blame] | 49 | allow_poison = [ "software_video_codecs" ] |
Mirko Bonadei | 3cf8f3e | 2018-11-19 09:17:51 +0100 | [diff] [blame] | 50 | sources = [ |
| 51 | "create_peerconnection_factory.cc", |
| 52 | "create_peerconnection_factory.h", |
| 53 | ] |
Mirko Bonadei | 2ff3f49 | 2018-11-22 09:00:13 +0100 | [diff] [blame] | 54 | deps = [ |
| 55 | ":callfactory_api", |
| 56 | ":fec_controller_api", |
| 57 | ":libjingle_peerconnection_api", |
| 58 | "../logging:rtc_event_log_api", |
| 59 | "../logging:rtc_event_log_impl_base", |
| 60 | "../media:rtc_audio_video", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 61 | "../media:rtc_media_base", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 09:00:13 +0100 | [diff] [blame] | 62 | "../modules/audio_device:audio_device_api", |
| 63 | "../modules/audio_processing:api", |
| 64 | "../pc:peerconnection", |
Anders Carlsson | 0109295 | 2018-12-11 15:44:54 +0100 | [diff] [blame] | 65 | "../rtc_base:deprecation", |
Mirko Bonadei | 2ff3f49 | 2018-11-22 09:00:13 +0100 | [diff] [blame] | 66 | "../rtc_base:ptr_util", |
| 67 | "../rtc_base:rtc_base", |
| 68 | "../rtc_base:rtc_base_approved", |
| 69 | "audio:audio_mixer_api", |
| 70 | "audio_codecs:audio_codecs_api", |
| 71 | "transport:network_control", |
| 72 | "video_codecs:video_codecs_api", |
| 73 | ] |
Mirko Bonadei | 3cf8f3e | 2018-11-19 09:17:51 +0100 | [diff] [blame] | 74 | } |
| 75 | |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 76 | rtc_static_library("libjingle_peerconnection_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 77 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 78 | cflags = [] |
| 79 | sources = [ |
Zach Stein | e20867f | 2018-08-02 13:20:15 -0700 | [diff] [blame] | 80 | "asyncresolverfactory.h", |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 81 | "bitrate_constraints.h", |
Steve Anton | 36b28db | 2017-10-26 11:27:17 -0700 | [diff] [blame] | 82 | "candidate.cc", |
Patrik Höglund | e2d6a06 | 2017-10-05 14:53:33 +0200 | [diff] [blame] | 83 | "candidate.h", |
Benjamin Wright | a54daf1 | 2018-10-11 15:33:17 -0700 | [diff] [blame] | 84 | "crypto/cryptooptions.cc", |
| 85 | "crypto/cryptooptions.h", |
Benjamin Wright | ea08691 | 2018-08-29 13:06:15 -0700 | [diff] [blame] | 86 | "crypto/framedecryptorinterface.h", |
| 87 | "crypto/frameencryptorinterface.h", |
Patrik Höglund | 7aee3d5 | 2017-11-15 13:15:17 +0100 | [diff] [blame] | 88 | "cryptoparams.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 10:39:30 +0200 | [diff] [blame] | 89 | "datachannelinterface.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 90 | "datachannelinterface.h", |
Harald Alvestrand | ad88c88 | 2018-11-28 16:47:46 +0100 | [diff] [blame] | 91 | "dtlstransportinterface.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 92 | "dtmfsenderinterface.h", |
Steve Anton | 845bb73 | 2017-12-05 12:50:26 -0800 | [diff] [blame] | 93 | "jsep.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 94 | "jsep.h", |
Mirko Bonadei | 2ffed6d | 2018-07-20 11:09:32 +0200 | [diff] [blame] | 95 | "jsepicecandidate.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 96 | "jsepicecandidate.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 97 | "jsepsessiondescription.h", |
Niels Möller | 3a74239 | 2018-10-08 11:13:58 +0200 | [diff] [blame] | 98 | "media_transport_interface.cc", |
Anton Sukhanov | f60bd4b | 2018-09-05 13:41:46 -0400 | [diff] [blame] | 99 | "media_transport_interface.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 100 | "mediaconstraintsinterface.cc", |
| 101 | "mediaconstraintsinterface.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 102 | "mediastreaminterface.cc", |
Patrik Höglund | 825249f | 2018-01-09 10:38:21 +0100 | [diff] [blame] | 103 | "mediastreaminterface.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 104 | "mediastreamproxy.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 105 | "mediastreamtrackproxy.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 106 | "mediatypes.cc", |
| 107 | "mediatypes.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 108 | "notifier.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 109 | "peerconnectionfactoryproxy.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 10:39:30 +0200 | [diff] [blame] | 110 | "peerconnectioninterface.cc", |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 111 | "peerconnectioninterface.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 112 | "peerconnectionproxy.h", |
Steve Anton | f2737d2 | 2017-10-31 16:27:34 -0700 | [diff] [blame] | 113 | "proxy.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 114 | "proxy.h", |
deadbeef | 6038e97 | 2017-02-16 23:31:33 -0800 | [diff] [blame] | 115 | "rtcerror.cc", |
| 116 | "rtcerror.h", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 117 | "rtp_headers.cc", |
| 118 | "rtp_headers.h", |
Stefan Holmer | 1acbd68 | 2017-09-01 15:29:28 +0200 | [diff] [blame] | 119 | "rtpparameters.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 120 | "rtpparameters.h", |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 121 | "rtpreceiverinterface.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 122 | "rtpreceiverinterface.h", |
Benjamin Wright | d81ac95 | 2018-08-29 17:02:10 -0700 | [diff] [blame] | 123 | "rtpsenderinterface.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 124 | "rtpsenderinterface.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 10:39:30 +0200 | [diff] [blame] | 125 | "rtptransceiverinterface.cc", |
Steve Anton | 6e634bf | 2017-11-13 10:44:53 -0800 | [diff] [blame] | 126 | "rtptransceiverinterface.h", |
Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 127 | "setremotedescriptionobserverinterface.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 128 | "statstypes.cc", |
| 129 | "statstypes.h", |
Jonas Oreland | bdcee28 | 2017-10-10 14:01:40 +0200 | [diff] [blame] | 130 | "turncustomizer.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 131 | "umametrics.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 132 | "videosourceproxy.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 133 | ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 134 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 135 | ":array_view", |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 136 | ":audio_options_api", |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 137 | ":callfactory_api", |
Ying Wang | 0dd1b0a | 2018-02-20 12:50:27 +0100 | [diff] [blame] | 138 | ":fec_controller_api", |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 139 | ":libjingle_logging_api", |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 140 | ":rtc_stats_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 141 | "audio:audio_mixer_api", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 142 | "audio_codecs:audio_codecs_api", |
Niels Möller | 0c4f7be | 2018-05-07 14:01:37 +0200 | [diff] [blame] | 143 | "transport:bitrate_settings", |
Sebastian Jansson | dfce03a | 2018-05-18 18:05:10 +0200 | [diff] [blame] | 144 | "transport:network_control", |
Niels Möller | 3a74239 | 2018-10-08 11:13:58 +0200 | [diff] [blame] | 145 | "video:encoded_image", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 146 | "video:video_frame", |
Steve Anton | 6fe1fba | 2018-12-11 10:15:23 -0800 | [diff] [blame] | 147 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 0bc58cf | 2018-06-21 13:32:56 +0200 | [diff] [blame] | 148 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [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 05:17:08 -0700 | [diff] [blame] | 153 | "..:webrtc_common", |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 154 | "../logging:rtc_event_log_api", |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 155 | "../media:rtc_media_config", |
Patrik Höglund | b874a35 | 2017-11-27 14:32:41 +0100 | [diff] [blame] | 156 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 157 | "../rtc_base:checks", |
| 158 | "../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 159 | "../rtc_base:rtc_base", |
| 160 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 17:15:12 +0200 | [diff] [blame] | 161 | "../rtc_base/system:rtc_export", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 162 | ] |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 163 | |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 164 | if (is_nacl) { |
Patrik Höglund | 30bd03b | 2017-12-19 11:45:31 +0100 | [diff] [blame] | 165 | # This is needed by .h files included from rtc_base. |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 166 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 167 | } |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 168 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 169 | |
Mirko Bonadei | 85340ce | 2018-11-19 15:51:39 +0100 | [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 16:58:01 +0200 | [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 14:39:17 +0200 | [diff] [blame] | 184 | ":fec_controller_api", |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [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 | ] |
| 193 | if (!build_with_chromium && is_clang) { |
| 194 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 195 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 196 | } |
| 197 | } |
| 198 | |
Patrik Höglund | d8f3c17 | 2018-09-26 14:39:17 +0200 | [diff] [blame] | 199 | rtc_source_set("test_dependency_factory") { |
| 200 | visibility = [ "*" ] |
| 201 | testonly = true |
| 202 | sources = [ |
| 203 | "test/test_dependency_factory.cc", |
| 204 | "test/test_dependency_factory.h", |
| 205 | ] |
| 206 | deps = [ |
| 207 | ":video_quality_test_fixture_api", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 208 | "../rtc_base:checks", |
Patrik Höglund | d8f3c17 | 2018-09-26 14:39:17 +0200 | [diff] [blame] | 209 | "../rtc_base:thread_checker", |
tzik | f0e926f | 2018-10-15 13:52:10 +0900 | [diff] [blame] | 210 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | d8f3c17 | 2018-09-26 14:39:17 +0200 | [diff] [blame] | 211 | ] |
| 212 | if (!build_with_chromium && is_clang) { |
| 213 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 214 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 215 | } |
| 216 | } |
| 217 | |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 218 | if (rtc_include_tests) { |
| 219 | rtc_source_set("create_video_quality_test_fixture_api") { |
| 220 | visibility = [ "*" ] |
| 221 | testonly = true |
| 222 | sources = [ |
| 223 | "test/create_video_quality_test_fixture.cc", |
| 224 | "test/create_video_quality_test_fixture.h", |
| 225 | ] |
| 226 | deps = [ |
| 227 | ":fec_controller_api", |
| 228 | ":video_quality_test_fixture_api", |
| 229 | "../rtc_base:ptr_util", |
| 230 | "../video:video_quality_test", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 231 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 232 | ] |
| 233 | if (!build_with_chromium && is_clang) { |
| 234 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 235 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
Elad Alon | 8081073 | 2017-10-06 13:07:32 +0200 | [diff] [blame] | 240 | rtc_source_set("libjingle_logging_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 241 | visibility = [ "*" ] |
Elad Alon | 8081073 | 2017-10-06 13:07:32 +0200 | [diff] [blame] | 242 | sources = [ |
| 243 | "rtceventlogoutput.h", |
| 244 | ] |
| 245 | } |
| 246 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 247 | rtc_source_set("ortc_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 248 | visibility = [ "*" ] |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 249 | sources = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 250 | "ortc/packettransportinterface.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 251 | "ortc/rtptransportinterface.h", |
zhihuang | d3501ad | 2017-03-03 14:39:06 -0800 | [diff] [blame] | 252 | "ortc/srtptransportinterface.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 253 | ] |
| 254 | |
Patrik Höglund | 7aee3d5 | 2017-11-15 13:15:17 +0100 | [diff] [blame] | 255 | deps = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 256 | ":libjingle_peerconnection_api", |
Danil Chapovalov | 0bc58cf | 2018-06-21 13:32:56 +0200 | [diff] [blame] | 257 | "//third_party/abseil-cpp/absl/types:optional", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 258 | ] |
| 259 | } |
| 260 | |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 261 | rtc_source_set("rtc_stats_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 262 | visibility = [ "*" ] |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 263 | cflags = [] |
| 264 | sources = [ |
| 265 | "stats/rtcstats.h", |
| 266 | "stats/rtcstats_objects.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 267 | "stats/rtcstatscollectorcallback.h", |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 268 | "stats/rtcstatsreport.h", |
| 269 | ] |
| 270 | |
| 271 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 272 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 273 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 17:15:12 +0200 | [diff] [blame] | 274 | "../rtc_base/system:rtc_export", |
hbos | 74e1a4f | 2016-09-15 23:33:01 -0700 | [diff] [blame] | 275 | ] |
| 276 | } |
| 277 | |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 278 | rtc_source_set("audio_options_api") { |
| 279 | visibility = [ "*" ] |
| 280 | sources = [ |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 281 | "audio_options.cc", |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 282 | "audio_options.h", |
| 283 | ] |
| 284 | |
| 285 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 286 | ":array_view", |
Danil Chapovalov | 2165233 | 2018-08-31 10:29:07 +0200 | [diff] [blame] | 287 | "../rtc_base:stringutils", |
Danil Chapovalov | 0bc58cf | 2018-06-21 13:32:56 +0200 | [diff] [blame] | 288 | "//third_party/abseil-cpp/absl/types:optional", |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 289 | ] |
| 290 | } |
| 291 | |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 292 | rtc_source_set("transport_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 293 | visibility = [ "*" ] |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 294 | sources = [ |
Dino Radaković | 1807d57 | 2018-02-22 14:18:06 +0100 | [diff] [blame] | 295 | "call/transport.cc", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 296 | "call/transport.h", |
| 297 | ] |
| 298 | } |
nisse | b2250e5 | 2016-12-02 04:01:14 -0800 | [diff] [blame] | 299 | |
Sebastian Jansson | 6736df1 | 2018-11-21 19:18:39 +0100 | [diff] [blame] | 300 | rtc_source_set("bitrate_allocation") { |
| 301 | visibility = [ "*" ] |
| 302 | sources = [ |
| 303 | "call/bitrate_allocation.h", |
| 304 | ] |
| 305 | deps = [ |
| 306 | "units:data_rate", |
| 307 | "units:time_delta", |
| 308 | ] |
| 309 | } |
| 310 | |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 311 | rtc_source_set("simulated_network_api") { |
| 312 | visibility = [ "*" ] |
| 313 | sources = [ |
| 314 | "test/simulated_network.h", |
| 315 | ] |
| 316 | deps = [ |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 317 | "../rtc_base:criticalsection", |
| 318 | "../rtc_base:rtc_base", |
Danil Chapovalov | 065a52a | 2018-07-09 10:58:54 +0200 | [diff] [blame] | 319 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 320 | ] |
| 321 | } |
| 322 | |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 323 | rtc_source_set("fec_controller_api") { |
| 324 | visibility = [ "*" ] |
| 325 | sources = [ |
| 326 | "fec_controller.h", |
| 327 | ] |
| 328 | |
| 329 | deps = [ |
Ying Wang | 0dd1b0a | 2018-02-20 12:50:27 +0100 | [diff] [blame] | 330 | "..:webrtc_common", |
| 331 | "../modules:module_fec_api", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 332 | ] |
| 333 | } |
| 334 | |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 335 | rtc_source_set("array_view") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 336 | visibility = [ "*" ] |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 337 | sources = [ |
| 338 | "array_view.h", |
| 339 | ] |
| 340 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 341 | "../rtc_base:checks", |
| 342 | "../rtc_base:type_traits", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 343 | ] |
| 344 | } |
| 345 | |
Niels Möller | 9155e49 | 2017-10-23 11:22:30 +0200 | [diff] [blame] | 346 | rtc_source_set("refcountedbase") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 347 | visibility = [ "*" ] |
Niels Möller | 9155e49 | 2017-10-23 11:22:30 +0200 | [diff] [blame] | 348 | sources = [ |
| 349 | "refcountedbase.h", |
| 350 | ] |
| 351 | deps = [ |
| 352 | "../rtc_base:rtc_base_approved", |
| 353 | ] |
| 354 | } |
| 355 | |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 356 | rtc_source_set("libjingle_peerconnection_test_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 357 | visibility = [ "*" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 358 | testonly = true |
| 359 | sources = [ |
| 360 | "test/fakeconstraints.h", |
| 361 | ] |
| 362 | |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 363 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 364 | ":libjingle_peerconnection_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 365 | "../rtc_base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 366 | ] |
| 367 | } |
| 368 | |
Ivo Creusen | 55de08e | 2018-09-03 11:49:27 +0200 | [diff] [blame] | 369 | rtc_source_set("neteq_simulator_api") { |
| 370 | visibility = [ "*" ] |
| 371 | sources = [ |
| 372 | "test/neteq_simulator.cc", |
| 373 | "test/neteq_simulator.h", |
| 374 | ] |
| 375 | } |
| 376 | |
kjellander | fd5b4e9 | 2016-06-13 12:08:33 -0700 | [diff] [blame] | 377 | if (rtc_include_tests) { |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 378 | if (rtc_enable_protobuf) { |
| 379 | rtc_source_set("audioproc_f_api") { |
| 380 | visibility = [ "*" ] |
| 381 | testonly = true |
| 382 | sources = [ |
| 383 | "test/audioproc_float.cc", |
| 384 | "test/audioproc_float.h", |
| 385 | ] |
| 386 | |
| 387 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 388 | "../modules/audio_processing:api", |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 389 | "../modules/audio_processing:audio_processing", |
| 390 | "../modules/audio_processing:audioproc_f_impl", |
| 391 | ] |
| 392 | } |
Ivo Creusen | 55de08e | 2018-09-03 11:49:27 +0200 | [diff] [blame] | 393 | |
| 394 | rtc_source_set("neteq_simulator_factory") { |
| 395 | visibility = [ "*" ] |
| 396 | testonly = true |
| 397 | sources = [ |
| 398 | "test/neteq_simulator_factory.cc", |
| 399 | "test/neteq_simulator_factory.h", |
| 400 | ] |
| 401 | deps = [ |
| 402 | ":neteq_simulator_api", |
| 403 | "../modules/audio_coding:neteq_test_factory", |
Ivo Creusen | f81b0f1 | 2018-09-11 10:30:58 +0200 | [diff] [blame] | 404 | "../rtc_base:checks", |
| 405 | "../rtc_base:rtc_base_approved", |
Ivo Creusen | 55de08e | 2018-09-03 11:49:27 +0200 | [diff] [blame] | 406 | "//third_party/abseil-cpp/absl/memory", |
| 407 | ] |
| 408 | } |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 409 | } |
| 410 | |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 411 | rtc_source_set("simulcast_test_fixture_api") { |
| 412 | visibility = [ "*" ] |
| 413 | testonly = true |
| 414 | sources = [ |
| 415 | "test/simulcast_test_fixture.h", |
| 416 | ] |
| 417 | } |
| 418 | |
| 419 | rtc_source_set("create_simulcast_test_fixture_api") { |
| 420 | visibility = [ "*" ] |
| 421 | testonly = true |
| 422 | sources = [ |
| 423 | "test/create_simulcast_test_fixture.cc", |
| 424 | "test/create_simulcast_test_fixture.h", |
| 425 | ] |
| 426 | deps = [ |
| 427 | ":simulcast_test_fixture_api", |
| 428 | "../modules/video_coding:simulcast_test_fixture_impl", |
| 429 | "../rtc_base:rtc_base_approved", |
| 430 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 431 | "//third_party/abseil-cpp/absl/memory", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 432 | ] |
| 433 | if (!build_with_chromium && is_clang) { |
| 434 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 435 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 436 | } |
| 437 | } |
| 438 | |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 439 | rtc_source_set("videocodec_test_fixture_api") { |
| 440 | visibility = [ "*" ] |
| 441 | testonly = true |
| 442 | sources = [ |
| 443 | "test/videocodec_test_fixture.h", |
Kári Tristan Helgason | 169005d | 2018-05-22 13:34:14 +0200 | [diff] [blame] | 444 | "test/videocodec_test_stats.cc", |
| 445 | "test/videocodec_test_stats.h", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 446 | ] |
| 447 | deps = [ |
Kári Tristan Helgason | 169005d | 2018-05-22 13:34:14 +0200 | [diff] [blame] | 448 | "..:webrtc_common", |
| 449 | "../modules/video_coding:video_codec_interface", |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 450 | "../rtc_base:stringutils", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 451 | "video_codecs:video_codecs_api", |
| 452 | ] |
| 453 | } |
| 454 | |
| 455 | rtc_source_set("create_videocodec_test_fixture_api") { |
| 456 | visibility = [ "*" ] |
| 457 | testonly = true |
| 458 | sources = [ |
| 459 | "test/create_videocodec_test_fixture.cc", |
| 460 | "test/create_videocodec_test_fixture.h", |
| 461 | ] |
| 462 | deps = [ |
| 463 | ":videocodec_test_fixture_api", |
| 464 | "../modules/video_coding:video_codecs_test_framework", |
| 465 | "../modules/video_coding:videocodec_test_impl", |
| 466 | "../rtc_base:rtc_base_approved", |
| 467 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 468 | "//third_party/abseil-cpp/absl/memory", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 469 | ] |
| 470 | if (!build_with_chromium && is_clang) { |
| 471 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 472 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 473 | } |
| 474 | } |
| 475 | |
kjellander | 2f6af9c | 2017-03-02 22:26:23 -0800 | [diff] [blame] | 476 | rtc_source_set("mock_audio_mixer") { |
| 477 | testonly = true |
| 478 | sources = [ |
| 479 | "test/mock_audio_mixer.h", |
| 480 | ] |
| 481 | |
kjellander | 2f6af9c | 2017-03-02 22:26:23 -0800 | [diff] [blame] | 482 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 483 | "../test:test_support", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 484 | "audio:audio_mixer_api", |
kjellander | 2f6af9c | 2017-03-02 22:26:23 -0800 | [diff] [blame] | 485 | ] |
| 486 | } |
| 487 | |
Benjamin Wright | 78410ad | 2018-10-25 09:52:57 -0700 | [diff] [blame] | 488 | rtc_source_set("mock_frame_encryptor") { |
| 489 | testonly = true |
| 490 | sources = [ |
| 491 | "test/mock_frame_encryptor.cc", |
| 492 | "test/mock_frame_encryptor.h", |
| 493 | ] |
| 494 | deps = [ |
| 495 | ":libjingle_peerconnection_api", |
| 496 | "../test:test_support", |
| 497 | ] |
| 498 | } |
| 499 | |
| 500 | rtc_source_set("mock_frame_decryptor") { |
| 501 | testonly = true |
| 502 | sources = [ |
| 503 | "test/mock_frame_decryptor.cc", |
| 504 | "test/mock_frame_decryptor.h", |
| 505 | ] |
| 506 | deps = [ |
| 507 | ":libjingle_peerconnection_api", |
| 508 | "../test:test_support", |
| 509 | ] |
| 510 | } |
| 511 | |
| 512 | rtc_source_set("fake_frame_encryptor") { |
| 513 | testonly = true |
| 514 | sources = [ |
| 515 | "test/fake_frame_encryptor.cc", |
| 516 | "test/fake_frame_encryptor.h", |
| 517 | ] |
| 518 | deps = [ |
| 519 | ":array_view", |
| 520 | ":libjingle_peerconnection_api", |
| 521 | "..:webrtc_common", |
| 522 | "../rtc_base:checks", |
| 523 | "../rtc_base:rtc_base_approved", |
| 524 | ] |
| 525 | } |
| 526 | |
| 527 | rtc_source_set("fake_frame_decryptor") { |
Benjamin Wright | 84583f6 | 2018-10-04 14:22:34 -0700 | [diff] [blame] | 528 | testonly = true |
| 529 | sources = [ |
| 530 | "test/fake_frame_decryptor.cc", |
| 531 | "test/fake_frame_decryptor.h", |
Benjamin Wright | 84583f6 | 2018-10-04 14:22:34 -0700 | [diff] [blame] | 532 | ] |
| 533 | deps = [ |
| 534 | ":array_view", |
| 535 | ":libjingle_peerconnection_api", |
| 536 | "..:webrtc_common", |
| 537 | "../rtc_base:checks", |
| 538 | "../rtc_base:rtc_base_approved", |
| 539 | ] |
| 540 | } |
| 541 | |
Jiawei Ou | 651b92e | 2018-06-29 15:46:44 -0700 | [diff] [blame] | 542 | rtc_source_set("mock_peerconnectioninterface") { |
| 543 | testonly = true |
| 544 | sources = [ |
| 545 | "test/mock_peerconnectioninterface.h", |
| 546 | ] |
| 547 | |
| 548 | deps = [ |
| 549 | ":libjingle_peerconnection_api", |
| 550 | "../test:test_support", |
| 551 | ] |
| 552 | } |
| 553 | |
Patrik Höglund | 4b9e6ba | 2017-12-19 10:32:11 +0100 | [diff] [blame] | 554 | rtc_source_set("mock_rtp") { |
| 555 | testonly = true |
| 556 | sources = [ |
| 557 | "test/mock_rtpreceiver.h", |
| 558 | "test/mock_rtpsender.h", |
| 559 | ] |
| 560 | |
| 561 | deps = [ |
| 562 | ":libjingle_peerconnection_api", |
| 563 | "../test:test_support", |
Patrik Höglund | 4b9e6ba | 2017-12-19 10:32:11 +0100 | [diff] [blame] | 564 | ] |
| 565 | } |
| 566 | |
Jiawei Ou | 4206a0a | 2018-07-20 15:49:43 -0700 | [diff] [blame] | 567 | rtc_source_set("mock_video_bitrate_allocator") { |
| 568 | testonly = true |
| 569 | sources = [ |
| 570 | "test/mock_video_bitrate_allocator.h", |
| 571 | ] |
| 572 | |
| 573 | deps = [ |
| 574 | "../api/video:video_bitrate_allocator", |
| 575 | "../test:test_support", |
| 576 | ] |
| 577 | } |
| 578 | |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 579 | rtc_source_set("mock_video_bitrate_allocator_factory") { |
| 580 | testonly = true |
| 581 | sources = [ |
| 582 | "test/mock_video_bitrate_allocator_factory.h", |
| 583 | ] |
| 584 | |
| 585 | deps = [ |
| 586 | "../api/video:video_bitrate_allocator_factory", |
| 587 | "../test:test_support", |
| 588 | ] |
| 589 | } |
| 590 | |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 591 | rtc_source_set("mock_video_codec_factory") { |
| 592 | testonly = true |
| 593 | sources = [ |
| 594 | "test/mock_video_decoder_factory.h", |
| 595 | "test/mock_video_encoder_factory.h", |
| 596 | ] |
| 597 | |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 598 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 599 | "../api/video_codecs:video_codecs_api", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 600 | "../test:test_support", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 601 | ] |
| 602 | } |
| 603 | |
Erik Språng | c84cd95 | 2018-10-15 11:55:13 +0200 | [diff] [blame] | 604 | rtc_source_set("mock_video_decoder") { |
| 605 | visibility = [ "*" ] |
| 606 | |
| 607 | testonly = true |
| 608 | sources = [ |
| 609 | "test/mock_video_decoder.cc", |
| 610 | "test/mock_video_decoder.h", |
| 611 | ] |
| 612 | |
| 613 | deps = [ |
| 614 | "../api/video_codecs:video_codecs_api", |
| 615 | "../test:test_support", |
| 616 | ] |
| 617 | } |
| 618 | |
Erik Språng | 6af1c92 | 2018-10-12 10:01:30 +0200 | [diff] [blame] | 619 | rtc_source_set("mock_video_encoder") { |
Erik Språng | c84cd95 | 2018-10-15 11:55:13 +0200 | [diff] [blame] | 620 | visibility = [ "*" ] |
| 621 | |
Erik Språng | 6af1c92 | 2018-10-12 10:01:30 +0200 | [diff] [blame] | 622 | testonly = true |
| 623 | sources = [ |
| 624 | "test/mock_video_encoder.cc", |
| 625 | "test/mock_video_encoder.h", |
| 626 | ] |
| 627 | |
| 628 | deps = [ |
| 629 | "../api/video_codecs:video_codecs_api", |
| 630 | "../test:test_support", |
| 631 | ] |
| 632 | } |
| 633 | |
Anton Sukhanov | 7940da0 | 2018-10-10 10:34:49 -0700 | [diff] [blame] | 634 | rtc_source_set("fake_media_transport") { |
| 635 | testonly = true |
| 636 | |
| 637 | sources = [ |
| 638 | "test/fake_media_transport.h", |
| 639 | ] |
| 640 | |
| 641 | deps = [ |
| 642 | ":libjingle_peerconnection_api", |
| 643 | "../rtc_base:checks", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 644 | "//third_party/abseil-cpp/absl/memory", |
Anton Sukhanov | 7940da0 | 2018-10-10 10:34:49 -0700 | [diff] [blame] | 645 | ] |
| 646 | } |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 647 | |
| 648 | rtc_source_set("loopback_media_transport") { |
| 649 | testonly = true |
| 650 | |
| 651 | sources = [ |
Niels Möller | e0446cb | 2018-11-30 09:35:52 +0100 | [diff] [blame] | 652 | "test/loopback_media_transport.cc", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 653 | "test/loopback_media_transport.h", |
| 654 | ] |
| 655 | |
| 656 | deps = [ |
| 657 | ":libjingle_peerconnection_api", |
| 658 | "../rtc_base:checks", |
Bjorn Mellem | 273d029 | 2018-11-01 16:42:44 -0700 | [diff] [blame] | 659 | "../rtc_base:rtc_base", |
Niels Möller | e0446cb | 2018-11-30 09:35:52 +0100 | [diff] [blame] | 660 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 661 | ] |
| 662 | } |
| 663 | |
| 664 | rtc_source_set("rtc_api_unittests") { |
| 665 | testonly = true |
| 666 | |
| 667 | sources = [ |
| 668 | "array_view_unittest.cc", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 669 | "rtcerror_unittest.cc", |
| 670 | "rtpparameters_unittest.cc", |
| 671 | "test/loopback_media_transport_unittest.cc", |
| 672 | ] |
| 673 | |
| 674 | if (!build_with_chromium && is_clang) { |
| 675 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 676 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 677 | } |
| 678 | |
| 679 | deps = [ |
| 680 | ":array_view", |
| 681 | ":libjingle_peerconnection_api", |
| 682 | ":loopback_media_transport", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 683 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 684 | "../rtc_base:gunit_helpers", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 685 | "../rtc_base:rtc_base_approved", |
Niels Möller | 2e47f7c | 2018-10-16 10:41:42 +0200 | [diff] [blame] | 686 | "../test:test_support", |
| 687 | "units:units_unittests", |
| 688 | ] |
| 689 | } |
kjellander | fd5b4e9 | 2016-06-13 12:08:33 -0700 | [diff] [blame] | 690 | } |