kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 1 | # Copyright (c) 2016 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") |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [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("pc") { |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 16 | deps = [ |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 17 | ":rtc_pc", |
| 18 | ] |
| 19 | } |
| 20 | |
| 21 | config("rtc_pc_config") { |
jbauch | eaa9c1d | 2017-03-06 11:32:22 -0800 | [diff] [blame] | 22 | defines = [] |
deadbeef | 40610e2 | 2016-12-22 10:53:38 -0800 | [diff] [blame] | 23 | if (rtc_enable_sctp) { |
| 24 | defines += [ "HAVE_SCTP" ] |
| 25 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 26 | } |
| 27 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 28 | rtc_static_library("rtc_pc_base") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 29 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 30 | defines = [] |
| 31 | sources = [ |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 32 | "audiomonitor.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 33 | "channel.cc", |
| 34 | "channel.h", |
| 35 | "channelmanager.cc", |
| 36 | "channelmanager.h", |
| 37 | "currentspeakermonitor.cc", |
| 38 | "currentspeakermonitor.h", |
Zhi Huang | f2d7beb | 2017-11-20 14:35:11 -0800 | [diff] [blame] | 39 | "dtlssrtptransport.cc", |
| 40 | "dtlssrtptransport.h", |
jbauch | dfcab72 | 2017-03-06 00:14:10 -0800 | [diff] [blame] | 41 | "externalhmac.cc", |
| 42 | "externalhmac.h", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 43 | "jseptransport.cc", |
| 44 | "jseptransport.h", |
Zhi Huang | e818b6e | 2018-02-22 15:26:27 -0800 | [diff] [blame] | 45 | "jseptransportcontroller.cc", |
| 46 | "jseptransportcontroller.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 47 | "mediasession.cc", |
| 48 | "mediasession.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 49 | "rtcpmuxfilter.cc", |
| 50 | "rtcpmuxfilter.h", |
Steve Anton | 1d03a75 | 2017-11-27 14:30:09 -0800 | [diff] [blame] | 51 | "rtpmediautils.cc", |
| 52 | "rtpmediautils.h", |
zstein | d48dbda | 2017-04-04 19:45:57 -0700 | [diff] [blame] | 53 | "rtptransport.cc", |
| 54 | "rtptransport.h", |
zstein | 398c3fd | 2017-07-19 13:38:02 -0700 | [diff] [blame] | 55 | "rtptransportinternal.h", |
Zhi Huang | f2d7beb | 2017-11-20 14:35:11 -0800 | [diff] [blame] | 56 | "rtptransportinternaladapter.h", |
Steve Anton | 4ab68ee | 2017-12-19 14:26:11 -0800 | [diff] [blame] | 57 | "sessiondescription.cc", |
| 58 | "sessiondescription.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 59 | "srtpfilter.cc", |
| 60 | "srtpfilter.h", |
zstein | 4dde3df | 2017-07-07 14:26:25 -0700 | [diff] [blame] | 61 | "srtpsession.cc", |
| 62 | "srtpsession.h", |
zstein | 398c3fd | 2017-07-19 13:38:02 -0700 | [diff] [blame] | 63 | "srtptransport.cc", |
| 64 | "srtptransport.h", |
Zhi Huang | e818b6e | 2018-02-22 15:26:27 -0800 | [diff] [blame] | 65 | "transportstats.cc", |
| 66 | "transportstats.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 67 | ] |
| 68 | |
| 69 | deps = [ |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 70 | "..:webrtc_common", |
Joachim Bauch | 5b32f23 | 2018-03-07 20:02:26 +0100 | [diff] [blame] | 71 | "../api:array_view", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 72 | "../api:call_api", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 73 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 74 | "../api:optional", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 75 | "../api:ortc_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 76 | "../api/video:video_frame", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 77 | "../call:rtp_interfaces", |
| 78 | "../call:rtp_receiver", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 79 | "../common_video:common_video", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 80 | "../media:rtc_data", |
zhihuang | 130ca7e | 2017-06-21 01:02:59 -0700 | [diff] [blame] | 81 | "../media:rtc_h264_profile_id", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 82 | "../media:rtc_media_base", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 83 | "../modules/rtp_rtcp:rtp_rtcp_format", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 84 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 85 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 86 | "../rtc_base:rtc_base", |
| 87 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 88 | "../rtc_base:stringutils", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 89 | ] |
| 90 | |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 91 | if (rtc_build_libsrtp) { |
| 92 | deps += [ "//third_party/libsrtp" ] |
| 93 | } |
| 94 | |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 95 | public_configs = [ ":rtc_pc_config" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 96 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 97 | if (!build_with_chromium && is_clang) { |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 98 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 99 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 100 | } |
| 101 | } |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 102 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 103 | rtc_source_set("rtc_pc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 104 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 105 | allow_poison = [ |
| 106 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 107 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 108 | ] |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 109 | deps = [ |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 110 | ":rtc_pc_base", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 111 | "../media:rtc_audio_video", |
| 112 | ] |
| 113 | } |
| 114 | |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 115 | config("libjingle_peerconnection_warnings_config") { |
| 116 | # GN orders flags on a target before flags from configs. The default config |
| 117 | # adds these flags so to cancel them out they need to come from a config and |
| 118 | # cannot be on the target directly. |
| 119 | if (!is_win && !is_clang) { |
| 120 | cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC. |
| 121 | } |
| 122 | } |
| 123 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 124 | rtc_static_library("peerconnection") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 125 | visibility = [ "*" ] |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 126 | cflags = [] |
| 127 | sources = [ |
| 128 | "audiotrack.cc", |
| 129 | "audiotrack.h", |
| 130 | "datachannel.cc", |
| 131 | "datachannel.h", |
| 132 | "dtmfsender.cc", |
| 133 | "dtmfsender.h", |
deadbeef | 1dcb164 | 2017-03-29 21:08:16 -0700 | [diff] [blame] | 134 | "iceserverparsing.cc", |
| 135 | "iceserverparsing.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 136 | "jsepicecandidate.cc", |
| 137 | "jsepsessiondescription.cc", |
| 138 | "localaudiosource.cc", |
| 139 | "localaudiosource.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 140 | "mediastream.cc", |
| 141 | "mediastream.h", |
| 142 | "mediastreamobserver.cc", |
| 143 | "mediastreamobserver.h", |
| 144 | "mediastreamtrack.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 145 | "peerconnection.cc", |
| 146 | "peerconnection.h", |
| 147 | "peerconnectionfactory.cc", |
| 148 | "peerconnectionfactory.h", |
Steve Anton | 2d8609c | 2018-01-23 16:38:46 -0800 | [diff] [blame] | 149 | "peerconnectioninternal.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 150 | "remoteaudiosource.cc", |
| 151 | "remoteaudiosource.h", |
| 152 | "rtcstatscollector.cc", |
| 153 | "rtcstatscollector.h", |
Henrik Boström | b619936 | 2018-03-12 10:27:55 +0100 | [diff] [blame] | 154 | "rtcstatstraversal.cc", |
| 155 | "rtcstatstraversal.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 156 | "rtpreceiver.cc", |
| 157 | "rtpreceiver.h", |
| 158 | "rtpsender.cc", |
| 159 | "rtpsender.h", |
Steve Anton | 6e634bf | 2017-11-13 10:44:53 -0800 | [diff] [blame] | 160 | "rtptransceiver.cc", |
| 161 | "rtptransceiver.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 162 | "sctputils.cc", |
| 163 | "sctputils.h", |
Steve Anton | 97a9f76 | 2017-10-06 10:14:03 -0700 | [diff] [blame] | 164 | "sdputils.cc", |
| 165 | "sdputils.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 166 | "statscollector.cc", |
| 167 | "statscollector.h", |
| 168 | "streamcollection.h", |
deadbeef | 804c1af | 2017-02-11 19:07:31 -0800 | [diff] [blame] | 169 | "trackmediainfomap.cc", |
| 170 | "trackmediainfomap.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 171 | "videocapturertracksource.cc", |
| 172 | "videocapturertracksource.h", |
| 173 | "videotrack.cc", |
| 174 | "videotrack.h", |
| 175 | "videotracksource.cc", |
| 176 | "videotracksource.h", |
| 177 | "webrtcsdp.cc", |
| 178 | "webrtcsdp.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 179 | "webrtcsessiondescriptionfactory.cc", |
| 180 | "webrtcsessiondescriptionfactory.h", |
| 181 | ] |
| 182 | |
| 183 | configs += [ ":libjingle_peerconnection_warnings_config" ] |
| 184 | |
| 185 | if (!build_with_chromium && is_clang) { |
| 186 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 187 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 188 | } |
| 189 | |
| 190 | deps = [ |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 191 | ":rtc_pc_base", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 192 | "..:webrtc_common", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 193 | "../api:call_api", |
Ying Wang | 0dd1b0a | 2018-02-20 12:50:27 +0100 | [diff] [blame] | 194 | "../api:fec_controller_api", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 195 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 196 | "../api:optional", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 197 | "../api:rtc_stats_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 198 | "../api/video:video_frame", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 199 | "../api/video_codecs:video_codecs_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 200 | "../call:call_interfaces", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 201 | "../common_video:common_video", |
Qingsi Wang | 93a8439 | 2018-01-30 17:13:09 -0800 | [diff] [blame] | 202 | "../logging:ice_log", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 203 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 204 | "../logging:rtc_event_log_impl_output", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 205 | "../media:rtc_data", |
| 206 | "../media:rtc_media_base", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 207 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 208 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 209 | "../rtc_base:rtc_base", |
| 210 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 211 | "../rtc_base:stringutils", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 212 | "../stats", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 213 | "../system_wrappers", |
| 214 | "../system_wrappers:field_trial_api", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 215 | ] |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | # This target implements CreatePeerConnectionFactory methods that will create a |
| 219 | # PeerConnection will full functionality (audio, video and data). Applications |
| 220 | # that wish to reduce their binary size by ommitting functionality they don't |
| 221 | # need should use CreateModularCreatePeerConnectionFactory instead, using the |
| 222 | # "peerconnection" build target and other targets specific to their |
| 223 | # requrements. See comment in peerconnectionfactoryinterface.h. |
zhihuang | ab97e18 | 2017-06-22 01:28:59 -0700 | [diff] [blame] | 224 | rtc_static_library("create_pc_factory") { |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 225 | sources = [ |
| 226 | "createpeerconnectionfactory.cc", |
| 227 | ] |
| 228 | |
| 229 | deps = [ |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 230 | "../api:callfactory_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 231 | "../api:libjingle_peerconnection_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 232 | "../api/audio:audio_mixer_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 233 | "../api/audio_codecs:audio_codecs_api", |
Magnus Jedvert | 58b0316 | 2017-09-15 19:02:47 +0200 | [diff] [blame] | 234 | "../api/video_codecs:video_codecs_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 235 | "../call", |
| 236 | "../call:call_interfaces", |
| 237 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 238 | "../logging:rtc_event_log_impl_base", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 239 | "../media:rtc_audio_video", |
Edward Lemur | 872cf38 | 2017-11-20 18:41:50 +0100 | [diff] [blame] | 240 | "../media:rtc_media_base", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 241 | "../modules/audio_device:audio_device", |
peah | a9cc40b | 2017-06-29 08:32:09 -0700 | [diff] [blame] | 242 | "../modules/audio_processing:audio_processing", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 243 | "../rtc_base:rtc_base", |
| 244 | "../rtc_base:rtc_base_approved", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 245 | ] |
| 246 | |
| 247 | configs += [ ":libjingle_peerconnection_warnings_config" ] |
| 248 | |
| 249 | if (!build_with_chromium && is_clang) { |
| 250 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 251 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | rtc_source_set("libjingle_peerconnection") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 256 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 257 | allow_poison = [ |
| 258 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 259 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 260 | ] |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 261 | deps = [ |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 262 | ":create_pc_factory", |
| 263 | ":peerconnection", |
| 264 | "../api:libjingle_peerconnection_api", |
| 265 | ] |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 266 | } |
| 267 | |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 268 | if (rtc_include_tests) { |
| 269 | config("rtc_pc_unittests_config") { |
| 270 | # GN orders flags on a target before flags from configs. The default config |
| 271 | # adds -Wall, and this flag have to be after -Wall -- so they need to |
| 272 | # come from a config and can't be on the target directly. |
| 273 | if (!is_win && !is_clang) { |
| 274 | cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC. |
| 275 | } |
| 276 | } |
| 277 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 278 | rtc_test("rtc_pc_unittests") { |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 279 | testonly = true |
| 280 | |
| 281 | sources = [ |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 282 | "channel_unittest.cc", |
| 283 | "channelmanager_unittest.cc", |
| 284 | "currentspeakermonitor_unittest.cc", |
Zhi Huang | f2d7beb | 2017-11-20 14:35:11 -0800 | [diff] [blame] | 285 | "dtlssrtptransport_unittest.cc", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 286 | "jseptransport_unittest.cc", |
Zhi Huang | e818b6e | 2018-02-22 15:26:27 -0800 | [diff] [blame] | 287 | "jseptransportcontroller_unittest.cc", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 288 | "mediasession_unittest.cc", |
| 289 | "rtcpmuxfilter_unittest.cc", |
zstein | 56162b9 | 2017-04-24 16:54:35 -0700 | [diff] [blame] | 290 | "rtptransport_unittest.cc", |
zstein | 398c3fd | 2017-07-19 13:38:02 -0700 | [diff] [blame] | 291 | "rtptransporttestutil.h", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 292 | "srtpfilter_unittest.cc", |
zstein | 4dde3df | 2017-07-07 14:26:25 -0700 | [diff] [blame] | 293 | "srtpsession_unittest.cc", |
| 294 | "srtptestutil.h", |
zstein | 398c3fd | 2017-07-19 13:38:02 -0700 | [diff] [blame] | 295 | "srtptransport_unittest.cc", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 296 | ] |
| 297 | |
| 298 | include_dirs = [ "//third_party/libsrtp/srtp" ] |
| 299 | |
ehmaldonado | 7a2ce0b | 2016-09-05 01:35:44 -0700 | [diff] [blame] | 300 | configs += [ ":rtc_pc_unittests_config" ] |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 301 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 302 | if (!build_with_chromium && is_clang) { |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 303 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 304 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 305 | } |
| 306 | |
| 307 | if (is_win) { |
| 308 | libs = [ "strmiids.lib" ] |
| 309 | } |
| 310 | |
| 311 | deps = [ |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 312 | ":libjingle_peerconnection", |
Zhi Huang | b526158 | 2017-09-29 10:51:43 -0700 | [diff] [blame] | 313 | ":pc_test_utils", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 314 | ":rtc_pc", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 315 | ":rtc_pc_base", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 316 | "../api:array_view", |
Steve Anton | db67ba1 | 2018-03-19 17:41:42 -0700 | [diff] [blame] | 317 | "../api:fakemetricsobserver", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 318 | "../api:libjingle_peerconnection_api", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 319 | "../call:rtp_interfaces", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 320 | "../logging:rtc_event_log_api", |
| 321 | "../media:rtc_media_base", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 322 | "../media:rtc_media_tests_utils", |
Zhi Huang | 365381f | 2018-04-13 16:44:34 -0700 | [diff] [blame] | 323 | "../modules/rtp_rtcp:rtp_rtcp_format", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 324 | "../p2p:p2p_test_utils", |
| 325 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 326 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 327 | "../rtc_base:rtc_base", |
| 328 | "../rtc_base:rtc_base_approved", |
| 329 | "../rtc_base:rtc_base_tests_main", |
| 330 | "../rtc_base:rtc_base_tests_utils", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 331 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 332 | "../system_wrappers:runtime_enabled_features_default", |
zstein | 398c3fd | 2017-07-19 13:38:02 -0700 | [diff] [blame] | 333 | "../test:test_support", |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 334 | ] |
| 335 | |
| 336 | if (rtc_build_libsrtp) { |
| 337 | deps += [ "//third_party/libsrtp" ] |
| 338 | } |
| 339 | |
| 340 | if (is_android) { |
| 341 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 342 | } |
| 343 | } |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 344 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 345 | rtc_source_set("pc_test_utils") { |
| 346 | testonly = true |
| 347 | sources = [ |
| 348 | "test/fakeaudiocapturemodule.cc", |
| 349 | "test/fakeaudiocapturemodule.h", |
| 350 | "test/fakedatachannelprovider.h", |
Steve Anton | be5e208 | 2018-01-24 15:29:17 -0800 | [diff] [blame] | 351 | "test/fakepeerconnectionbase.h", |
Steve Anton | 3871f6f | 2018-01-26 10:25:53 -0800 | [diff] [blame] | 352 | "test/fakepeerconnectionforstats.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 353 | "test/fakeperiodicvideocapturer.h", |
Niels Möller | 48cca02 | 2018-03-21 09:20:21 +0100 | [diff] [blame] | 354 | "test/fakeperiodicvideosource.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 355 | "test/fakertccertificategenerator.h", |
Steve Anton | da6c095 | 2017-10-23 11:41:54 -0700 | [diff] [blame] | 356 | "test/fakesctptransport.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 357 | "test/fakevideotrackrenderer.h", |
| 358 | "test/fakevideotracksource.h", |
| 359 | "test/mock_datachannel.h", |
| 360 | "test/mock_peerconnection.h", |
Steve Anton | 57858b3 | 2018-02-15 15:19:50 -0800 | [diff] [blame] | 361 | "test/mock_rtpreceiverinternal.h", |
| 362 | "test/mock_rtpsenderinternal.h", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 363 | "test/mockpeerconnectionobservers.h", |
| 364 | "test/peerconnectiontestwrapper.cc", |
| 365 | "test/peerconnectiontestwrapper.h", |
| 366 | "test/rtcstatsobtainer.h", |
| 367 | "test/testsdpstrings.h", |
| 368 | ] |
| 369 | |
| 370 | deps = [ |
| 371 | ":libjingle_peerconnection", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 372 | ":peerconnection", |
Zhi Huang | b526158 | 2017-09-29 10:51:43 -0700 | [diff] [blame] | 373 | ":rtc_pc_base", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 374 | "..:webrtc_common", |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 375 | "../api:libjingle_peerconnection_api", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 376 | "../api:libjingle_peerconnection_test_api", |
| 377 | "../api:rtc_stats_api", |
Anders Carlsson | 6753795 | 2018-05-03 11:28:29 +0200 | [diff] [blame] | 378 | "../api/video_codecs:builtin_video_decoder_factory", |
| 379 | "../api/video_codecs:builtin_video_encoder_factory", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 380 | "../call:call_interfaces", |
| 381 | "../logging:rtc_event_log_api", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 382 | "../media:rtc_data", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 383 | "../media:rtc_media", |
Edward Lemur | 872cf38 | 2017-11-20 18:41:50 +0100 | [diff] [blame] | 384 | "../media:rtc_media_base", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 385 | "../media:rtc_media_tests_utils", |
| 386 | "../modules/audio_device:audio_device", |
Anders Carlsson | 6753795 | 2018-05-03 11:28:29 +0200 | [diff] [blame] | 387 | "../modules/audio_processing:audio_processing", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 388 | "../p2p:p2p_test_utils", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 389 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 390 | "../rtc_base:rtc_base", |
| 391 | "../rtc_base:rtc_base_approved", |
| 392 | "../rtc_base:rtc_base_tests_utils", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 393 | "../rtc_base:rtc_task_queue", |
mbonadei | 7d9a55b | 2017-06-01 13:01:48 -0700 | [diff] [blame] | 394 | "../test:test_support", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 395 | ] |
| 396 | |
| 397 | if (!build_with_chromium && is_clang) { |
| 398 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 399 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 400 | } |
| 401 | } |
| 402 | |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 403 | config("peerconnection_unittests_config") { |
| 404 | # The warnings below are enabled by default. Since GN orders compiler flags |
| 405 | # for a target before flags from configs, the only way to disable such |
| 406 | # warnings is by having them in a separate config, loaded from the target. |
| 407 | # TODO(kjellander): Make the code compile without disabling these flags. |
| 408 | # See https://bugs.webrtc.org/3307. |
| 409 | if (is_clang && is_win) { |
| 410 | cflags = [ |
| 411 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267 |
| 412 | # for -Wno-sign-compare |
| 413 | "-Wno-sign-compare", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 414 | ] |
| 415 | } |
| 416 | |
| 417 | if (!is_win) { |
| 418 | cflags = [ "-Wno-sign-compare" ] |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | rtc_test("peerconnection_unittests") { |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 423 | testonly = true |
| 424 | sources = [ |
| 425 | "datachannel_unittest.cc", |
| 426 | "dtmfsender_unittest.cc", |
deadbeef | 1dcb164 | 2017-03-29 21:08:16 -0700 | [diff] [blame] | 427 | "iceserverparsing_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 428 | "jsepsessiondescription_unittest.cc", |
| 429 | "localaudiosource_unittest.cc", |
| 430 | "mediaconstraintsinterface_unittest.cc", |
| 431 | "mediastream_unittest.cc", |
Steve Anton | 6f25b09 | 2017-10-23 09:39:20 -0700 | [diff] [blame] | 432 | "peerconnection_bundle_unittest.cc", |
Steve Anton | 6b63cd5 | 2017-10-06 11:20:31 -0700 | [diff] [blame] | 433 | "peerconnection_crypto_unittest.cc", |
Steve Anton | da6c095 | 2017-10-23 11:41:54 -0700 | [diff] [blame] | 434 | "peerconnection_datachannel_unittest.cc", |
Steve Anton | f1c6db1 | 2017-10-13 11:13:35 -0700 | [diff] [blame] | 435 | "peerconnection_ice_unittest.cc", |
deadbeef | 1dcb164 | 2017-03-29 21:08:16 -0700 | [diff] [blame] | 436 | "peerconnection_integrationtest.cc", |
Steve Anton | dcc3c02 | 2017-12-22 16:02:54 -0800 | [diff] [blame] | 437 | "peerconnection_jsep_unittest.cc", |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 438 | "peerconnection_media_unittest.cc", |
Henrik Boström | 933d8b0 | 2017-10-10 10:05:16 -0700 | [diff] [blame] | 439 | "peerconnection_rtp_unittest.cc", |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 440 | "peerconnection_signaling_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 441 | "peerconnectionendtoend_unittest.cc", |
| 442 | "peerconnectionfactory_unittest.cc", |
| 443 | "peerconnectioninterface_unittest.cc", |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 444 | "peerconnectionwrapper.cc", |
| 445 | "peerconnectionwrapper.h", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 446 | "proxy_unittest.cc", |
| 447 | "rtcstats_integrationtest.cc", |
| 448 | "rtcstatscollector_unittest.cc", |
Henrik Boström | b619936 | 2018-03-12 10:27:55 +0100 | [diff] [blame] | 449 | "rtcstatstraversal_unittest.cc", |
Steve Anton | 1d03a75 | 2017-11-27 14:30:09 -0800 | [diff] [blame] | 450 | "rtpmediautils_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 451 | "rtpsenderreceiver_unittest.cc", |
| 452 | "sctputils_unittest.cc", |
| 453 | "statscollector_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 454 | "test/fakeaudiocapturemodule_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 455 | "test/testsdpstrings.h", |
deadbeef | 804c1af | 2017-02-11 19:07:31 -0800 | [diff] [blame] | 456 | "trackmediainfomap_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 457 | "videocapturertracksource_unittest.cc", |
| 458 | "videotrack_unittest.cc", |
| 459 | "webrtcsdp_unittest.cc", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 460 | ] |
| 461 | |
| 462 | if (rtc_enable_sctp) { |
| 463 | defines = [ "HAVE_SCTP" ] |
| 464 | } |
| 465 | |
| 466 | configs += [ ":peerconnection_unittests_config" ] |
| 467 | |
| 468 | if (!build_with_chromium && is_clang) { |
| 469 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 470 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 471 | } |
| 472 | |
| 473 | # TODO(jschuh): Bug 1348: fix this warning. |
| 474 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 475 | |
| 476 | if (is_win) { |
| 477 | cflags = [ |
| 478 | "/wd4245", # conversion from int to size_t, signed/unsigned mismatch. |
| 479 | "/wd4389", # signed/unsigned mismatch. |
| 480 | ] |
| 481 | } |
| 482 | |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 483 | deps = [ |
| 484 | ":peerconnection", |
| 485 | ":rtc_pc_base", |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 486 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | 4b9e6ba | 2017-12-19 10:32:11 +0100 | [diff] [blame] | 487 | "../api:mock_rtp", |
Sebastian Jansson | 5f83cf0 | 2018-05-08 14:52:22 +0200 | [diff] [blame] | 488 | "../api/units:time_delta", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 489 | "../rtc_base:checks", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 490 | "../rtc_base:stringutils", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 491 | "../test:fileutils", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 492 | ] |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 493 | if (is_android) { |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 494 | deps += [ ":android_black_magic" ] |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 495 | } |
| 496 | |
| 497 | deps += [ |
| 498 | ":libjingle_peerconnection", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 499 | ":pc_test_utils", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 500 | "..:webrtc_common", |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 501 | "../api:callfactory_api", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 502 | "../api:fakemetricsobserver", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 503 | "../api:libjingle_peerconnection_test_api", |
Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 504 | "../api:optional", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 505 | "../api:rtc_stats_api", |
Karl Wiberg | c5bb00b | 2017-10-10 23:17:17 +0200 | [diff] [blame] | 506 | "../api/audio_codecs:audio_codecs_api", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 507 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 508 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Karl Wiberg | c5bb00b | 2017-10-10 23:17:17 +0200 | [diff] [blame] | 509 | "../api/audio_codecs/L16:audio_decoder_L16", |
| 510 | "../api/audio_codecs/L16:audio_encoder_L16", |
Anders Carlsson | 6753795 | 2018-05-03 11:28:29 +0200 | [diff] [blame] | 511 | "../api/video_codecs:builtin_video_decoder_factory", |
| 512 | "../api/video_codecs:builtin_video_encoder_factory", |
| 513 | "../api/video_codecs:video_codecs_api", |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 514 | "../call:call_interfaces", |
Elad Alon | 99c3fe5 | 2017-10-13 16:29:40 +0200 | [diff] [blame] | 515 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 516 | "../logging:rtc_event_log_impl_base", |
| 517 | "../logging:rtc_event_log_impl_output", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 518 | "../media:rtc_audio_video", |
| 519 | "../media:rtc_data", # TODO(phoglund): AFAIK only used for one sctp constant. |
| 520 | "../media:rtc_media_base", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 521 | "../media:rtc_media_tests_utils", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 522 | "../modules/audio_processing:audio_processing", |
| 523 | "../modules/utility:utility", |
| 524 | "../p2p:p2p_test_utils", |
| 525 | "../p2p:rtc_p2p", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 526 | "../pc:rtc_pc", |
Henrik Boström | 933d8b0 | 2017-10-10 10:05:16 -0700 | [diff] [blame] | 527 | "../rtc_base:rtc_base", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 528 | "../rtc_base:rtc_base_approved", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 529 | "../rtc_base:rtc_base_tests_main", |
| 530 | "../rtc_base:rtc_base_tests_utils", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 531 | "../rtc_base:rtc_task_queue", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 532 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 533 | "../system_wrappers:runtime_enabled_features_default", |
kwiberg | 2b3aa14 | 2017-06-14 03:31:17 -0700 | [diff] [blame] | 534 | "../test:audio_codec_mocks", |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 535 | "../test:test_support", |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 536 | ] |
| 537 | |
| 538 | if (is_android) { |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 539 | deps += [ |
| 540 | "//testing/android/native_test:native_test_support", |
| 541 | |
| 542 | # We need to depend on this one directly, or classloads will fail for |
| 543 | # the voice engine BuildInfo, for instance. |
| 544 | "../sdk/android:libjingle_peerconnection_java", |
| 545 | ] |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 546 | |
| 547 | shard_timeout = 900 |
| 548 | } |
| 549 | } |
Patrik Höglund | 563934e | 2017-09-15 09:04:28 +0200 | [diff] [blame] | 550 | |
| 551 | if (is_android) { |
| 552 | rtc_source_set("android_black_magic") { |
| 553 | # The android code uses hacky includes to chromium-base and the ssl code; |
| 554 | # having this in a separate target enables us to keep the peerconnection |
| 555 | # unit tests clean. |
| 556 | check_includes = false |
| 557 | testonly = true |
| 558 | sources = [ |
| 559 | "test/androidtestinitializer.cc", |
| 560 | "test/androidtestinitializer.h", |
| 561 | ] |
| 562 | deps = [ |
| 563 | "../sdk/android:libjingle_peerconnection_jni", |
| 564 | "//testing/android/native_test:native_test_support", |
| 565 | ] |
| 566 | } |
| 567 | } |
kjellander | 142f8c5 | 2016-06-13 00:08:24 -0700 | [diff] [blame] | 568 | } |