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 | |
| 9 | import("//build/config/linux/pkg_config.gni") |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 10 | import("../webrtc.gni") |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 11 | |
| 12 | group("media") { |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 13 | deps = [] |
| 14 | if (!build_with_mozilla) { |
| 15 | deps += [ |
| 16 | ":rtc_media", |
| 17 | ":rtc_media_base", |
| 18 | ] |
| 19 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | config("rtc_media_defines_config") { |
| 23 | defines = [ |
| 24 | "HAVE_WEBRTC_VIDEO", |
| 25 | "HAVE_WEBRTC_VOICE", |
| 26 | ] |
| 27 | } |
| 28 | |
zhihuang | 130ca7e | 2017-06-21 01:02:59 -0700 | [diff] [blame] | 29 | rtc_source_set("rtc_h264_profile_id") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 30 | visibility = [ "*" ] |
zhihuang | 130ca7e | 2017-06-21 01:02:59 -0700 | [diff] [blame] | 31 | sources = [ |
| 32 | "base/h264_profile_level_id.cc", |
| 33 | "base/h264_profile_level_id.h", |
| 34 | ] |
| 35 | |
| 36 | if (!build_with_chromium && is_clang) { |
| 37 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 38 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 39 | } |
| 40 | |
| 41 | deps = [ |
| 42 | "..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 43 | "../rtc_base:rtc_base", |
| 44 | "../rtc_base:rtc_base_approved", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 45 | "//third_party/abseil-cpp/absl/types:optional", |
zhihuang | 130ca7e | 2017-06-21 01:02:59 -0700 | [diff] [blame] | 46 | ] |
| 47 | } |
| 48 | |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 49 | rtc_source_set("rtc_media_config") { |
| 50 | visibility = [ "*" ] |
| 51 | sources = [ |
| 52 | "base/mediaconfig.h", |
| 53 | ] |
| 54 | } |
| 55 | |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 56 | rtc_source_set("rtc_vp9_profile") { |
| 57 | sources = [ |
| 58 | "base/vp9_profile.cc", |
| 59 | "base/vp9_profile.h", |
| 60 | ] |
| 61 | |
| 62 | deps = [ |
| 63 | "..:webrtc_common", |
| 64 | "../api/video_codecs:video_codecs_api", |
| 65 | "../rtc_base:rtc_base_approved", |
| 66 | "//third_party/abseil-cpp/absl/types:optional", |
| 67 | ] |
| 68 | } |
| 69 | |
zhihuang | ab97e18 | 2017-06-22 01:28:59 -0700 | [diff] [blame] | 70 | rtc_static_library("rtc_media_base") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 71 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 72 | defines = [] |
| 73 | libs = [] |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 74 | deps = [ |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 75 | "../api:audio_options_api", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 76 | "../rtc_base:checks", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 77 | "../rtc_base:rtc_base_approved", |
| 78 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 79 | "../rtc_base:sanitizer", |
Tommi | 1829af6 | 2018-02-06 09:29:17 +0100 | [diff] [blame] | 80 | "../rtc_base:sequenced_task_checker", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 81 | "../rtc_base:stringutils", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 82 | ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 83 | sources = [ |
nisse | 6f5a6c3 | 2016-09-22 01:25:59 -0700 | [diff] [blame] | 84 | "base/adaptedvideotracksource.cc", |
| 85 | "base/adaptedvideotracksource.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 86 | "base/audiosource.h", |
| 87 | "base/codec.cc", |
| 88 | "base/codec.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 89 | "base/cryptoparams.h", |
| 90 | "base/device.h", |
Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame] | 91 | "base/mediachannel.cc", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 92 | "base/mediachannel.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 93 | "base/mediaconstants.cc", |
| 94 | "base/mediaconstants.h", |
| 95 | "base/mediaengine.cc", |
| 96 | "base/mediaengine.h", |
| 97 | "base/rtpdataengine.cc", |
| 98 | "base/rtpdataengine.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 99 | "base/rtputils.cc", |
| 100 | "base/rtputils.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 101 | "base/streamparams.cc", |
| 102 | "base/streamparams.h", |
| 103 | "base/turnutils.cc", |
| 104 | "base/turnutils.h", |
| 105 | "base/videoadapter.cc", |
| 106 | "base/videoadapter.h", |
| 107 | "base/videobroadcaster.cc", |
| 108 | "base/videobroadcaster.h", |
| 109 | "base/videocapturer.cc", |
| 110 | "base/videocapturer.h", |
| 111 | "base/videocapturerfactory.h", |
| 112 | "base/videocommon.cc", |
| 113 | "base/videocommon.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 114 | "base/videosourcebase.cc", |
| 115 | "base/videosourcebase.h", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 116 | ] |
| 117 | |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 118 | if (!build_with_chromium && is_clang) { |
| 119 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 120 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 121 | } |
| 122 | |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 123 | deps += [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 124 | ":rtc_h264_profile_id", |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 125 | ":rtc_media_config", |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 126 | ":rtc_vp9_profile", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 127 | "..:webrtc_common", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 128 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 129 | "../api/audio_codecs:audio_codecs_api", |
Åsa Persson | 23eba22 | 2018-10-02 14:47:06 +0200 | [diff] [blame] | 130 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 131 | "../api/video:video_frame", |
| 132 | "../api/video:video_frame_i420", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 133 | "../api/video_codecs:video_codecs_api", |
| 134 | "../call:call_interfaces", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 135 | "../common_video", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 136 | "../modules/audio_processing:audio_processing_statistics", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 137 | "../rtc_base:rtc_base", |
| 138 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 139 | "../rtc_base/system:rtc_export", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 140 | "../rtc_base/third_party/sigslot", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 141 | "//third_party/abseil-cpp/absl/types:optional", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 142 | ] |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 143 | |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 144 | if (!build_with_mozilla) { |
| 145 | deps += [ "../p2p" ] |
| 146 | } |
| 147 | |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 148 | if (is_nacl) { |
| 149 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 150 | } |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 151 | } |
| 152 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 153 | rtc_static_library("rtc_constants") { |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 154 | defines = [] |
| 155 | libs = [] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 156 | deps = [] |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 157 | sources = [ |
mallikarjun82 | 9deda48 | 2017-11-20 17:48:13 +0530 | [diff] [blame] | 158 | "engine/constants.cc", |
charujain | 6674846 | 2017-09-14 13:53:02 -0700 | [diff] [blame] | 159 | "engine/constants.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 160 | ] |
| 161 | } |
| 162 | |
| 163 | rtc_static_library("rtc_internal_video_codecs") { |
Per Kjellander | a0f5f60 | 2018-01-10 15:57:32 +0000 | [diff] [blame] | 164 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 04:31:53 +0200 | [diff] [blame] | 165 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 166 | defines = [] |
| 167 | libs = [] |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 168 | deps = [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 169 | ":rtc_h264_profile_id", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 170 | "../modules/video_coding:video_codec_interface", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 171 | "../system_wrappers:field_trial", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 172 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 173 | ] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 174 | sources = [ |
Magnus Jedvert | 07e0d01 | 2017-10-31 11:24:54 +0100 | [diff] [blame] | 175 | "engine/convert_legacy_video_factory.cc", |
| 176 | "engine/convert_legacy_video_factory.h", |
magjed | dd40702 | 2016-12-01 00:27:27 -0800 | [diff] [blame] | 177 | "engine/internaldecoderfactory.cc", |
| 178 | "engine/internaldecoderfactory.h", |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 179 | "engine/internalencoderfactory.cc", |
| 180 | "engine/internalencoderfactory.h", |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 181 | "engine/multiplexcodecfactory.cc", |
| 182 | "engine/multiplexcodecfactory.h", |
andersc | 063f0c0 | 2017-09-11 11:50:51 -0700 | [diff] [blame] | 183 | "engine/scopedvideodecoder.cc", |
| 184 | "engine/scopedvideodecoder.h", |
magjed | 3f89758 | 2017-08-28 08:05:42 -0700 | [diff] [blame] | 185 | "engine/scopedvideoencoder.cc", |
| 186 | "engine/scopedvideoencoder.h", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 187 | "engine/simulcast_encoder_adapter.cc", |
| 188 | "engine/simulcast_encoder_adapter.h", |
Ilya Nikolaevskiy | c22a3a6 | 2017-10-25 10:04:54 +0200 | [diff] [blame] | 189 | "engine/vp8_encoder_simulcast_proxy.cc", |
| 190 | "engine/vp8_encoder_simulcast_proxy.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 191 | "engine/webrtcvideodecoderfactory.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 192 | "engine/webrtcvideoencoderfactory.h", |
| 193 | ] |
| 194 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 195 | if (!build_with_chromium && is_clang) { |
| 196 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 197 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 198 | } |
| 199 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 200 | include_dirs = [] |
| 201 | |
| 202 | public_configs = [] |
| 203 | deps += [ |
| 204 | ":rtc_constants", |
| 205 | ":rtc_media_base", |
| 206 | "..:webrtc_common", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 207 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 208 | "../api/video:video_frame_i420", |
Anders Carlsson | dd3e0ab | 2018-06-12 11:15:56 +0200 | [diff] [blame] | 209 | "../api/video_codecs:rtc_software_fallback_wrappers", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 210 | "../api/video_codecs:video_codecs_api", |
| 211 | "../call:call_interfaces", |
| 212 | "../call:video_stream_api", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 213 | "../modules/video_coding:video_coding_utility", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 214 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 215 | "../modules/video_coding:webrtc_multiplex", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 216 | "../modules/video_coding:webrtc_vp8", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 217 | "../modules/video_coding:webrtc_vp9", |
| 218 | "../rtc_base:checks", |
| 219 | "../rtc_base:rtc_base_approved", |
| 220 | "../rtc_base:sequenced_task_checker", |
| 221 | "../system_wrappers", |
Ilya Nikolaevskiy | c30a131 | 2018-08-27 11:07:48 +0200 | [diff] [blame] | 222 | "//third_party/abseil-cpp/absl/types:optional", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 223 | "//third_party/libyuv", |
| 224 | ] |
| 225 | } |
| 226 | |
| 227 | rtc_static_library("rtc_audio_video") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 228 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 229 | allow_poison = [ |
| 230 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 231 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 232 | ] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 233 | defines = [] |
| 234 | libs = [] |
| 235 | deps = [ |
Mirko Bonadei | ca913b0 | 2018-01-26 15:11:40 +0100 | [diff] [blame] | 236 | "../modules/audio_processing/aec_dump:aec_dump", |
Patrik Höglund | a97af1f | 2018-01-16 10:11:40 +0100 | [diff] [blame] | 237 | "../modules/video_coding:video_codec_interface", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 238 | "../modules/video_coding:video_coding", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 239 | "../modules/video_coding:video_coding_utility", |
Jonas Olsson | abbe841 | 2018-04-03 13:40:05 +0200 | [diff] [blame] | 240 | "../rtc_base:audio_format_to_string", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 241 | "../rtc_base:checks", |
Artem Titov | a76af0c | 2018-07-23 17:38:12 +0200 | [diff] [blame] | 242 | "../rtc_base/third_party/base64", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 243 | "../system_wrappers:field_trial", |
| 244 | "../system_wrappers:metrics", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 245 | ] |
| 246 | |
| 247 | sources = [ |
| 248 | "engine/adm_helpers.cc", |
| 249 | "engine/adm_helpers.h", |
| 250 | "engine/apm_helpers.cc", |
| 251 | "engine/apm_helpers.h", |
| 252 | "engine/nullwebrtcvideoengine.h", |
| 253 | "engine/payload_type_mapper.cc", |
| 254 | "engine/payload_type_mapper.h", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 255 | "engine/simulcast.cc", |
| 256 | "engine/simulcast.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 257 | "engine/webrtcmediaengine.cc", |
| 258 | "engine/webrtcmediaengine.h", |
| 259 | "engine/webrtcvideocapturer.cc", |
| 260 | "engine/webrtcvideocapturer.h", |
| 261 | "engine/webrtcvideocapturerfactory.cc", |
| 262 | "engine/webrtcvideocapturerfactory.h", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 263 | "engine/webrtcvideodecoderfactory.cc", |
| 264 | "engine/webrtcvideodecoderfactory.h", |
| 265 | "engine/webrtcvideoencoderfactory.cc", |
| 266 | "engine/webrtcvideoencoderfactory.h", |
eladalon | f184138 | 2017-06-12 01:16:46 -0700 | [diff] [blame] | 267 | "engine/webrtcvideoengine.cc", |
| 268 | "engine/webrtcvideoengine.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 269 | "engine/webrtcvoiceengine.cc", |
| 270 | "engine/webrtcvoiceengine.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 271 | ] |
| 272 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 273 | if (!build_with_chromium && is_clang) { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 274 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
kjellander | 660312b | 2016-09-26 06:11:53 -0700 | [diff] [blame] | 275 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 276 | } |
| 277 | |
minyue | 2e03c66 | 2017-02-01 17:31:11 -0800 | [diff] [blame] | 278 | if (rtc_opus_support_120ms_ptime) { |
| 279 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ] |
| 280 | } else { |
| 281 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ] |
| 282 | } |
| 283 | |
kjellander | ec5c906 | 2016-08-19 01:07:30 -0700 | [diff] [blame] | 284 | include_dirs = [] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 285 | |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 286 | public_configs = [] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 287 | if (build_with_chromium) { |
| 288 | deps += [ "../modules/video_capture:video_capture" ] |
| 289 | } else { |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 290 | public_configs += [ ":rtc_media_defines_config" ] |
| 291 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 292 | } |
aleloi | 048cbdd | 2017-05-29 02:56:27 -0700 | [diff] [blame] | 293 | if (rtc_enable_protobuf) { |
| 294 | deps += [ "../modules/audio_processing/aec_dump:aec_dump_impl" ] |
| 295 | } else { |
| 296 | deps += [ "../modules/audio_processing/aec_dump:null_aec_dump_factory" ] |
| 297 | } |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 298 | if (rtc_use_builtin_sw_codecs) { |
| 299 | deps += [ ":rtc_internal_video_codecs" ] |
| 300 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 301 | deps += [ |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 302 | ":rtc_constants", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 303 | ":rtc_media_base", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 304 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 305 | "../api:call_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 306 | "../api:libjingle_peerconnection_api", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 307 | "../api:transport_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 308 | "../api/audio_codecs:audio_codecs_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 309 | "../api/video:video_frame", |
| 310 | "../api/video:video_frame_i420", |
Anders Carlsson | dd3e0ab | 2018-06-12 11:15:56 +0200 | [diff] [blame] | 311 | "../api/video_codecs:rtc_software_fallback_wrappers", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 312 | "../api/video_codecs:video_codecs_api", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 313 | "../call", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 314 | "../call:call_interfaces", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 315 | "../call:video_stream_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 316 | "../common_video:common_video", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 317 | "../modules/audio_device:audio_device", |
Paulina Hensman | 7bd79a0 | 2018-03-15 12:44:12 +0100 | [diff] [blame] | 318 | "../modules/audio_device:audio_device_impl", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 319 | "../modules/audio_mixer:audio_mixer_impl", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 320 | "../modules/audio_processing:audio_processing", |
| 321 | "../modules/video_capture:video_capture_module", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 322 | "../pc:rtc_pc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 323 | "../rtc_base:rtc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 324 | "../rtc_base:rtc_task_queue", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 325 | "../rtc_base:stringutils", |
Åsa Persson | 1a35fbd | 2018-10-12 17:36:57 +0200 | [diff] [blame^] | 326 | "../rtc_base/experiments:normalize_simulcast_size_experiment", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 327 | "../system_wrappers", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 328 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 329 | ] |
| 330 | } |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 331 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 332 | rtc_static_library("rtc_data") { |
| 333 | defines = [] |
| 334 | deps = [] |
| 335 | |
| 336 | if (rtc_enable_sctp) { |
| 337 | sources = [ |
| 338 | "sctp/sctptransport.cc", |
| 339 | "sctp/sctptransport.h", |
| 340 | "sctp/sctptransportinternal.h", |
| 341 | ] |
Kári Tristan Helgason | 4d3e24a | 2017-12-01 15:26:41 +0100 | [diff] [blame] | 342 | } else { |
| 343 | # libtool on mac does not like empty targets. |
| 344 | sources = [ |
Mirko Bonadei | 6c8e666 | 2017-12-13 07:40:54 +0100 | [diff] [blame] | 345 | "sctp/noop.cc", |
Kári Tristan Helgason | 4d3e24a | 2017-12-01 15:26:41 +0100 | [diff] [blame] | 346 | ] |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 347 | } |
| 348 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 349 | if (!build_with_chromium && is_clang) { |
| 350 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 351 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 352 | } |
| 353 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 354 | if (rtc_enable_sctp && rtc_build_usrsctp) { |
| 355 | include_dirs = [ |
| 356 | # TODO(jiayl): move this into the public_configs of |
| 357 | # //third_party/usrsctp/BUILD.gn. |
| 358 | "//third_party/usrsctp/usrsctplib", |
| 359 | ] |
| 360 | deps += [ "//third_party/usrsctp" ] |
| 361 | } |
| 362 | |
| 363 | deps += [ |
| 364 | ":rtc_media_base", |
| 365 | "..:webrtc_common", |
| 366 | "../api:call_api", |
| 367 | "../api:transport_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 368 | "../p2p:rtc_p2p", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 369 | "../rtc_base:rtc_base", |
| 370 | "../rtc_base:rtc_base_approved", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 371 | "../rtc_base/third_party/sigslot", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 372 | "../system_wrappers", |
| 373 | ] |
| 374 | } |
| 375 | |
| 376 | rtc_source_set("rtc_media") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 377 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 378 | allow_poison = [ |
| 379 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 380 | "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove. |
| 381 | ] |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 382 | deps = [ |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 383 | ":rtc_audio_video", |
| 384 | ":rtc_data", |
| 385 | ] |
| 386 | } |
| 387 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 388 | if (rtc_include_tests) { |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 389 | rtc_source_set("rtc_media_tests_utils") { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 390 | testonly = true |
| 391 | |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 392 | defines = [] |
kjellander | ec5c906 | 2016-08-19 01:07:30 -0700 | [diff] [blame] | 393 | include_dirs = [] |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 394 | deps = [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 395 | ":rtc_audio_video", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 396 | "../api:libjingle_peerconnection_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 397 | "../api/video:video_frame_i420", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 398 | "../call:video_stream_api", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 399 | "../common_video:common_video", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 400 | "../modules/audio_coding:rent_a_codec", |
| 401 | "../modules/audio_processing:audio_processing", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 402 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 403 | "../modules/video_coding:video_codec_interface", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 404 | "../modules/video_coding:video_coding_utility", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 405 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 406 | "../rtc_base:checks", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 407 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 408 | "../rtc_base:stringutils", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 409 | "//third_party/abseil-cpp/absl/memory", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 410 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 411 | sources = [ |
Niels Möller | a6cc0f9 | 2018-02-12 17:14:55 +0100 | [diff] [blame] | 412 | "base/fakeframesource.cc", |
| 413 | "base/fakeframesource.h", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 414 | "base/fakemediaengine.h", |
| 415 | "base/fakenetworkinterface.h", |
jbauch | 5869f50 | 2017-06-29 12:31:36 -0700 | [diff] [blame] | 416 | "base/fakertp.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 417 | "base/fakertp.h", |
Tommi | 1829af6 | 2018-02-06 09:29:17 +0100 | [diff] [blame] | 418 | "base/fakevideocapturer.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 419 | "base/fakevideocapturer.h", |
Mirko Bonadei | 17aff35 | 2018-07-26 12:20:40 +0200 | [diff] [blame] | 420 | "base/fakevideorenderer.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 421 | "base/fakevideorenderer.h", |
| 422 | "base/testutils.cc", |
| 423 | "base/testutils.h", |
| 424 | "engine/fakewebrtccall.cc", |
| 425 | "engine/fakewebrtccall.h", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 426 | "engine/fakewebrtcdeviceinfo.h", |
| 427 | "engine/fakewebrtcvcmfactory.h", |
| 428 | "engine/fakewebrtcvideocapturemodule.h", |
Anders Carlsson | 6753795 | 2018-05-03 11:28:29 +0200 | [diff] [blame] | 429 | "engine/fakewebrtcvideoengine.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 430 | "engine/fakewebrtcvideoengine.h", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 431 | ] |
| 432 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 433 | if (!build_with_chromium && is_clang) { |
| 434 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 435 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 436 | } |
| 437 | |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 438 | if (rtc_use_h264) { |
| 439 | defines += [ "WEBRTC_USE_H264" ] |
| 440 | } |
| 441 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 442 | deps += [ |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 443 | ":rtc_internal_video_codecs", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 444 | ":rtc_media", |
| 445 | ":rtc_media_base", |
| 446 | "..:webrtc_common", |
| 447 | "../api:call_api", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 448 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 449 | "../api/video:video_frame", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 450 | "../api/video_codecs:video_codecs_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 451 | "../call:call_interfaces", |
Sebastian Jansson | 8f83b42 | 2018-02-21 13:07:13 +0100 | [diff] [blame] | 452 | "../call:mock_rtp_interfaces", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 453 | "../rtc_base:rtc_base", |
| 454 | "../rtc_base:rtc_base_approved", |
| 455 | "../rtc_base:rtc_base_tests_utils", |
Tommi | 6856156 | 2018-02-13 19:47:50 +0100 | [diff] [blame] | 456 | "../rtc_base:rtc_task_queue_for_test", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 457 | "../rtc_base/third_party/sigslot", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 458 | "../test:test_support", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 459 | "//testing/gtest", |
| 460 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 461 | } |
| 462 | |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 463 | rtc_media_unittests_resources = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 464 | "../resources/media/captured-320x240-2s-48.frames", |
| 465 | "../resources/media/faces.1280x720_P420.yuv", |
| 466 | "../resources/media/faces_I420.jpg", |
| 467 | "../resources/media/faces_I422.jpg", |
| 468 | "../resources/media/faces_I444.jpg", |
| 469 | "../resources/media/faces_I411.jpg", |
| 470 | "../resources/media/faces_I400.jpg", |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 471 | ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 472 | |
| 473 | if (is_ios) { |
| 474 | bundle_data("rtc_media_unittests_bundle_data") { |
| 475 | testonly = true |
| 476 | sources = rtc_media_unittests_resources |
| 477 | outputs = [ |
| 478 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 479 | ] |
| 480 | } |
| 481 | } |
| 482 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 483 | rtc_test("rtc_media_unittests") { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 484 | testonly = true |
| 485 | |
johan | 073ece4 | 2016-08-26 02:59:47 -0700 | [diff] [blame] | 486 | defines = [] |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 487 | deps = [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 488 | ":rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 489 | ":rtc_constants", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 490 | ":rtc_data", |
Jonas Oreland | 49ac595 | 2018-09-26 16:04:32 +0200 | [diff] [blame] | 491 | "../api/units:time_delta", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 492 | "../api/video:video_frame_i420", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 493 | "../modules/audio_processing:mocks", |
Åsa Persson | 23cd45a | 2018-07-03 10:40:40 +0200 | [diff] [blame] | 494 | "../modules/rtp_rtcp", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 495 | "../modules/video_coding:video_codec_interface", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 496 | "../modules/video_coding:webrtc_vp8", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 497 | "../pc:rtc_pc", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 498 | "../pc:rtc_pc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 499 | "../rtc_base:checks", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 500 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 501 | "../rtc_base:stringutils", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 502 | "../test:field_trial", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 503 | "../test:test_common", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 504 | "//third_party/abseil-cpp/absl/memory", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 505 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 506 | sources = [ |
| 507 | "base/codec_unittest.cc", |
| 508 | "base/rtpdataengine_unittest.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 509 | "base/rtputils_unittest.cc", |
| 510 | "base/streamparams_unittest.cc", |
| 511 | "base/turnutils_unittest.cc", |
| 512 | "base/videoadapter_unittest.cc", |
| 513 | "base/videobroadcaster_unittest.cc", |
| 514 | "base/videocapturer_unittest.cc", |
| 515 | "base/videocommon_unittest.cc", |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 516 | "engine/apm_helpers_unittest.cc", |
magjed | dd40702 | 2016-12-01 00:27:27 -0800 | [diff] [blame] | 517 | "engine/internaldecoderfactory_unittest.cc", |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 518 | "engine/multiplexcodecfactory_unittest.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 519 | "engine/nullwebrtcvideoengine_unittest.cc", |
ossu | c54071d | 2016-08-17 02:45:41 -0700 | [diff] [blame] | 520 | "engine/payload_type_mapper_unittest.cc", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 521 | "engine/simulcast_encoder_adapter_unittest.cc", |
Åsa Persson | 31cb8f9 | 2018-06-27 10:44:56 +0200 | [diff] [blame] | 522 | "engine/simulcast_unittest.cc", |
Ilya Nikolaevskiy | c22a3a6 | 2017-10-25 10:04:54 +0200 | [diff] [blame] | 523 | "engine/vp8_encoder_simulcast_proxy_unittest.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 524 | "engine/webrtcmediaengine_unittest.cc", |
| 525 | "engine/webrtcvideocapturer_unittest.cc", |
noahric | be850e1 | 2017-01-20 01:07:26 -0800 | [diff] [blame] | 526 | "engine/webrtcvideoencoderfactory_unittest.cc", |
eladalon | f184138 | 2017-06-12 01:16:46 -0700 | [diff] [blame] | 527 | "engine/webrtcvideoengine_unittest.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 528 | ] |
| 529 | |
oprypin | 4519752 | 2017-06-22 01:47:20 -0700 | [diff] [blame] | 530 | # TODO(kthelgason): Reenable this test on iOS. |
| 531 | # See bugs.webrtc.org/5569 |
| 532 | if (!is_ios) { |
| 533 | sources += [ "engine/webrtcvoiceengine_unittest.cc" ] |
| 534 | } |
| 535 | |
deadbeef | 40610e2 | 2016-12-22 10:53:38 -0800 | [diff] [blame] | 536 | if (rtc_enable_sctp) { |
deadbeef | 953c2ce | 2017-01-09 14:53:41 -0800 | [diff] [blame] | 537 | sources += [ "sctp/sctptransport_unittest.cc" ] |
deadbeef | 40610e2 | 2016-12-22 10:53:38 -0800 | [diff] [blame] | 538 | } |
| 539 | |
johan | 073ece4 | 2016-08-26 02:59:47 -0700 | [diff] [blame] | 540 | if (rtc_use_h264) { |
| 541 | defines += [ "WEBRTC_USE_H264" ] |
| 542 | } |
ossu | 11bfc53 | 2017-02-16 05:37:06 -0800 | [diff] [blame] | 543 | |
| 544 | if (rtc_opus_support_120ms_ptime) { |
| 545 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ] |
| 546 | } else { |
| 547 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ] |
| 548 | } |
| 549 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 550 | if (!build_with_chromium && is_clang) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 551 | suppressed_configs += [ |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 552 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 553 | "//build/config/clang:find_bad_constructs", |
| 554 | ] |
| 555 | } |
| 556 | |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 557 | data = rtc_media_unittests_resources |
| 558 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 559 | if (is_android) { |
| 560 | deps += [ "//testing/android/native_test:native_test_support" ] |
kjellander | 28a0ffd | 2016-08-24 07:48:42 -0700 | [diff] [blame] | 561 | shard_timeout = 900 |
| 562 | } |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 563 | |
| 564 | if (is_ios) { |
| 565 | deps += [ ":rtc_media_unittests_bundle_data" ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 566 | } |
| 567 | |
| 568 | deps += [ |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 569 | ":rtc_internal_video_codecs", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 570 | ":rtc_media", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 571 | ":rtc_media_base", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 572 | ":rtc_media_tests_utils", |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 573 | ":rtc_vp9_profile", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 574 | "../api:create_simulcast_test_fixture_api", |
Seth Hampson | 24722b3 | 2017-12-22 09:36:42 -0800 | [diff] [blame] | 575 | "../api:libjingle_peerconnection_api", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 576 | "../api:mock_video_codec_factory", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 577 | "../api:simulcast_test_fixture_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 578 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 579 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 580 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 581 | "../api/video:video_frame", |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 582 | "../api/video_codecs:builtin_video_decoder_factory", |
| 583 | "../api/video_codecs:builtin_video_encoder_factory", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 584 | "../api/video_codecs:video_codecs_api", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 585 | "../audio", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 586 | "../call:call_interfaces", |
| 587 | "../common_video:common_video", |
| 588 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 589 | "../logging:rtc_event_log_impl_base", |
aleloi | 5de52fd | 2016-11-10 01:05:34 -0800 | [diff] [blame] | 590 | "../modules/audio_device:mock_audio_device", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 591 | "../modules/audio_processing:audio_processing", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 592 | "../modules/video_coding:simulcast_test_fixture_impl", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 593 | "../p2p:p2p_test_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 594 | "../rtc_base:rtc_base", |
| 595 | "../rtc_base:rtc_base_approved", |
| 596 | "../rtc_base:rtc_base_tests_main", |
| 597 | "../rtc_base:rtc_base_tests_utils", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 598 | "../test:audio_codec_mocks", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 599 | "../test:test_support", |
Ilya Nikolaevskiy | c22a3a6 | 2017-10-25 10:04:54 +0200 | [diff] [blame] | 600 | "../test:video_test_common", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 601 | ] |
| 602 | } |
| 603 | } |