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 | ] |
| 29 | |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 30 | deps = [ |
| 31 | # TODO(kjellander): Add remaining dependencies when webrtc:4243 is done. |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 32 | ":transport_api", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 33 | "..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 34 | "../rtc_base:rtc_base_approved", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 35 | "audio:audio_mixer_api", |
kwiberg | 087bd34 | 2017-02-10 16:15:44 | [diff] [blame] | 36 | "audio_codecs:audio_codecs_api", |
kjellander | a69d973 | 2016-08-31 14:33:05 | [diff] [blame] | 37 | ] |
| 38 | } |
| 39 | |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 40 | rtc_source_set("callfactory_api") { |
| 41 | visibility = [ "*" ] |
| 42 | sources = [ |
| 43 | "call/callfactoryinterface.h", |
| 44 | ] |
| 45 | } |
| 46 | |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 47 | rtc_static_library("libjingle_peerconnection_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 48 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 49 | cflags = [] |
| 50 | sources = [ |
Zach Stein | e20867f | 2018-08-02 20:20:15 | [diff] [blame] | 51 | "asyncresolverfactory.h", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 52 | "bitrate_constraints.h", |
Steve Anton | 36b28db | 2017-10-26 18:27:17 | [diff] [blame] | 53 | "candidate.cc", |
Patrik Höglund | e2d6a06 | 2017-10-05 12:53:33 | [diff] [blame] | 54 | "candidate.h", |
Benjamin Wright | a54daf1 | 2018-10-11 22:33:17 | [diff] [blame] | 55 | "crypto/cryptooptions.cc", |
| 56 | "crypto/cryptooptions.h", |
Benjamin Wright | ea08691 | 2018-08-29 20:06:15 | [diff] [blame] | 57 | "crypto/framedecryptorinterface.h", |
| 58 | "crypto/frameencryptorinterface.h", |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 59 | "cryptoparams.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 08:39:30 | [diff] [blame] | 60 | "datachannelinterface.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 61 | "datachannelinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 62 | "dtmfsenderinterface.h", |
Steve Anton | 845bb73 | 2017-12-05 20:50:26 | [diff] [blame] | 63 | "jsep.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 64 | "jsep.h", |
Mirko Bonadei | 2ffed6d | 2018-07-20 09:09:32 | [diff] [blame] | 65 | "jsepicecandidate.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 66 | "jsepicecandidate.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 67 | "jsepsessiondescription.h", |
Niels Möller | 3a74239 | 2018-10-08 09:13:58 | [diff] [blame] | 68 | "media_transport_interface.cc", |
Anton Sukhanov | f60bd4b | 2018-09-05 17:41:46 | [diff] [blame] | 69 | "media_transport_interface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 70 | "mediaconstraintsinterface.cc", |
| 71 | "mediaconstraintsinterface.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 72 | "mediastreaminterface.cc", |
Patrik Höglund | 825249f | 2018-01-09 09:38:21 | [diff] [blame] | 73 | "mediastreaminterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 74 | "mediastreamproxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 75 | "mediastreamtrackproxy.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 76 | "mediatypes.cc", |
| 77 | "mediatypes.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 78 | "notifier.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 79 | "peerconnectionfactoryproxy.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 08:39:30 | [diff] [blame] | 80 | "peerconnectioninterface.cc", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 81 | "peerconnectioninterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 82 | "peerconnectionproxy.h", |
Steve Anton | f2737d2 | 2017-10-31 23:27:34 | [diff] [blame] | 83 | "proxy.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 84 | "proxy.h", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 85 | "rtcerror.cc", |
| 86 | "rtcerror.h", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 87 | "rtp_headers.cc", |
| 88 | "rtp_headers.h", |
Stefan Holmer | 1acbd68 | 2017-09-01 13:29:28 | [diff] [blame] | 89 | "rtpparameters.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 90 | "rtpparameters.h", |
Danil Chapovalov | 2a5ce2b | 2018-02-07 08:38:31 | [diff] [blame] | 91 | "rtpreceiverinterface.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 92 | "rtpreceiverinterface.h", |
Benjamin Wright | d81ac95 | 2018-08-30 00:02:10 | [diff] [blame] | 93 | "rtpsenderinterface.cc", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 94 | "rtpsenderinterface.h", |
Mirko Bonadei | 79eb4dd | 2018-07-19 08:39:30 | [diff] [blame] | 95 | "rtptransceiverinterface.cc", |
Steve Anton | 6e634bf | 2017-11-13 18:44:53 | [diff] [blame] | 96 | "rtptransceiverinterface.h", |
Henrik Boström | 3163867 | 2017-11-23 16:48:32 | [diff] [blame] | 97 | "setremotedescriptionobserverinterface.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 98 | "statstypes.cc", |
| 99 | "statstypes.h", |
Jonas Oreland | bdcee28 | 2017-10-10 12:01:40 | [diff] [blame] | 100 | "turncustomizer.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 101 | "umametrics.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 102 | "videosourceproxy.h", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 103 | ] |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 104 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 105 | ":array_view", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 106 | ":audio_options_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 107 | ":callfactory_api", |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 108 | ":fec_controller_api", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 109 | ":libjingle_logging_api", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 110 | ":rtc_stats_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 111 | "audio:audio_mixer_api", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 112 | "audio_codecs:audio_codecs_api", |
Niels Möller | 0c4f7be | 2018-05-07 12:01:37 | [diff] [blame] | 113 | "transport:bitrate_settings", |
Sebastian Jansson | dfce03a | 2018-05-18 16:05:10 | [diff] [blame] | 114 | "transport:network_control", |
Niels Möller | 3a74239 | 2018-10-08 09:13:58 | [diff] [blame] | 115 | "video:encoded_image", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 116 | "video:video_frame", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 117 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b5b5bce | 2017-11-13 09:19:58 | [diff] [blame] | 118 | |
| 119 | # Basically, don't add stuff here. You might break sensitive downstream |
| 120 | # targets like pnacl. API should not depend on anything outside of this |
| 121 | # file, really. All these should arguably go away in time. |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 122 | "..:webrtc_common", |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 123 | "../logging:rtc_event_log_api", |
Niels Möller | 6daa278 | 2018-01-23 09:37:42 | [diff] [blame] | 124 | "../media:rtc_media_config", |
Patrik Höglund | b874a35 | 2017-11-27 13:32:41 | [diff] [blame] | 125 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 126 | "../rtc_base:checks", |
| 127 | "../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 128 | "../rtc_base:rtc_base", |
| 129 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 130 | "../rtc_base:stringutils", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 15:15:12 | [diff] [blame^] | 131 | "../rtc_base/system:rtc_export", |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 132 | ] |
Niels Möller | 8366e17 | 2018-02-14 11:20:13 | [diff] [blame] | 133 | |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 134 | if (is_nacl) { |
Patrik Höglund | 30bd03b | 2017-12-19 10:45:31 | [diff] [blame] | 135 | # This is needed by .h files included from rtc_base. |
kjellander | 8a11663 | 2017-04-21 12:17:08 | [diff] [blame] | 136 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 137 | } |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 138 | } |
kjellander | c76dc95 | 2016-06-03 10:09:32 | [diff] [blame] | 139 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 140 | rtc_source_set("video_quality_test_fixture_api") { |
| 141 | visibility = [ "*" ] |
| 142 | testonly = true |
| 143 | sources = [ |
| 144 | "test/video_quality_test_fixture.h", |
| 145 | ] |
| 146 | deps = [ |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 147 | ":fec_controller_api", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 148 | ":libjingle_peerconnection_api", |
| 149 | ":simulated_network_api", |
| 150 | "../call:fake_network", |
| 151 | "../call:rtp_interfaces", |
| 152 | "../test:test_common", |
| 153 | "../test:video_test_common", |
| 154 | "video_codecs:video_codecs_api", |
| 155 | ] |
| 156 | if (!build_with_chromium && is_clang) { |
| 157 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 158 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 159 | } |
| 160 | } |
| 161 | |
Patrik Höglund | d8f3c17 | 2018-09-26 12:39:17 | [diff] [blame] | 162 | rtc_source_set("test_dependency_factory") { |
| 163 | visibility = [ "*" ] |
| 164 | testonly = true |
| 165 | sources = [ |
| 166 | "test/test_dependency_factory.cc", |
| 167 | "test/test_dependency_factory.h", |
| 168 | ] |
| 169 | deps = [ |
| 170 | ":video_quality_test_fixture_api", |
| 171 | "../rtc_base:thread_checker", |
| 172 | ] |
| 173 | if (!build_with_chromium && is_clang) { |
| 174 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 175 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 176 | } |
| 177 | } |
| 178 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 179 | if (rtc_include_tests) { |
| 180 | rtc_source_set("create_video_quality_test_fixture_api") { |
| 181 | visibility = [ "*" ] |
| 182 | testonly = true |
| 183 | sources = [ |
| 184 | "test/create_video_quality_test_fixture.cc", |
| 185 | "test/create_video_quality_test_fixture.h", |
| 186 | ] |
| 187 | deps = [ |
| 188 | ":fec_controller_api", |
| 189 | ":video_quality_test_fixture_api", |
| 190 | "../rtc_base:ptr_util", |
| 191 | "../video:video_quality_test", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 192 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 193 | ] |
| 194 | if (!build_with_chromium && is_clang) { |
| 195 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 196 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 201 | rtc_source_set("libjingle_logging_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 202 | visibility = [ "*" ] |
Elad Alon | 8081073 | 2017-10-06 11:07:32 | [diff] [blame] | 203 | sources = [ |
| 204 | "rtceventlogoutput.h", |
| 205 | ] |
| 206 | } |
| 207 | |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 208 | rtc_source_set("ortc_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 209 | visibility = [ "*" ] |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 210 | sources = [ |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 211 | "ortc/mediadescription.cc", |
| 212 | "ortc/mediadescription.h", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 213 | "ortc/ortcfactoryinterface.h", |
| 214 | "ortc/ortcrtpreceiverinterface.h", |
| 215 | "ortc/ortcrtpsenderinterface.h", |
| 216 | "ortc/packettransportinterface.h", |
| 217 | "ortc/rtptransportcontrollerinterface.h", |
| 218 | "ortc/rtptransportinterface.h", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 219 | "ortc/sessiondescription.cc", |
| 220 | "ortc/sessiondescription.h", |
zhihuang | d3501ad | 2017-03-03 22:39:06 | [diff] [blame] | 221 | "ortc/srtptransportinterface.h", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 222 | "ortc/udptransportinterface.h", |
| 223 | ] |
| 224 | |
| 225 | # For mediastreaminterface.h, etc. |
| 226 | # TODO(deadbeef): Create a separate target for the common things ORTC and |
| 227 | # PeerConnection code shares, so that ortc_api can depend on that instead of |
| 228 | # libjingle_peerconnection_api. |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 229 | deps = [ |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 230 | ":libjingle_peerconnection_api", |
Patrik Höglund | 7aee3d5 | 2017-11-15 12:15:17 | [diff] [blame] | 231 | "..:webrtc_common", |
| 232 | "../rtc_base:rtc_base", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 233 | "//third_party/abseil-cpp/absl/types:optional", |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 234 | ] |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 235 | if (!build_with_chromium && is_clang) { |
| 236 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 237 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 238 | } |
deadbeef | e814a0d | 2017-02-26 02:15:09 | [diff] [blame] | 239 | } |
| 240 | |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 241 | rtc_source_set("rtc_stats_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 242 | visibility = [ "*" ] |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 243 | cflags = [] |
| 244 | sources = [ |
| 245 | "stats/rtcstats.h", |
| 246 | "stats/rtcstats_objects.h", |
ossu | 7bb87ee | 2017-01-23 12:56:25 | [diff] [blame] | 247 | "stats/rtcstatscollectorcallback.h", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 248 | "stats/rtcstatsreport.h", |
| 249 | ] |
| 250 | |
| 251 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 252 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 253 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 15:15:12 | [diff] [blame^] | 254 | "../rtc_base/system:rtc_export", |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 255 | ] |
| 256 | } |
| 257 | |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 258 | rtc_source_set("audio_options_api") { |
| 259 | visibility = [ "*" ] |
| 260 | sources = [ |
Paulina Hensman | 11b34f4 | 2018-04-09 12:24:52 | [diff] [blame] | 261 | "audio_options.cc", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 262 | "audio_options.h", |
| 263 | ] |
| 264 | |
| 265 | deps = [ |
Danil Chapovalov | 2165233 | 2018-08-31 08:29:07 | [diff] [blame] | 266 | "../rtc_base:stringutils", |
Danil Chapovalov | 0bc58cf | 2018-06-21 11:32:56 | [diff] [blame] | 267 | "//third_party/abseil-cpp/absl/types:optional", |
Niels Möller | a6fe261 | 2018-01-19 10:28:54 | [diff] [blame] | 268 | ] |
| 269 | } |
| 270 | |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 271 | rtc_source_set("transport_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 272 | visibility = [ "*" ] |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 273 | sources = [ |
Dino Radaković | 1807d57 | 2018-02-22 13:18:06 | [diff] [blame] | 274 | "call/transport.cc", |
aleloi | a8eb756 | 2016-11-28 15:02:13 | [diff] [blame] | 275 | "call/transport.h", |
| 276 | ] |
| 277 | } |
nisse | b2250e5 | 2016-12-02 12:01:14 | [diff] [blame] | 278 | |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 279 | rtc_source_set("simulated_network_api") { |
| 280 | visibility = [ "*" ] |
| 281 | sources = [ |
| 282 | "test/simulated_network.h", |
| 283 | ] |
| 284 | deps = [ |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 285 | "../rtc_base:criticalsection", |
| 286 | "../rtc_base:rtc_base", |
Danil Chapovalov | 065a52a | 2018-07-09 08:58:54 | [diff] [blame] | 287 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | b6b29e0 | 2018-06-21 14:58:01 | [diff] [blame] | 288 | ] |
| 289 | } |
| 290 | |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 291 | rtc_source_set("fec_controller_api") { |
| 292 | visibility = [ "*" ] |
| 293 | sources = [ |
| 294 | "fec_controller.h", |
| 295 | ] |
| 296 | |
| 297 | deps = [ |
Ying Wang | 0dd1b0a | 2018-02-20 11:50:27 | [diff] [blame] | 298 | "..:webrtc_common", |
| 299 | "../modules:module_fec_api", |
Ying Wang | 3b790f3 | 2018-01-19 16:58:57 | [diff] [blame] | 300 | ] |
| 301 | } |
| 302 | |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 303 | rtc_source_set("array_view") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 304 | visibility = [ "*" ] |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 305 | sources = [ |
| 306 | "array_view.h", |
| 307 | ] |
| 308 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 309 | "../rtc_base:checks", |
| 310 | "../rtc_base:type_traits", |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 311 | ] |
| 312 | } |
| 313 | |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 314 | rtc_source_set("refcountedbase") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 315 | visibility = [ "*" ] |
Niels Möller | 9155e49 | 2017-10-23 09:22:30 | [diff] [blame] | 316 | sources = [ |
| 317 | "refcountedbase.h", |
| 318 | ] |
| 319 | deps = [ |
| 320 | "../rtc_base:rtc_base_approved", |
| 321 | ] |
| 322 | } |
| 323 | |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 324 | rtc_source_set("libjingle_peerconnection_test_api") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 325 | visibility = [ "*" ] |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 326 | testonly = true |
| 327 | sources = [ |
| 328 | "test/fakeconstraints.h", |
| 329 | ] |
| 330 | |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 331 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 332 | ":libjingle_peerconnection_api", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 333 | "../rtc_base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 08:29:21 | [diff] [blame] | 334 | ] |
| 335 | } |
| 336 | |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 337 | rtc_source_set("neteq_simulator_api") { |
| 338 | visibility = [ "*" ] |
| 339 | sources = [ |
| 340 | "test/neteq_simulator.cc", |
| 341 | "test/neteq_simulator.h", |
| 342 | ] |
| 343 | } |
| 344 | |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 345 | if (rtc_include_tests) { |
Ivo Creusen | 2cb4105 | 2018-03-15 11:22:52 | [diff] [blame] | 346 | if (rtc_enable_protobuf) { |
| 347 | rtc_source_set("audioproc_f_api") { |
| 348 | visibility = [ "*" ] |
| 349 | testonly = true |
| 350 | sources = [ |
| 351 | "test/audioproc_float.cc", |
| 352 | "test/audioproc_float.h", |
| 353 | ] |
| 354 | |
| 355 | deps = [ |
| 356 | "../modules/audio_processing:audio_processing", |
| 357 | "../modules/audio_processing:audioproc_f_impl", |
| 358 | ] |
| 359 | } |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 360 | |
| 361 | rtc_source_set("neteq_simulator_factory") { |
| 362 | visibility = [ "*" ] |
| 363 | testonly = true |
| 364 | sources = [ |
| 365 | "test/neteq_simulator_factory.cc", |
| 366 | "test/neteq_simulator_factory.h", |
| 367 | ] |
| 368 | deps = [ |
| 369 | ":neteq_simulator_api", |
| 370 | "../modules/audio_coding:neteq_test_factory", |
Ivo Creusen | f81b0f1 | 2018-09-11 08:30:58 | [diff] [blame] | 371 | "../rtc_base:checks", |
| 372 | "../rtc_base:rtc_base_approved", |
Ivo Creusen | 55de08e | 2018-09-03 09:49:27 | [diff] [blame] | 373 | "//third_party/abseil-cpp/absl/memory", |
| 374 | ] |
| 375 | } |
Ivo Creusen | 2cb4105 | 2018-03-15 11:22:52 | [diff] [blame] | 376 | } |
| 377 | |
Rasmus Brandt | 0cedc05 | 2018-05-31 10:53:00 | [diff] [blame] | 378 | rtc_source_set("simulcast_test_fixture_api") { |
| 379 | visibility = [ "*" ] |
| 380 | testonly = true |
| 381 | sources = [ |
| 382 | "test/simulcast_test_fixture.h", |
| 383 | ] |
| 384 | } |
| 385 | |
| 386 | rtc_source_set("create_simulcast_test_fixture_api") { |
| 387 | visibility = [ "*" ] |
| 388 | testonly = true |
| 389 | sources = [ |
| 390 | "test/create_simulcast_test_fixture.cc", |
| 391 | "test/create_simulcast_test_fixture.h", |
| 392 | ] |
| 393 | deps = [ |
| 394 | ":simulcast_test_fixture_api", |
| 395 | "../modules/video_coding:simulcast_test_fixture_impl", |
| 396 | "../rtc_base:rtc_base_approved", |
| 397 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 398 | "//third_party/abseil-cpp/absl/memory", |
Rasmus Brandt | 0cedc05 | 2018-05-31 10:53:00 | [diff] [blame] | 399 | ] |
| 400 | if (!build_with_chromium && is_clang) { |
| 401 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 402 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 403 | } |
| 404 | } |
| 405 | |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 406 | rtc_source_set("videocodec_test_fixture_api") { |
| 407 | visibility = [ "*" ] |
| 408 | testonly = true |
| 409 | sources = [ |
| 410 | "test/videocodec_test_fixture.h", |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 411 | "test/videocodec_test_stats.cc", |
| 412 | "test/videocodec_test_stats.h", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 413 | ] |
| 414 | deps = [ |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 415 | "..:webrtc_common", |
| 416 | "../modules/video_coding:video_codec_interface", |
Jonas Olsson | 366a50c | 2018-09-06 11:41:30 | [diff] [blame] | 417 | "../rtc_base:stringutils", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 418 | "video_codecs:video_codecs_api", |
| 419 | ] |
| 420 | } |
| 421 | |
| 422 | rtc_source_set("create_videocodec_test_fixture_api") { |
| 423 | visibility = [ "*" ] |
| 424 | testonly = true |
| 425 | sources = [ |
| 426 | "test/create_videocodec_test_fixture.cc", |
| 427 | "test/create_videocodec_test_fixture.h", |
| 428 | ] |
| 429 | deps = [ |
| 430 | ":videocodec_test_fixture_api", |
| 431 | "../modules/video_coding:video_codecs_test_framework", |
| 432 | "../modules/video_coding:videocodec_test_impl", |
| 433 | "../rtc_base:rtc_base_approved", |
| 434 | "video_codecs:video_codecs_api", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 435 | "//third_party/abseil-cpp/absl/memory", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 436 | ] |
| 437 | if (!build_with_chromium && is_clang) { |
| 438 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 439 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 440 | } |
| 441 | } |
| 442 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 443 | rtc_source_set("mock_audio_mixer") { |
| 444 | testonly = true |
| 445 | sources = [ |
| 446 | "test/mock_audio_mixer.h", |
| 447 | ] |
| 448 | |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 449 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 450 | "../test:test_support", |
Gustaf Ullberg | 2ae140a | 2018-02-16 12:43:49 | [diff] [blame] | 451 | "audio:audio_mixer_api", |
kjellander | 2f6af9c | 2017-03-03 06:26:23 | [diff] [blame] | 452 | ] |
| 453 | } |
| 454 | |
Benjamin Wright | 84583f6 | 2018-10-04 21:22:34 | [diff] [blame] | 455 | rtc_source_set("fake_frame_crypto") { |
| 456 | testonly = true |
| 457 | sources = [ |
| 458 | "test/fake_frame_decryptor.cc", |
| 459 | "test/fake_frame_decryptor.h", |
| 460 | "test/fake_frame_encryptor.cc", |
| 461 | "test/fake_frame_encryptor.h", |
| 462 | ] |
| 463 | deps = [ |
| 464 | ":array_view", |
| 465 | ":libjingle_peerconnection_api", |
| 466 | "..:webrtc_common", |
| 467 | "../rtc_base:checks", |
| 468 | "../rtc_base:rtc_base_approved", |
| 469 | ] |
| 470 | } |
| 471 | |
Jiawei Ou | 651b92e | 2018-06-29 22:46:44 | [diff] [blame] | 472 | rtc_source_set("mock_peerconnectioninterface") { |
| 473 | testonly = true |
| 474 | sources = [ |
| 475 | "test/mock_peerconnectioninterface.h", |
| 476 | ] |
| 477 | |
| 478 | deps = [ |
| 479 | ":libjingle_peerconnection_api", |
| 480 | "../test:test_support", |
| 481 | ] |
| 482 | } |
| 483 | |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 484 | rtc_source_set("mock_rtp") { |
| 485 | testonly = true |
| 486 | sources = [ |
| 487 | "test/mock_rtpreceiver.h", |
| 488 | "test/mock_rtpsender.h", |
| 489 | ] |
| 490 | |
| 491 | deps = [ |
| 492 | ":libjingle_peerconnection_api", |
| 493 | "../test:test_support", |
Patrik Höglund | 4b9e6ba | 2017-12-19 09:32:11 | [diff] [blame] | 494 | ] |
| 495 | } |
| 496 | |
Jiawei Ou | 4206a0a | 2018-07-20 22:49:43 | [diff] [blame] | 497 | rtc_source_set("mock_video_bitrate_allocator") { |
| 498 | testonly = true |
| 499 | sources = [ |
| 500 | "test/mock_video_bitrate_allocator.h", |
| 501 | ] |
| 502 | |
| 503 | deps = [ |
| 504 | "../api/video:video_bitrate_allocator", |
| 505 | "../test:test_support", |
| 506 | ] |
| 507 | } |
| 508 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 509 | rtc_source_set("mock_video_codec_factory") { |
| 510 | testonly = true |
| 511 | sources = [ |
| 512 | "test/mock_video_decoder_factory.h", |
| 513 | "test/mock_video_encoder_factory.h", |
| 514 | ] |
| 515 | |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 516 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 09:13:56 | [diff] [blame] | 517 | "../api/video_codecs:video_codecs_api", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 518 | "../test:test_support", |
Emircan Uysaler | dbcac7f | 2017-10-31 06:10:12 | [diff] [blame] | 519 | ] |
| 520 | } |
| 521 | |
Erik Språng | c84cd95 | 2018-10-15 09:55:13 | [diff] [blame] | 522 | rtc_source_set("mock_video_decoder") { |
| 523 | visibility = [ "*" ] |
| 524 | |
| 525 | testonly = true |
| 526 | sources = [ |
| 527 | "test/mock_video_decoder.cc", |
| 528 | "test/mock_video_decoder.h", |
| 529 | ] |
| 530 | |
| 531 | deps = [ |
| 532 | "../api/video_codecs:video_codecs_api", |
| 533 | "../test:test_support", |
| 534 | ] |
| 535 | } |
| 536 | |
Erik Språng | 6af1c92 | 2018-10-12 08:01:30 | [diff] [blame] | 537 | rtc_source_set("mock_video_encoder") { |
Erik Språng | c84cd95 | 2018-10-15 09:55:13 | [diff] [blame] | 538 | visibility = [ "*" ] |
| 539 | |
Erik Språng | 6af1c92 | 2018-10-12 08:01:30 | [diff] [blame] | 540 | testonly = true |
| 541 | sources = [ |
| 542 | "test/mock_video_encoder.cc", |
| 543 | "test/mock_video_encoder.h", |
| 544 | ] |
| 545 | |
| 546 | deps = [ |
| 547 | "../api/video_codecs:video_codecs_api", |
| 548 | "../test:test_support", |
| 549 | ] |
| 550 | } |
| 551 | |
deadbeef | b5388d7 | 2017-02-24 09:17:43 | [diff] [blame] | 552 | rtc_source_set("rtc_api_unittests") { |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 553 | testonly = true |
kjellander | e0629c0 | 2017-04-25 11:04:50 | [diff] [blame] | 554 | |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 555 | sources = [ |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 556 | "array_view_unittest.cc", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 557 | "ortc/mediadescription_unittest.cc", |
| 558 | "ortc/sessiondescription_unittest.cc", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 559 | "rtcerror_unittest.cc", |
Stefan Holmer | 1acbd68 | 2017-09-01 13:29:28 | [diff] [blame] | 560 | "rtpparameters_unittest.cc", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 561 | ] |
| 562 | |
| 563 | if (!build_with_chromium && is_clang) { |
| 564 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 565 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 566 | } |
| 567 | |
| 568 | deps = [ |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 569 | ":array_view", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 570 | ":libjingle_peerconnection_api", |
zhihuang | 55adc0e | 2017-03-11 02:33:45 | [diff] [blame] | 571 | ":ortc_api", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 572 | "../rtc_base:checks", |
kwiberg | 529662a | 2017-09-04 12:43:17 | [diff] [blame] | 573 | "../rtc_base:rtc_base_approved", |
| 574 | "../rtc_base:rtc_base_tests_utils", |
jianjun.zhu | c024740 | 2017-07-11 13:20:45 | [diff] [blame] | 575 | "../test:test_support", |
Sebastian Jansson | 6fae6ec | 2018-05-08 08:43:18 | [diff] [blame] | 576 | "units:units_unittests", |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 577 | ] |
deadbeef | 6038e97 | 2017-02-17 07:31:33 | [diff] [blame] | 578 | } |
Anton Sukhanov | 7940da0 | 2018-10-10 17:34:49 | [diff] [blame] | 579 | |
| 580 | rtc_source_set("fake_media_transport") { |
| 581 | testonly = true |
| 582 | |
| 583 | sources = [ |
| 584 | "test/fake_media_transport.h", |
| 585 | ] |
| 586 | |
| 587 | deps = [ |
| 588 | ":libjingle_peerconnection_api", |
| 589 | "../rtc_base:checks", |
| 590 | ] |
| 591 | } |
kjellander | fd5b4e9 | 2016-06-13 19:08:33 | [diff] [blame] | 592 | } |