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