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", |
Fredrik Solenberg | f693bfa | 2018-12-11 12:22:10 +0100 | [diff] [blame] | 43 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 44 | "../rtc_base:rtc_base", |
| 45 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 276827c | 2018-10-16 14:13:50 +0200 | [diff] [blame] | 46 | "../rtc_base/system:rtc_export", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 47 | "//third_party/abseil-cpp/absl/types:optional", |
zhihuang | 130ca7e | 2017-06-21 01:02:59 -0700 | [diff] [blame] | 48 | ] |
| 49 | } |
| 50 | |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 51 | rtc_source_set("rtc_media_config") { |
| 52 | visibility = [ "*" ] |
| 53 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 54 | "base/media_config.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 55 | "base/mediaconfig.h", |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 56 | ] |
| 57 | } |
| 58 | |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 59 | rtc_source_set("rtc_vp9_profile") { |
Emircan Uysaler | f73d40f | 2018-12-04 11:00:52 -0500 | [diff] [blame] | 60 | visibility = [ "*" ] |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 61 | sources = [ |
| 62 | "base/vp9_profile.cc", |
| 63 | "base/vp9_profile.h", |
| 64 | ] |
| 65 | |
| 66 | deps = [ |
| 67 | "..:webrtc_common", |
| 68 | "../api/video_codecs:video_codecs_api", |
| 69 | "../rtc_base:rtc_base_approved", |
| 70 | "//third_party/abseil-cpp/absl/types:optional", |
| 71 | ] |
| 72 | } |
| 73 | |
zhihuang | ab97e18 | 2017-06-22 01:28:59 -0700 | [diff] [blame] | 74 | rtc_static_library("rtc_media_base") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 75 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 76 | defines = [] |
| 77 | libs = [] |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 78 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 79 | "../api:array_view", |
Niels Möller | a6fe261 | 2018-01-19 11:28:54 +0100 | [diff] [blame] | 80 | "../api:audio_options_api", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 81 | "../rtc_base:checks", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 82 | "../rtc_base:rtc_base_approved", |
| 83 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 84 | "../rtc_base:sanitizer", |
Tommi | 1829af6 | 2018-02-06 09:29:17 +0100 | [diff] [blame] | 85 | "../rtc_base:sequenced_task_checker", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 86 | "../rtc_base:stringutils", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 87 | ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 88 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 89 | "base/adapted_video_track_source.cc", |
| 90 | "base/adapted_video_track_source.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 91 | "base/adaptedvideotracksource.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 92 | "base/audio_source.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 93 | "base/audiosource.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 94 | "base/codec.cc", |
| 95 | "base/codec.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 96 | "base/device.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 97 | "base/media_channel.cc", |
| 98 | "base/media_channel.h", |
| 99 | "base/media_constants.cc", |
| 100 | "base/media_constants.h", |
| 101 | "base/media_engine.cc", |
| 102 | "base/media_engine.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 103 | "base/mediachannel.h", |
| 104 | "base/mediaconstants.h", |
| 105 | "base/mediaengine.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 106 | "base/rid_description.cc", |
| 107 | "base/rid_description.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 108 | "base/riddescription.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 109 | "base/rtp_data_engine.cc", |
| 110 | "base/rtp_data_engine.h", |
| 111 | "base/rtp_utils.cc", |
| 112 | "base/rtp_utils.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 113 | "base/rtpdataengine.h", |
| 114 | "base/rtputils.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 115 | "base/stream_params.cc", |
| 116 | "base/stream_params.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 117 | "base/streamparams.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 118 | "base/turn_utils.cc", |
| 119 | "base/turn_utils.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 120 | "base/turnutils.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 121 | "base/video_adapter.cc", |
| 122 | "base/video_adapter.h", |
| 123 | "base/video_broadcaster.cc", |
| 124 | "base/video_broadcaster.h", |
| 125 | "base/video_capturer.cc", |
| 126 | "base/video_capturer.h", |
| 127 | "base/video_common.cc", |
| 128 | "base/video_common.h", |
| 129 | "base/video_source_base.cc", |
| 130 | "base/video_source_base.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 131 | "base/videoadapter.h", |
| 132 | "base/videobroadcaster.h", |
| 133 | "base/videocapturer.h", |
| 134 | "base/videocommon.h", |
| 135 | "base/videosourcebase.h", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 136 | ] |
| 137 | |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 138 | if (!build_with_chromium && is_clang) { |
| 139 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 140 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 141 | } |
| 142 | |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 143 | deps += [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 144 | ":rtc_h264_profile_id", |
Niels Möller | 6daa278 | 2018-01-23 10:37:42 +0100 | [diff] [blame] | 145 | ":rtc_media_config", |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 146 | ":rtc_vp9_profile", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 147 | "..:webrtc_common", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 148 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 149 | "../api/audio_codecs:audio_codecs_api", |
Åsa Persson | 23eba22 | 2018-10-02 14:47:06 +0200 | [diff] [blame] | 150 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 151 | "../api/video:video_frame", |
| 152 | "../api/video:video_frame_i420", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 153 | "../api/video_codecs:video_codecs_api", |
| 154 | "../call:call_interfaces", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 155 | "../common_video", |
Patrik Höglund | aba85d1 | 2017-11-28 15:46:08 +0100 | [diff] [blame] | 156 | "../modules/audio_processing:audio_processing_statistics", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 157 | "../rtc_base:rtc_base", |
| 158 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 159 | "../rtc_base/system:rtc_export", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 160 | "../rtc_base/third_party/sigslot", |
Niels Möller | 3c7d599 | 2018-10-19 15:29:54 +0200 | [diff] [blame] | 161 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 162 | "//third_party/abseil-cpp/absl/types:optional", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 163 | ] |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 164 | |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 165 | if (!build_with_mozilla) { |
| 166 | deps += [ "../p2p" ] |
| 167 | } |
| 168 | |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 169 | if (is_nacl) { |
| 170 | deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 171 | } |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 172 | } |
| 173 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 174 | rtc_static_library("rtc_constants") { |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 175 | defines = [] |
| 176 | libs = [] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 177 | deps = [] |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 178 | sources = [ |
mallikarjun82 | 9deda48 | 2017-11-20 17:48:13 +0530 | [diff] [blame] | 179 | "engine/constants.cc", |
charujain | 6674846 | 2017-09-14 13:53:02 -0700 | [diff] [blame] | 180 | "engine/constants.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 181 | ] |
| 182 | } |
| 183 | |
Jonathan Yu | 9a5da49 | 2018-10-19 00:51:18 -0700 | [diff] [blame] | 184 | rtc_static_library("rtc_simulcast_encoder_adapter") { |
| 185 | visibility = [ "*" ] |
| 186 | defines = [] |
| 187 | libs = [] |
| 188 | sources = [ |
| 189 | "engine/simulcast_encoder_adapter.cc", |
| 190 | "engine/simulcast_encoder_adapter.h", |
| 191 | ] |
| 192 | deps = [ |
| 193 | "../api/video:video_bitrate_allocation", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 194 | "../api/video:video_frame", |
Jonathan Yu | 9a5da49 | 2018-10-19 00:51:18 -0700 | [diff] [blame] | 195 | "../api/video:video_frame_i420", |
| 196 | "../api/video_codecs:video_codecs_api", |
| 197 | "../modules/video_coding:video_codec_interface", |
| 198 | "../modules/video_coding:video_coding_utility", |
| 199 | "../rtc_base:checks", |
| 200 | "../rtc_base:rtc_base_approved", |
| 201 | "../rtc_base:sequenced_task_checker", |
| 202 | "../system_wrappers", |
| 203 | "../system_wrappers:field_trial", |
| 204 | "//third_party/abseil-cpp/absl/types:optional", |
| 205 | "//third_party/libyuv", |
| 206 | ] |
| 207 | if (!build_with_chromium && is_clang) { |
| 208 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 209 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 210 | } |
| 211 | } |
| 212 | |
Florent Castelli | e7862cc | 2018-12-06 13:38:24 +0100 | [diff] [blame] | 213 | rtc_static_library("rtc_encoder_simulcast_proxy") { |
| 214 | visibility = [ "*" ] |
| 215 | defines = [] |
| 216 | libs = [] |
| 217 | sources = [ |
| 218 | "engine/encoder_simulcast_proxy.cc", |
| 219 | "engine/encoder_simulcast_proxy.h", |
| 220 | ] |
| 221 | deps = [ |
| 222 | ":rtc_simulcast_encoder_adapter", |
| 223 | "../:webrtc_common", |
| 224 | "../api/video:video_bitrate_allocation", |
| 225 | "../api/video:video_frame", |
| 226 | "../api/video_codecs:video_codecs_api", |
| 227 | "../modules/video_coding:video_codec_interface", |
| 228 | ] |
| 229 | if (!build_with_chromium && is_clang) { |
| 230 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 231 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 232 | } |
| 233 | } |
| 234 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 235 | rtc_static_library("rtc_internal_video_codecs") { |
Per Kjellander | a0f5f60 | 2018-01-10 15:57:32 +0000 | [diff] [blame] | 236 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 04:31:53 +0200 | [diff] [blame] | 237 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 238 | defines = [] |
| 239 | libs = [] |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 240 | deps = [ |
Florent Castelli | e7862cc | 2018-12-06 13:38:24 +0100 | [diff] [blame] | 241 | ":rtc_encoder_simulcast_proxy", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 242 | ":rtc_h264_profile_id", |
Jonathan Yu | 9a5da49 | 2018-10-19 00:51:18 -0700 | [diff] [blame] | 243 | ":rtc_simulcast_encoder_adapter", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 244 | "../:webrtc_common", |
| 245 | "../api/video:encoded_image", |
| 246 | "../api/video:video_frame", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 247 | "../modules/video_coding:video_codec_interface", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 248 | "//third_party/abseil-cpp/absl/memory", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 249 | ] |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 250 | sources = [ |
Emircan Uysaler | 7c03bdc | 2019-01-16 15:07:56 -0500 | [diff] [blame] | 251 | "engine/fake_video_codec_factory.cc", |
| 252 | "engine/fake_video_codec_factory.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 253 | "engine/internal_decoder_factory.cc", |
| 254 | "engine/internal_decoder_factory.h", |
| 255 | "engine/internal_encoder_factory.cc", |
| 256 | "engine/internal_encoder_factory.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 257 | "engine/internaldecoderfactory.h", |
| 258 | "engine/internalencoderfactory.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 259 | "engine/multiplex_codec_factory.cc", |
| 260 | "engine/multiplex_codec_factory.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 261 | "engine/multiplexcodecfactory.h", |
Jonathan Yu | 327b753 | 2018-10-24 17:21:36 -0700 | [diff] [blame] | 262 | |
| 263 | # TODO(bugs.webrtc.org/7925): stop exporting this header once downstream |
Florent Castelli | e7862cc | 2018-12-06 13:38:24 +0100 | [diff] [blame] | 264 | # targets depend on :rtc_encoder_simulcast_proxy directly. |
| 265 | "engine/encoder_simulcast_proxy.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 266 | ] |
| 267 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 268 | if (!build_with_chromium && is_clang) { |
| 269 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 270 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 271 | } |
| 272 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 273 | include_dirs = [] |
| 274 | |
| 275 | public_configs = [] |
| 276 | deps += [ |
| 277 | ":rtc_constants", |
| 278 | ":rtc_media_base", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 279 | "../api/video:video_bitrate_allocation", |
Niels Möller | 22b70ff | 2018-11-20 11:06:58 +0100 | [diff] [blame] | 280 | "../api/video:video_frame", |
Anders Carlsson | dd3e0ab | 2018-06-12 11:15:56 +0200 | [diff] [blame] | 281 | "../api/video_codecs:rtc_software_fallback_wrappers", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 282 | "../api/video_codecs:video_codecs_api", |
| 283 | "../call:call_interfaces", |
| 284 | "../call:video_stream_api", |
Emircan Uysaler | 7c03bdc | 2019-01-16 15:07:56 -0500 | [diff] [blame] | 285 | "../modules:module_api", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 286 | "../modules/video_coding:webrtc_h264", |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 287 | "../modules/video_coding:webrtc_multiplex", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 288 | "../modules/video_coding:webrtc_vp8", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 289 | "../modules/video_coding:webrtc_vp9", |
| 290 | "../rtc_base:checks", |
Anders Carlsson | 0109295 | 2018-12-11 15:44:54 +0100 | [diff] [blame] | 291 | "../rtc_base:deprecation", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 292 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 276827c | 2018-10-16 14:13:50 +0200 | [diff] [blame] | 293 | "../rtc_base/system:rtc_export", |
Emircan Uysaler | 7c03bdc | 2019-01-16 15:07:56 -0500 | [diff] [blame] | 294 | "../test:fake_video_codecs", |
Niels Möller | 039743e | 2018-10-23 10:07:25 +0200 | [diff] [blame] | 295 | "//third_party/abseil-cpp/absl/strings", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 296 | ] |
| 297 | } |
| 298 | |
| 299 | rtc_static_library("rtc_audio_video") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 300 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 14:23:23 +0100 | [diff] [blame] | 301 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 302 | defines = [] |
| 303 | libs = [] |
| 304 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 305 | "../api/video:video_bitrate_allocation", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 306 | "../api/video:video_bitrate_allocator_factory", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 307 | "../modules/audio_processing:api", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 308 | "../modules/audio_processing:gain_control_interface", |
Mirko Bonadei | ca913b0 | 2018-01-26 15:11:40 +0100 | [diff] [blame] | 309 | "../modules/audio_processing/aec_dump:aec_dump", |
Patrik Höglund | a97af1f | 2018-01-16 10:11:40 +0100 | [diff] [blame] | 310 | "../modules/video_coding:video_codec_interface", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 311 | "../modules/video_coding:video_coding", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 312 | "../modules/video_coding:video_coding_utility", |
Jonas Olsson | abbe841 | 2018-04-03 13:40:05 +0200 | [diff] [blame] | 313 | "../rtc_base:audio_format_to_string", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 314 | "../rtc_base:checks", |
Mirko Bonadei | 276827c | 2018-10-16 14:13:50 +0200 | [diff] [blame] | 315 | "../rtc_base/system:rtc_export", |
Artem Titov | a76af0c | 2018-07-23 17:38:12 +0200 | [diff] [blame] | 316 | "../rtc_base/third_party/base64", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 317 | "../system_wrappers:field_trial", |
| 318 | "../system_wrappers:metrics", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 319 | ] |
| 320 | |
| 321 | sources = [ |
| 322 | "engine/adm_helpers.cc", |
| 323 | "engine/adm_helpers.h", |
| 324 | "engine/apm_helpers.cc", |
| 325 | "engine/apm_helpers.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 326 | "engine/null_webrtc_video_engine.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 327 | "engine/nullwebrtcvideoengine.h", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 328 | "engine/payload_type_mapper.cc", |
| 329 | "engine/payload_type_mapper.h", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 330 | "engine/simulcast.cc", |
| 331 | "engine/simulcast.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 332 | "engine/webrtc_media_engine.cc", |
| 333 | "engine/webrtc_media_engine.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 334 | "engine/webrtc_video_engine.cc", |
| 335 | "engine/webrtc_video_engine.h", |
| 336 | "engine/webrtc_voice_engine.cc", |
| 337 | "engine/webrtc_voice_engine.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 338 | "engine/webrtcmediaengine.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 339 | "engine/webrtcvideoengine.h", |
| 340 | "engine/webrtcvoiceengine.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 341 | ] |
| 342 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 343 | if (!build_with_chromium && is_clang) { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 344 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
kjellander | 660312b | 2016-09-26 06:11:53 -0700 | [diff] [blame] | 345 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 346 | } |
| 347 | |
minyue | 2e03c66 | 2017-02-01 17:31:11 -0800 | [diff] [blame] | 348 | if (rtc_opus_support_120ms_ptime) { |
| 349 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ] |
| 350 | } else { |
| 351 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ] |
| 352 | } |
| 353 | |
kjellander | ec5c906 | 2016-08-19 01:07:30 -0700 | [diff] [blame] | 354 | include_dirs = [] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 355 | |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 356 | public_configs = [] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 357 | if (build_with_chromium) { |
| 358 | deps += [ "../modules/video_capture:video_capture" ] |
| 359 | } else { |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 360 | public_configs += [ ":rtc_media_defines_config" ] |
| 361 | deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 362 | } |
aleloi | 048cbdd | 2017-05-29 02:56:27 -0700 | [diff] [blame] | 363 | if (rtc_enable_protobuf) { |
| 364 | deps += [ "../modules/audio_processing/aec_dump:aec_dump_impl" ] |
| 365 | } else { |
| 366 | deps += [ "../modules/audio_processing/aec_dump:null_aec_dump_factory" ] |
| 367 | } |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 368 | deps += [ |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 369 | ":rtc_constants", |
magjed | 0928a3c | 2016-11-25 00:40:18 -0800 | [diff] [blame] | 370 | ":rtc_media_base", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 371 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 372 | "../api:call_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 373 | "../api:libjingle_peerconnection_api", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 374 | "../api:transport_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 375 | "../api/audio_codecs:audio_codecs_api", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 376 | "../api/video:builtin_video_bitrate_allocator_factory", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 377 | "../api/video:video_frame", |
| 378 | "../api/video:video_frame_i420", |
Anders Carlsson | dd3e0ab | 2018-06-12 11:15:56 +0200 | [diff] [blame] | 379 | "../api/video_codecs:rtc_software_fallback_wrappers", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 380 | "../api/video_codecs:video_codecs_api", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 381 | "../call", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 382 | "../call:call_interfaces", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 383 | "../call:video_stream_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 384 | "../common_video:common_video", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 385 | "../modules/audio_device:audio_device", |
Paulina Hensman | 7bd79a0 | 2018-03-15 12:44:12 +0100 | [diff] [blame] | 386 | "../modules/audio_device:audio_device_impl", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 387 | "../modules/audio_mixer:audio_mixer_impl", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 388 | "../modules/audio_processing:audio_processing", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 389 | "../pc:rtc_pc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 390 | "../rtc_base:rtc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 391 | "../rtc_base:rtc_task_queue", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 392 | "../rtc_base:stringutils", |
Åsa Persson | 1a35fbd | 2018-10-12 17:36:57 +0200 | [diff] [blame] | 393 | "../rtc_base/experiments:normalize_simulcast_size_experiment", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 394 | "../system_wrappers", |
Sebastian Jansson | fa0aa39 | 2018-11-16 09:54:32 +0100 | [diff] [blame] | 395 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 3c7d599 | 2018-10-19 15:29:54 +0200 | [diff] [blame] | 396 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 397 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 398 | ] |
| 399 | } |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 400 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 401 | rtc_static_library("rtc_data") { |
| 402 | defines = [] |
| 403 | deps = [] |
| 404 | |
| 405 | if (rtc_enable_sctp) { |
| 406 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 407 | "sctp/sctp_transport.cc", |
| 408 | "sctp/sctp_transport.h", |
| 409 | "sctp/sctp_transport_internal.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 410 | "sctp/sctptransport.h", |
| 411 | "sctp/sctptransportinternal.h", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 412 | ] |
Kári Tristan Helgason | 4d3e24a | 2017-12-01 15:26:41 +0100 | [diff] [blame] | 413 | } else { |
| 414 | # libtool on mac does not like empty targets. |
| 415 | sources = [ |
Mirko Bonadei | 6c8e666 | 2017-12-13 07:40:54 +0100 | [diff] [blame] | 416 | "sctp/noop.cc", |
Kári Tristan Helgason | 4d3e24a | 2017-12-01 15:26:41 +0100 | [diff] [blame] | 417 | ] |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 418 | } |
| 419 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 420 | if (!build_with_chromium && is_clang) { |
| 421 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 422 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 423 | } |
| 424 | |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 425 | if (rtc_enable_sctp && rtc_build_usrsctp) { |
| 426 | include_dirs = [ |
| 427 | # TODO(jiayl): move this into the public_configs of |
| 428 | # //third_party/usrsctp/BUILD.gn. |
| 429 | "//third_party/usrsctp/usrsctplib", |
| 430 | ] |
| 431 | deps += [ "//third_party/usrsctp" ] |
| 432 | } |
| 433 | |
| 434 | deps += [ |
| 435 | ":rtc_media_base", |
| 436 | "..:webrtc_common", |
| 437 | "../api:call_api", |
| 438 | "../api:transport_api", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 439 | "../p2p:rtc_p2p", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 440 | "../rtc_base:rtc_base", |
| 441 | "../rtc_base:rtc_base_approved", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 442 | "../rtc_base/third_party/sigslot", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 443 | "../system_wrappers", |
| 444 | ] |
| 445 | } |
| 446 | |
| 447 | rtc_source_set("rtc_media") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 448 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 14:23:23 +0100 | [diff] [blame] | 449 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 450 | deps = [ |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 451 | ":rtc_audio_video", |
| 452 | ":rtc_data", |
| 453 | ] |
| 454 | } |
| 455 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 456 | if (rtc_include_tests) { |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 457 | rtc_source_set("rtc_media_tests_utils") { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 458 | testonly = true |
| 459 | |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 460 | defines = [] |
kjellander | ec5c906 | 2016-08-19 01:07:30 -0700 | [diff] [blame] | 461 | include_dirs = [] |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 462 | deps = [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 463 | ":rtc_audio_video", |
Jonathan Yu | 9a5da49 | 2018-10-19 00:51:18 -0700 | [diff] [blame] | 464 | ":rtc_simulcast_encoder_adapter", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 465 | "../api:libjingle_peerconnection_api", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 466 | "../api/video:encoded_image", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 467 | "../api/video:video_frame_i420", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 468 | "../call:video_stream_api", |
Patrik Höglund | be214a2 | 2018-01-04 12:14:35 +0100 | [diff] [blame] | 469 | "../common_video:common_video", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 470 | "../modules/audio_processing:api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 471 | "../modules/audio_processing:audio_processing", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 472 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 473 | "../modules/video_coding:video_codec_interface", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 474 | "../modules/video_coding:video_coding_utility", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 475 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 476 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 477 | "../rtc_base:gunit_helpers", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 478 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 479 | "../rtc_base:stringutils", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 480 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 69807e8 | 2018-10-30 22:23:02 +0100 | [diff] [blame] | 481 | "//third_party/abseil-cpp/absl/strings", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 482 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 483 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 484 | "base/fake_frame_source.cc", |
| 485 | "base/fake_frame_source.h", |
| 486 | "base/fake_media_engine.cc", |
| 487 | "base/fake_media_engine.h", |
| 488 | "base/fake_network_interface.h", |
| 489 | "base/fake_rtp.cc", |
| 490 | "base/fake_rtp.h", |
| 491 | "base/fake_video_capturer.cc", |
| 492 | "base/fake_video_capturer.h", |
| 493 | "base/fake_video_renderer.cc", |
| 494 | "base/fake_video_renderer.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 495 | "base/fakeframesource.h", |
| 496 | "base/fakemediaengine.h", |
| 497 | "base/fakenetworkinterface.h", |
| 498 | "base/fakertp.h", |
| 499 | "base/fakevideocapturer.h", |
| 500 | "base/fakevideorenderer.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 501 | "base/test_utils.cc", |
| 502 | "base/test_utils.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 503 | "base/testutils.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 504 | "engine/fake_webrtc_call.cc", |
| 505 | "engine/fake_webrtc_call.h", |
| 506 | "engine/fake_webrtc_video_engine.cc", |
| 507 | "engine/fake_webrtc_video_engine.h", |
Steve Anton | aec15aa | 2019-01-11 09:13:07 -0800 | [diff] [blame] | 508 | "engine/fakewebrtccall.h", |
| 509 | "engine/fakewebrtcvideoengine.h", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 510 | ] |
| 511 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 512 | if (!build_with_chromium && is_clang) { |
| 513 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 514 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 515 | } |
| 516 | |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 517 | if (rtc_use_h264) { |
| 518 | defines += [ "WEBRTC_USE_H264" ] |
| 519 | } |
| 520 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 521 | deps += [ |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 522 | ":rtc_internal_video_codecs", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 523 | ":rtc_media", |
| 524 | ":rtc_media_base", |
| 525 | "..:webrtc_common", |
| 526 | "../api:call_api", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 527 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 528 | "../api/video:video_frame", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 529 | "../api/video_codecs:video_codecs_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 530 | "../call:call_interfaces", |
Sebastian Jansson | 8f83b42 | 2018-02-21 13:07:13 +0100 | [diff] [blame] | 531 | "../call:mock_rtp_interfaces", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 532 | "../rtc_base:rtc_base", |
| 533 | "../rtc_base:rtc_base_approved", |
Tommi | 6856156 | 2018-02-13 19:47:50 +0100 | [diff] [blame] | 534 | "../rtc_base:rtc_task_queue_for_test", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 535 | "../rtc_base/third_party/sigslot", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 536 | "../test:test_support", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 537 | "//testing/gtest", |
| 538 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 539 | } |
| 540 | |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 541 | rtc_media_unittests_resources = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 542 | "../resources/media/captured-320x240-2s-48.frames", |
| 543 | "../resources/media/faces.1280x720_P420.yuv", |
| 544 | "../resources/media/faces_I420.jpg", |
| 545 | "../resources/media/faces_I422.jpg", |
| 546 | "../resources/media/faces_I444.jpg", |
| 547 | "../resources/media/faces_I411.jpg", |
| 548 | "../resources/media/faces_I400.jpg", |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 549 | ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 550 | |
| 551 | if (is_ios) { |
| 552 | bundle_data("rtc_media_unittests_bundle_data") { |
| 553 | testonly = true |
| 554 | sources = rtc_media_unittests_resources |
| 555 | outputs = [ |
| 556 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 557 | ] |
| 558 | } |
| 559 | } |
| 560 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 561 | rtc_test("rtc_media_unittests") { |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 562 | testonly = true |
| 563 | |
johan | 073ece4 | 2016-08-26 02:59:47 -0700 | [diff] [blame] | 564 | defines = [] |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 565 | deps = [ |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 566 | ":rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 567 | ":rtc_constants", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 568 | ":rtc_data", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 569 | "../:webrtc_common", |
Danil Chapovalov | 99b71df | 2018-10-26 15:57:48 +0200 | [diff] [blame] | 570 | "../api/test/video:function_video_factory", |
Jonas Oreland | 49ac595 | 2018-09-26 16:04:32 +0200 | [diff] [blame] | 571 | "../api/units:time_delta", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 572 | "../api/video:video_frame_i420", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 573 | "../modules/audio_processing:api", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 574 | "../modules/audio_processing:mocks", |
Åsa Persson | 23cd45a | 2018-07-03 10:40:40 +0200 | [diff] [blame] | 575 | "../modules/rtp_rtcp", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 576 | "../modules/video_coding:video_codec_interface", |
Sergio Garcia Murillo | 43800f9 | 2018-06-21 16:16:38 +0200 | [diff] [blame] | 577 | "../modules/video_coding:webrtc_vp8", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 578 | "../pc:rtc_pc", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 579 | "../pc:rtc_pc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 580 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 581 | "../rtc_base:gunit_helpers", |
| 582 | "../rtc_base:rtc_base_tests_utils", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 583 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 584 | "../rtc_base:stringutils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 585 | "../rtc_base/third_party/sigslot:sigslot", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 586 | "../test:field_trial", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 587 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 69807e8 | 2018-10-30 22:23:02 +0100 | [diff] [blame] | 588 | "//third_party/abseil-cpp/absl/strings", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 589 | ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 590 | sources = [ |
| 591 | "base/codec_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 592 | "base/rtp_data_engine_unittest.cc", |
| 593 | "base/rtp_utils_unittest.cc", |
| 594 | "base/stream_params_unittest.cc", |
| 595 | "base/turn_utils_unittest.cc", |
| 596 | "base/video_adapter_unittest.cc", |
| 597 | "base/video_broadcaster_unittest.cc", |
| 598 | "base/video_capturer_unittest.cc", |
| 599 | "base/video_common_unittest.cc", |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 600 | "engine/apm_helpers_unittest.cc", |
Florent Castelli | e7862cc | 2018-12-06 13:38:24 +0100 | [diff] [blame] | 601 | "engine/encoder_simulcast_proxy_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 602 | "engine/internal_decoder_factory_unittest.cc", |
| 603 | "engine/multiplex_codec_factory_unittest.cc", |
| 604 | "engine/null_webrtc_video_engine_unittest.cc", |
ossu | c54071d | 2016-08-17 02:45:41 -0700 | [diff] [blame] | 605 | "engine/payload_type_mapper_unittest.cc", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 606 | "engine/simulcast_encoder_adapter_unittest.cc", |
Åsa Persson | 31cb8f9 | 2018-06-27 10:44:56 +0200 | [diff] [blame] | 607 | "engine/simulcast_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 608 | "engine/webrtc_media_engine_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 609 | "engine/webrtc_video_engine_unittest.cc", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 610 | ] |
| 611 | |
oprypin | 4519752 | 2017-06-22 01:47:20 -0700 | [diff] [blame] | 612 | # TODO(kthelgason): Reenable this test on iOS. |
| 613 | # See bugs.webrtc.org/5569 |
| 614 | if (!is_ios) { |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 615 | sources += [ "engine/webrtc_voice_engine_unittest.cc" ] |
oprypin | 4519752 | 2017-06-22 01:47:20 -0700 | [diff] [blame] | 616 | } |
| 617 | |
deadbeef | 40610e2 | 2016-12-22 10:53:38 -0800 | [diff] [blame] | 618 | if (rtc_enable_sctp) { |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 619 | sources += [ "sctp/sctp_transport_unittest.cc" ] |
deadbeef | 40610e2 | 2016-12-22 10:53:38 -0800 | [diff] [blame] | 620 | } |
| 621 | |
johan | 073ece4 | 2016-08-26 02:59:47 -0700 | [diff] [blame] | 622 | if (rtc_use_h264) { |
| 623 | defines += [ "WEBRTC_USE_H264" ] |
| 624 | } |
ossu | 11bfc53 | 2017-02-16 05:37:06 -0800 | [diff] [blame] | 625 | |
| 626 | if (rtc_opus_support_120ms_ptime) { |
| 627 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ] |
| 628 | } else { |
| 629 | defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ] |
| 630 | } |
| 631 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 632 | if (!build_with_chromium && is_clang) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 633 | suppressed_configs += [ |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 634 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 635 | "//build/config/clang:find_bad_constructs", |
| 636 | ] |
| 637 | } |
| 638 | |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 639 | data = rtc_media_unittests_resources |
| 640 | |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 641 | if (is_android) { |
| 642 | deps += [ "//testing/android/native_test:native_test_support" ] |
kjellander | 28a0ffd | 2016-08-24 07:48:42 -0700 | [diff] [blame] | 643 | shard_timeout = 900 |
| 644 | } |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 645 | |
| 646 | if (is_ios) { |
| 647 | deps += [ ":rtc_media_unittests_bundle_data" ] |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 648 | } |
| 649 | |
| 650 | deps += [ |
Florent Castelli | e7862cc | 2018-12-06 13:38:24 +0100 | [diff] [blame] | 651 | ":rtc_encoder_simulcast_proxy", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 652 | ":rtc_internal_video_codecs", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 653 | ":rtc_media", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 654 | ":rtc_media_base", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 655 | ":rtc_media_tests_utils", |
Jonathan Yu | 9a5da49 | 2018-10-19 00:51:18 -0700 | [diff] [blame] | 656 | ":rtc_simulcast_encoder_adapter", |
Emircan Uysaler | 98badbc | 2018-06-28 10:59:02 -0700 | [diff] [blame] | 657 | ":rtc_vp9_profile", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 658 | "../api:create_simulcast_test_fixture_api", |
Seth Hampson | 24722b3 | 2017-12-22 09:36:42 -0800 | [diff] [blame] | 659 | "../api:libjingle_peerconnection_api", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 660 | "../api:mock_video_bitrate_allocator", |
| 661 | "../api:mock_video_bitrate_allocator_factory", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 662 | "../api:mock_video_codec_factory", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 663 | "../api:simulcast_test_fixture_api", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 664 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 665 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 666 | "../api/video:builtin_video_bitrate_allocator_factory", |
Erik Språng | 7fd0a28 | 2018-05-22 15:37:23 +0200 | [diff] [blame] | 667 | "../api/video:video_bitrate_allocation", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame] | 668 | "../api/video:video_frame", |
Anders Carlsson | 5f2bb62 | 2018-05-14 09:48:06 +0200 | [diff] [blame] | 669 | "../api/video_codecs:builtin_video_decoder_factory", |
| 670 | "../api/video_codecs:builtin_video_encoder_factory", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 671 | "../api/video_codecs:video_codecs_api", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 672 | "../audio", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 673 | "../call:call_interfaces", |
| 674 | "../common_video:common_video", |
| 675 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 676 | "../logging:rtc_event_log_impl_base", |
aleloi | 5de52fd | 2016-11-10 01:05:34 -0800 | [diff] [blame] | 677 | "../modules/audio_device:mock_audio_device", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 678 | "../modules/audio_processing:audio_processing", |
Rasmus Brandt | 0cedc05 | 2018-05-31 12:53:00 +0200 | [diff] [blame] | 679 | "../modules/video_coding:simulcast_test_fixture_impl", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 680 | "../p2p:p2p_test_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 681 | "../rtc_base:rtc_base", |
| 682 | "../rtc_base:rtc_base_approved", |
| 683 | "../rtc_base:rtc_base_tests_main", |
kwiberg | 37e99fd | 2017-04-10 05:15:48 -0700 | [diff] [blame] | 684 | "../test:audio_codec_mocks", |
kjellander | a2ef4f9 | 2017-03-06 06:04:55 -0800 | [diff] [blame] | 685 | "../test:test_support", |
Ilya Nikolaevskiy | c22a3a6 | 2017-10-25 10:04:54 +0200 | [diff] [blame] | 686 | "../test:video_test_common", |
kjellander | 82a9449 | 2016-06-12 22:12:01 -0700 | [diff] [blame] | 687 | ] |
| 688 | } |
| 689 | } |