tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1 | # Copyright 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 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 10 | if (is_ios) { |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 11 | import("//build/config/ios/ios_sdk.gni") |
Mirko Bonadei | 2ff3f49 | 2018-11-22 08:00:13 | [diff] [blame] | 12 | import("//build/config/ios/rules.gni") |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 13 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 14 | if (is_mac) { |
| 15 | import("//build/config/mac/rules.gni") |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 16 | } |
| 17 | |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 18 | group("sdk") { |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 19 | public_deps = [] |
| 20 | if (!build_with_chromium) { |
| 21 | if (is_android) { |
| 22 | public_deps += [ "android" ] |
| 23 | } |
| 24 | if (is_ios) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 25 | public_deps += [ ":framework_objc" ] |
Henrik Kjellander | a7d0df7 | 2017-06-27 06:56:46 | [diff] [blame] | 26 | } |
kjellander | 6ceab08 | 2016-10-28 12:44:03 | [diff] [blame] | 27 | } |
| 28 | } |
| 29 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 30 | rtc_library("media_constraints") { |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 31 | sources = [ |
| 32 | "media_constraints.cc", |
| 33 | "media_constraints.h", |
| 34 | ] |
| 35 | deps = [ |
| 36 | "../api:audio_options_api", |
| 37 | "../api:libjingle_peerconnection_api", |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 38 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 39 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 40 | } |
| 41 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 42 | rtc_library("sdk_tests") { |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 43 | testonly = true |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 44 | sources = [ "media_constraints_unittest.cc" ] |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 45 | deps = [ |
| 46 | ":media_constraints", |
| 47 | "../test:test_support", |
| 48 | ] |
| 49 | } |
| 50 | |
kthelgason | cc2d1c6 | 2016-11-09 15:44:27 | [diff] [blame] | 51 | if (is_ios || is_mac) { |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 52 | config("common_config_objc") { |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 53 | include_dirs = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 54 | "objc", |
| 55 | |
| 56 | # This is needed so that framework headers can include base headers |
| 57 | # without pathname (so it works from within the framework module). |
| 58 | "objc/base", |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 59 | ] |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 13:28:51 | [diff] [blame] | 60 | cflags = [ |
Jiawei Ou | 4aeb35b | 2018-11-09 21:55:45 | [diff] [blame] | 61 | "-Wimplicit-retain-self", |
Kári Tristan Helgason | 47d3a01 | 2017-10-24 13:28:51 | [diff] [blame] | 62 | "-Wstrict-overflow", |
| 63 | "-Wmissing-field-initializers", |
| 64 | ] |
Artem Titarenko | 17ad64e | 2018-09-19 15:53:59 | [diff] [blame] | 65 | |
| 66 | if (use_clang_coverage) { |
| 67 | configs = [ "//build/config/coverage:default_coverage" ] |
| 68 | } |
kjellander | 080a1e3 | 2016-05-25 18:37:11 | [diff] [blame] | 69 | } |
| 70 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 71 | config("used_from_extension") { |
| 72 | if (is_ios && rtc_apprtcmobile_broadcast_extension) { |
| 73 | cflags = [ "-fapplication-extension" ] |
| 74 | } |
| 75 | } |
| 76 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 77 | # TODO(bugs.webrtc.org/9627): Remove this when unused. Targets should depend on base_objc |
| 78 | # or helpers_objc directly instead. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 79 | rtc_library("common_objc") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 80 | visibility = [ "*" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 81 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 82 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 83 | |
| 84 | public_configs = [ ":common_config_objc" ] |
| 85 | |
| 86 | deps = [ |
| 87 | ":base_objc", |
| 88 | ":helpers_objc", |
| 89 | ] |
| 90 | } |
| 91 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 92 | rtc_library("base_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 93 | visibility = [ "*" ] |
| 94 | sources = [ |
| 95 | "objc/base/RTCCodecSpecificInfo.h", |
| 96 | "objc/base/RTCEncodedImage.h", |
| 97 | "objc/base/RTCEncodedImage.m", |
| 98 | "objc/base/RTCI420Buffer.h", |
| 99 | "objc/base/RTCLogging.h", |
| 100 | "objc/base/RTCLogging.mm", |
| 101 | "objc/base/RTCMacros.h", |
| 102 | "objc/base/RTCMutableI420Buffer.h", |
| 103 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 104 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 105 | "objc/base/RTCVideoCapturer.h", |
| 106 | "objc/base/RTCVideoCapturer.m", |
| 107 | "objc/base/RTCVideoCodecInfo.h", |
| 108 | "objc/base/RTCVideoCodecInfo.m", |
| 109 | "objc/base/RTCVideoDecoder.h", |
| 110 | "objc/base/RTCVideoDecoderFactory.h", |
| 111 | "objc/base/RTCVideoEncoder.h", |
| 112 | "objc/base/RTCVideoEncoderFactory.h", |
| 113 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 114 | "objc/base/RTCVideoEncoderQpThresholds.m", |
| 115 | "objc/base/RTCVideoEncoderSettings.h", |
| 116 | "objc/base/RTCVideoEncoderSettings.m", |
| 117 | "objc/base/RTCVideoFrame.h", |
| 118 | "objc/base/RTCVideoFrame.mm", |
| 119 | "objc/base/RTCVideoFrameBuffer.h", |
| 120 | "objc/base/RTCVideoRenderer.h", |
| 121 | "objc/base/RTCYUVPlanarBuffer.h", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 122 | ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 123 | |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 124 | deps = [ |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 125 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 126 | "../rtc_base:checks", |
mbonadei | 1e060c6 | 2017-04-21 07:02:02 | [diff] [blame] | 127 | ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 128 | configs += [ |
| 129 | "..:common_objc", |
| 130 | ":used_from_extension", |
| 131 | ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 132 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 133 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 134 | } |
| 135 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 136 | rtc_library("helpers_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 137 | sources = [ |
| 138 | "objc/helpers/AVCaptureSession+DevicePosition.h", |
| 139 | "objc/helpers/AVCaptureSession+DevicePosition.mm", |
| 140 | "objc/helpers/NSString+StdString.h", |
| 141 | "objc/helpers/NSString+StdString.mm", |
| 142 | "objc/helpers/RTCDispatcher+Private.h", |
| 143 | "objc/helpers/RTCDispatcher.h", |
| 144 | "objc/helpers/RTCDispatcher.m", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 145 | "objc/helpers/scoped_cftyperef.h", |
| 146 | ] |
| 147 | |
| 148 | deps = [ |
| 149 | ":base_objc", |
| 150 | "../rtc_base:checks", |
| 151 | ] |
| 152 | |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 153 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
| 154 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 155 | frameworks = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 156 | "AVFoundation.framework", |
| 157 | "CoreMedia.framework", |
| 158 | ] |
| 159 | |
| 160 | configs += [ |
| 161 | "..:common_objc", |
| 162 | ":used_from_extension", |
| 163 | ] |
| 164 | |
| 165 | public_configs = [ ":common_config_objc" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 166 | |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 167 | if (is_ios) { |
| 168 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 169 | "objc/helpers/RTCCameraPreviewView.h", |
| 170 | "objc/helpers/RTCCameraPreviewView.m", |
| 171 | "objc/helpers/UIDevice+RTCDevice.h", |
| 172 | "objc/helpers/UIDevice+RTCDevice.mm", |
| 173 | ] |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | if (!build_with_chromium) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 178 | rtc_library("callback_logger_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 179 | sources = [ |
| 180 | "objc/api/logging/RTCCallbackLogger.h", |
| 181 | "objc/api/logging/RTCCallbackLogger.mm", |
| 182 | ] |
| 183 | |
| 184 | deps = [ |
| 185 | ":base_objc", |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 186 | ":helpers_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 187 | "../rtc_base", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 188 | "../rtc_base:checks", |
| 189 | "../rtc_base:logging", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 190 | ] |
| 191 | |
| 192 | configs += [ |
| 193 | "..:common_objc", |
| 194 | ":used_from_extension", |
kjellander | 3bcedd3 | 2016-06-08 08:14:15 | [diff] [blame] | 195 | ] |
Ali Tofigh | 6364d08 | 2022-03-14 12:32:04 | [diff] [blame] | 196 | |
| 197 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 198 | } |
| 199 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 200 | rtc_library("file_logger_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 201 | sources = [ |
| 202 | "objc/api/peerconnection/RTCFileLogger.h", |
| 203 | "objc/api/peerconnection/RTCFileLogger.mm", |
| 204 | ] |
| 205 | |
| 206 | deps = [ |
| 207 | ":base_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 208 | "../rtc_base", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 209 | "../rtc_base:checks", |
| 210 | "../rtc_base:logging", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 211 | ] |
| 212 | |
| 213 | configs += [ |
| 214 | "..:common_objc", |
| 215 | ":used_from_extension", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 216 | ] |
| 217 | } |
| 218 | } |
| 219 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 220 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 221 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 222 | rtc_library("native_api_audio_device_module") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 223 | visibility = [ "*" ] |
| 224 | |
| 225 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 226 | "objc/native/api/audio_device_module.h", |
| 227 | "objc/native/api/audio_device_module.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 228 | ] |
| 229 | |
| 230 | deps = [ |
| 231 | ":audio_device", |
| 232 | "../modules/audio_device:audio_device_api", |
| 233 | "../modules/audio_device:audio_device_generic", |
| 234 | "../rtc_base:checks", |
| 235 | "../rtc_base:rtc_base_approved", |
| 236 | "../system_wrappers", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 237 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | rtc_source_set("audio_session_observer") { |
| 241 | visibility = [ ":*" ] |
| 242 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 243 | sources = [ "objc/native/src/audio/audio_session_observer.h" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 244 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 245 | deps = [ |
| 246 | "../rtc_base", |
| 247 | "../rtc_base:threading", |
| 248 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 249 | } |
| 250 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 251 | rtc_library("audio_device") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 252 | visibility = [ "*" ] |
| 253 | |
| 254 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 255 | "objc/native/src/audio/audio_device_ios.h", |
| 256 | "objc/native/src/audio/audio_device_ios.mm", |
| 257 | "objc/native/src/audio/audio_device_module_ios.h", |
| 258 | "objc/native/src/audio/audio_device_module_ios.mm", |
| 259 | "objc/native/src/audio/helpers.h", |
| 260 | "objc/native/src/audio/helpers.mm", |
| 261 | "objc/native/src/audio/voice_processing_audio_unit.h", |
| 262 | "objc/native/src/audio/voice_processing_audio_unit.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 263 | ] |
| 264 | |
| 265 | deps = [ |
| 266 | ":audio_objc", |
| 267 | ":audio_session_observer", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 268 | ":base_objc", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 269 | "../api:array_view", |
Danil Chapovalov | a6cb150 | 2019-06-27 13:16:34 | [diff] [blame] | 270 | "../api/task_queue", |
| 271 | "../api/task_queue:default_task_queue_factory", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 272 | "../modules/audio_device:audio_device_api", |
| 273 | "../modules/audio_device:audio_device_buffer", |
| 274 | "../modules/audio_device:audio_device_generic", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 275 | "../rtc_base", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 276 | "../rtc_base:checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 277 | "../rtc_base:threading", |
Kári Tristan Helgason | f49429d | 2019-03-28 10:03:27 | [diff] [blame] | 278 | "../system_wrappers:field_trial", |
Mirko Bonadei | 17f4878 | 2018-09-28 06:51:10 | [diff] [blame] | 279 | "../system_wrappers:metrics", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 280 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 281 | absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 282 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 283 | frameworks = [ "AudioToolbox.framework" ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 284 | } |
| 285 | |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 286 | # This target exists to expose :audio_session_objc and |
| 287 | # :audio_session_delegate_adapter_objc for backward compatibility, |
| 288 | # and should be deprecated. |
| 289 | group("audio_objc") { |
| 290 | public_deps = [ # no-presubmit-check TODO(webrtc:11238) |
| 291 | ":audio_session_delegate_adapter_objc", |
| 292 | ":audio_session_objc", |
| 293 | ] |
| 294 | } |
| 295 | |
| 296 | rtc_library("audio_session_delegate_adapter_objc") { |
| 297 | sources = [ |
| 298 | "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.h", |
| 299 | "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.mm", |
| 300 | ] |
| 301 | |
| 302 | configs += [ |
| 303 | "..:common_objc", |
| 304 | ":used_from_extension", |
| 305 | ] |
| 306 | |
| 307 | public_configs = [ ":common_config_objc" ] |
| 308 | |
| 309 | deps = [ |
| 310 | ":audio_session_objc", |
| 311 | ":audio_session_observer", |
| 312 | ":base_objc", |
| 313 | ] |
| 314 | } |
| 315 | |
| 316 | rtc_library("audio_session_objc") { |
Joe Chen | 3b19b27 | 2020-01-09 16:31:06 | [diff] [blame] | 317 | visibility = [ "*" ] |
| 318 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 319 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 320 | "objc/components/audio/RTCAudioSession+Configuration.mm", |
| 321 | "objc/components/audio/RTCAudioSession+Private.h", |
| 322 | "objc/components/audio/RTCAudioSession.h", |
| 323 | "objc/components/audio/RTCAudioSession.mm", |
| 324 | "objc/components/audio/RTCAudioSessionConfiguration.h", |
| 325 | "objc/components/audio/RTCAudioSessionConfiguration.m", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 326 | ] |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 327 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 328 | configs += [ |
| 329 | "..:common_objc", |
| 330 | ":used_from_extension", |
| 331 | ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 332 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 333 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 8ecfd80 | 2017-09-15 12:07:30 | [diff] [blame] | 334 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 335 | frameworks = [ "AVFoundation.framework" ] |
Jiawei Ou | c9e6b96 | 2018-10-09 19:33:06 | [diff] [blame] | 336 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 337 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 338 | ":base_objc", |
| 339 | ":helpers_objc", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 340 | "../rtc_base", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 341 | "../rtc_base:checks", |
| 342 | "../rtc_base:rtc_base_approved", |
Niels Möller | 072c008 | 2021-02-15 15:30:44 | [diff] [blame] | 343 | "../rtc_base/synchronization:mutex", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 344 | ] |
Byoungchan Lee | 0a54e7a | 2021-09-06 13:32:52 | [diff] [blame] | 345 | |
| 346 | absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ] |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 347 | } |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 348 | |
| 349 | rtc_source_set("network_monitor_observer") { |
| 350 | visibility = [ ":*" ] |
| 351 | |
| 352 | sources = [ "objc/native/src/network_monitor_observer.h" ] |
| 353 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 354 | deps = [ |
| 355 | "../rtc_base", |
| 356 | "../rtc_base:network_constants", |
| 357 | "../rtc_base:threading", |
| 358 | ] |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 359 | |
| 360 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 361 | } |
| 362 | |
| 363 | rtc_library("network_monitor_objc") { |
| 364 | visibility = [ "*" ] |
| 365 | |
| 366 | sources = [ |
| 367 | "objc/components/network/RTCNetworkMonitor+Private.h", |
| 368 | "objc/components/network/RTCNetworkMonitor.h", |
| 369 | "objc/components/network/RTCNetworkMonitor.mm", |
| 370 | ] |
| 371 | |
| 372 | configs += [ ":used_from_extension" ] |
| 373 | |
| 374 | frameworks = [ "Network.framework" ] |
| 375 | |
| 376 | deps = [ |
| 377 | ":base_objc", |
| 378 | ":helpers_objc", |
| 379 | ":network_monitor_observer", |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 380 | "../rtc_base:stringutils", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 381 | "../rtc_base/system:gcd_helpers", |
| 382 | ] |
| 383 | } |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 384 | } |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 385 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 386 | rtc_library("videosource_objc") { |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 387 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 388 | "objc/api/peerconnection/RTCVideoSource+Private.h", |
| 389 | "objc/api/peerconnection/RTCVideoSource.h", |
| 390 | "objc/api/peerconnection/RTCVideoSource.mm", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 391 | ] |
| 392 | |
| 393 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 394 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 395 | ":mediasource_objc", |
| 396 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 397 | ":videoframebuffer_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 398 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 399 | "../api:media_stream_interface", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 400 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 401 | "../api/video:video_rtp_headers", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 402 | "../common_video", |
| 403 | "../media:rtc_media_base", |
Markus Handell | a1b8201 | 2021-05-26 16:56:30 | [diff] [blame] | 404 | "../pc:rtc_pc_base", |
Harald Alvestrand | e5a73f5 | 2022-03-28 12:06:34 | [diff] [blame^] | 405 | "../pc:video_track_source_proxy", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 406 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 407 | "../rtc_base:checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 408 | "../rtc_base:threading", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 409 | "//third_party/libyuv", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 410 | ] |
| 411 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 412 | configs += [ |
| 413 | "..:common_objc", |
| 414 | ":used_from_extension", |
| 415 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 416 | } |
| 417 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 418 | rtc_library("videoframebuffer_objc") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 419 | visibility = [ "*" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 420 | sources = [ |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 421 | "objc/api/video_frame_buffer/RTCNativeI420Buffer+Private.h", |
| 422 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 423 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.mm", |
| 424 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
| 425 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 426 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 427 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 428 | ] |
| 429 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 430 | ":base_objc", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 431 | "//api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 432 | "//api/video:video_rtp_headers", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 433 | "//common_video", |
| 434 | "//rtc_base:checks", |
| 435 | "//rtc_base:rtc_base_approved", |
| 436 | "//third_party/libyuv", |
| 437 | ] |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 438 | configs += [ |
| 439 | "..:common_objc", |
| 440 | ":used_from_extension", |
| 441 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 442 | frameworks = [ |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 443 | "VideoToolbox.framework", |
Oleh Prypin | b3f78de | 2019-07-18 20:25:48 | [diff] [blame] | 444 | "CoreGraphics.framework", |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 445 | "CoreVideo.framework", |
| 446 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 447 | } |
| 448 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 449 | rtc_library("opengl_objc") { |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 450 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 451 | "objc/components/renderer/opengl/RTCDefaultShader.h", |
| 452 | "objc/components/renderer/opengl/RTCDefaultShader.mm", |
| 453 | "objc/components/renderer/opengl/RTCI420TextureCache.h", |
| 454 | "objc/components/renderer/opengl/RTCI420TextureCache.mm", |
| 455 | "objc/components/renderer/opengl/RTCOpenGLDefines.h", |
| 456 | "objc/components/renderer/opengl/RTCShader.h", |
| 457 | "objc/components/renderer/opengl/RTCShader.mm", |
| 458 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 459 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 460 | frameworks = [ "CoreVideo.framework" ] |
denicija | d208815 | 2017-04-28 09:14:54 | [diff] [blame] | 461 | if (is_ios) { |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 462 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 463 | "objc/components/renderer/opengl/RTCNV12TextureCache.h", |
| 464 | "objc/components/renderer/opengl/RTCNV12TextureCache.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 465 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 466 | frameworks += [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 467 | "GLKit.framework", |
| 468 | "OpenGLES.framework", |
| 469 | "QuartzCore.framework", |
| 470 | ] |
| 471 | } else if (is_mac) { |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 472 | frameworks += [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 473 | "CoreMedia.framework", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 474 | "OpenGL.framework", |
denicija | 070d5e3 | 2017-02-26 19:44:13 | [diff] [blame] | 475 | ] |
| 476 | } |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 477 | |
| 478 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 479 | # workaround. |
Björn Terelius | 02768ae | 2021-07-02 14:19:32 | [diff] [blame] | 480 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 481 | |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 482 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 483 | ":base_objc", |
| 484 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 485 | ":mediaconstraints_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 486 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 487 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 488 | ":videosource_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 489 | "../api:libjingle_peerconnection_api", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 490 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 491 | "../api/video:video_rtp_headers", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 492 | "../common_video", |
| 493 | "../media:rtc_media_base", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 494 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 495 | "../rtc_base:checks", |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 496 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 497 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 498 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 499 | configs += [ |
| 500 | "..:common_objc", |
| 501 | ":used_from_extension", |
| 502 | ] |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 503 | } |
ehmaldonado | da8dcfb | 2017-01-04 15:11:23 | [diff] [blame] | 504 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 505 | rtc_library("opengl_ui_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 506 | visibility = [ "*" ] |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 507 | allow_poison = [ |
| 508 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 509 | "default_task_queue", |
| 510 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 511 | if (is_ios) { |
| 512 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 513 | "objc/components/renderer/opengl/RTCDisplayLinkTimer.h", |
| 514 | "objc/components/renderer/opengl/RTCDisplayLinkTimer.m", |
| 515 | "objc/components/renderer/opengl/RTCEAGLVideoView.h", |
| 516 | "objc/components/renderer/opengl/RTCEAGLVideoView.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 517 | ] |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 518 | |
| 519 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 520 | # workaround. |
Björn Terelius | 02768ae | 2021-07-02 14:19:32 | [diff] [blame] | 521 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 522 | } |
| 523 | if (is_mac) { |
| 524 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 525 | "objc/components/renderer/opengl/RTCNSGLVideoView.h", |
| 526 | "objc/components/renderer/opengl/RTCNSGLVideoView.m", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 527 | ] |
| 528 | } |
| 529 | configs += [ "..:common_objc" ] |
| 530 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 531 | ":base_objc", |
| 532 | ":helpers_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 533 | ":metal_objc", |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 534 | ":opengl_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 535 | ":videocapture_objc", |
| 536 | ":videoframebuffer_objc", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 537 | ] |
| 538 | } |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 539 | |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 540 | rtc_library("metal_objc") { |
| 541 | visibility = [ "*" ] |
| 542 | allow_poison = [ |
| 543 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 544 | "default_task_queue", |
| 545 | ] |
| 546 | sources = [ |
| 547 | "objc/components/renderer/metal/RTCMTLI420Renderer.h", |
| 548 | "objc/components/renderer/metal/RTCMTLI420Renderer.mm", |
| 549 | "objc/components/renderer/metal/RTCMTLNV12Renderer.h", |
| 550 | "objc/components/renderer/metal/RTCMTLNV12Renderer.mm", |
| 551 | "objc/components/renderer/metal/RTCMTLRGBRenderer.h", |
| 552 | "objc/components/renderer/metal/RTCMTLRGBRenderer.mm", |
| 553 | "objc/components/renderer/metal/RTCMTLRenderer+Private.h", |
| 554 | "objc/components/renderer/metal/RTCMTLRenderer.h", |
| 555 | "objc/components/renderer/metal/RTCMTLRenderer.mm", |
| 556 | ] |
| 557 | frameworks = [ |
| 558 | "CoreVideo.framework", |
| 559 | "Metal.framework", |
| 560 | "MetalKit.framework", |
| 561 | ] |
| 562 | if (is_ios) { |
| 563 | sources += [ |
| 564 | "objc/components/renderer/metal/RTCMTLVideoView.h", |
| 565 | "objc/components/renderer/metal/RTCMTLVideoView.m", |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 566 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 567 | } |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 568 | if (is_mac) { |
| 569 | sources += [ |
| 570 | "objc/components/renderer/metal/RTCMTLNSVideoView.h", |
| 571 | "objc/components/renderer/metal/RTCMTLNSVideoView.m", |
| 572 | ] |
| 573 | frameworks += [ "AppKit.framework" ] |
| 574 | } |
| 575 | deps = [ |
| 576 | ":base_objc", |
| 577 | ":peerconnectionfactory_base_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 578 | ":videoframebuffer_objc", |
| 579 | "../api/video:video_frame", |
| 580 | "../api/video:video_rtp_headers", |
| 581 | "../rtc_base:checks", |
| 582 | "../rtc_base:rtc_base_approved", |
| 583 | ] |
| 584 | configs += [ "..:common_objc" ] |
| 585 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 586 | } |
| 587 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 588 | # TODO(bugs.webrtc.org/9627): Remove this target. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 589 | rtc_library("videocapturebase_objc") { |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 590 | visibility = [ "*" ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 591 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 592 | |
| 593 | configs += [ "..:common_objc" ] |
| 594 | |
| 595 | public_configs = [ ":common_config_objc" ] |
| 596 | |
| 597 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 598 | ":base_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 599 | ":videoframebuffer_objc", |
| 600 | ] |
| 601 | } |
| 602 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 603 | rtc_library("videocapture_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 604 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 605 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 606 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 607 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 608 | "objc/components/capturer/RTCCameraVideoCapturer.m", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 609 | "objc/components/capturer/RTCFileVideoCapturer.h", |
| 610 | "objc/components/capturer/RTCFileVideoCapturer.m", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 611 | ] |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 612 | frameworks = [ |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 613 | "AVFoundation.framework", |
| 614 | "CoreVideo.framework", |
Mirko Bonadei | 19640aa | 2020-10-19 14:12:43 | [diff] [blame] | 615 | "QuartzCore.framework", |
Kári Tristan Helgason | 8a1e35c | 2019-03-07 09:44:26 | [diff] [blame] | 616 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 617 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 618 | configs += [ "..:common_objc" ] |
| 619 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 620 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 621 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 622 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 623 | ":base_objc", |
| 624 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 625 | ":videoframebuffer_objc", |
Yura Yaroshevich | ebf739b | 2020-03-16 15:00:59 | [diff] [blame] | 626 | "../rtc_base/system:gcd_helpers", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 627 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 628 | } |
| 629 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 630 | rtc_library("videocodec_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 631 | visibility = [ "*" ] |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 632 | configs += [ "..:no_global_constructors" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 633 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 634 | "objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h", |
| 635 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 636 | "objc/components/video_codec/RTCCodecSpecificInfoH264.mm", |
| 637 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 638 | "objc/components/video_codec/RTCH264ProfileLevelId.mm", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 639 | ] |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 640 | if (is_ios) { |
| 641 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 642 | "objc/components/video_codec/UIDevice+H264Profile.h", |
| 643 | "objc/components/video_codec/UIDevice+H264Profile.mm", |
Yura Yaroshevich | 0f77fea | 2018-04-26 12:41:01 | [diff] [blame] | 644 | ] |
| 645 | } |
Mirko Bonadei | fc52b91 | 2019-03-01 09:32:56 | [diff] [blame] | 646 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 647 | public_configs = [ ":common_config_objc" ] |
| 648 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 649 | ":base_objc", |
| 650 | ":helpers_objc", |
kthelgason | fb14312 | 2017-07-25 14:55:58 | [diff] [blame] | 651 | "../api/video_codecs:video_codecs_api", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 652 | "../common_video", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 653 | "../media:rtc_media_base", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 654 | "../modules/video_coding:video_codec_interface", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 655 | "../rtc_base:checks", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 656 | "../rtc_base:rtc_base_approved", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 657 | ] |
| 658 | } |
| 659 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 660 | rtc_library("default_codec_factory_objc") { |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 661 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 662 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 663 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.m", |
| 664 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 665 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.m", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 666 | ] |
| 667 | |
| 668 | deps = [ |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 669 | ":av1", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 670 | ":base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 671 | ":native_video", |
| 672 | ":videocodec_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 673 | ":videotoolbox_objc", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 674 | ":vp8", |
| 675 | ":vp9", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 676 | ":vpx_codec_constants", |
| 677 | ] |
| 678 | } |
| 679 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 680 | rtc_library("vpx_codec_constants") { |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 681 | configs += [ "..:no_global_constructors" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 682 | sources = [ |
| 683 | "objc/api/video_codec/RTCVideoCodecConstants.h", |
| 684 | "objc/api/video_codec/RTCVideoCodecConstants.mm", |
| 685 | ] |
| 686 | |
| 687 | deps = [ |
| 688 | ":base_objc", |
| 689 | "../media:rtc_media_base", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 690 | ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 691 | } |
| 692 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 693 | rtc_library("vp8") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 694 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 02:31:53 | [diff] [blame] | 695 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 696 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 697 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 698 | "objc/api/video_codec/RTCVideoDecoderVP8.mm", |
| 699 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 700 | "objc/api/video_codec/RTCVideoEncoderVP8.mm", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 701 | ] |
| 702 | |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 703 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 704 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 705 | ":wrapped_native_codec_objc", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 706 | "../modules/video_coding:webrtc_vp8", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 707 | ] |
| 708 | } |
| 709 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 710 | rtc_library("vp9") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 711 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 02:31:53 | [diff] [blame] | 712 | allow_poison = [ "software_video_codecs" ] |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 713 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 714 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
| 715 | "objc/api/video_codec/RTCVideoDecoderVP9.mm", |
| 716 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
| 717 | "objc/api/video_codec/RTCVideoEncoderVP9.mm", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 718 | ] |
| 719 | |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 720 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 721 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 722 | ":wrapped_native_codec_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 723 | "../media:rtc_media_base", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 724 | "../modules/video_coding:webrtc_vp9", |
Anders Carlsson | dd8c165 | 2018-01-30 09:32:13 | [diff] [blame] | 725 | ] |
| 726 | } |
| 727 | |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 728 | rtc_library("av1") { |
| 729 | visibility = [ "*" ] |
| 730 | allow_poison = [ "software_video_codecs" ] |
| 731 | sources = [ |
| 732 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
| 733 | "objc/api/video_codec/RTCVideoDecoderAV1.mm", |
| 734 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
| 735 | "objc/api/video_codec/RTCVideoEncoderAV1.mm", |
| 736 | ] |
| 737 | |
| 738 | deps = [ |
| 739 | ":base_objc", |
| 740 | ":wrapped_native_codec_objc", |
| 741 | "../media:rtc_media_base", |
| 742 | "../modules/video_coding/codecs/av1:libaom_av1_decoder", |
philipel | 9570150 | 2022-01-18 17:47:52 | [diff] [blame] | 743 | "../modules/video_coding/codecs/av1:libaom_av1_encoder_if_supported", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 744 | ] |
| 745 | } |
| 746 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 747 | # Build the PeerConnectionFactory without audio/video support. |
| 748 | # This target depends on the objc_peeerconnectionfactory_base which still |
| 749 | # includes some audio/video related objects such as RTCAudioSource because |
| 750 | # these objects are just thin wrappers of native C++ interfaces required |
| 751 | # when implementing webrtc::PeerConnectionFactoryInterface and |
| 752 | # webrtc::PeerConnectionInterface. |
Kári Tristan Helgason | a2d89fc | 2018-03-06 09:18:43 | [diff] [blame] | 753 | # The applications which only use WebRTC DataChannel can depend on this. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 754 | rtc_library("peerconnectionfactory_no_media_objc") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 | [diff] [blame] | 755 | visibility = [ "*" ] |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 756 | allow_poison = [ |
| 757 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 758 | "default_task_queue", |
| 759 | ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 760 | defines = [ "HAVE_NO_MEDIA" ] |
| 761 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 762 | sources = [ "objc/helpers/noop.mm" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 763 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 764 | public_configs = [ ":common_config_objc" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 765 | |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 766 | deps = [ |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 767 | ":native_api", |
| 768 | ":native_video", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 769 | ":peerconnectionfactory_base_objc", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 770 | "../api:libjingle_peerconnection_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 771 | "../rtc_base", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 772 | ] |
| 773 | } |
| 774 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 775 | rtc_library("mediaconstraints_objc") { |
Mirko Bonadei | 96ede16a | 2018-09-06 11:45:44 | [diff] [blame] | 776 | configs += [ "..:no_global_constructors" ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 777 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 778 | "objc/api/peerconnection/RTCMediaConstraints+Private.h", |
| 779 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 780 | "objc/api/peerconnection/RTCMediaConstraints.mm", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 781 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 782 | |
| 783 | public_configs = [ ":common_config_objc" ] |
| 784 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 785 | ":base_objc", |
| 786 | ":helpers_objc", |
Niels Möller | dac03d9 | 2019-02-13 07:52:27 | [diff] [blame] | 787 | ":media_constraints", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 788 | ] |
| 789 | } |
| 790 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 791 | # TODO(bugs.webrtc.org/9627): Remove, targets should depend on base_objc. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 792 | rtc_library("videorenderer_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 793 | visibility = [ "*" ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 794 | sources = [ "objc/helpers/noop.mm" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 795 | |
| 796 | configs += [ "..:common_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 797 | public_configs = [ ":common_config_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 798 | |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 799 | deps = [ ":base_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 800 | } |
| 801 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 802 | rtc_library("videorendereradapter_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 803 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 804 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 805 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 806 | "objc/api/RTCVideoRendererAdapter+Private.h", |
| 807 | "objc/api/RTCVideoRendererAdapter.h", |
| 808 | "objc/api/RTCVideoRendererAdapter.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 809 | ] |
| 810 | |
| 811 | configs += [ "..:common_objc" ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 812 | public_configs = [ ":common_config_objc" ] |
| 813 | |
| 814 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 815 | ":base_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 816 | ":native_api", |
| 817 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 818 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 819 | "../api:media_stream_interface", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 820 | ] |
| 821 | } |
| 822 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 823 | rtc_library("mediasource_objc") { |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 824 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 825 | "objc/api/peerconnection/RTCMediaSource+Private.h", |
| 826 | "objc/api/peerconnection/RTCMediaSource.h", |
| 827 | "objc/api/peerconnection/RTCMediaSource.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 828 | ] |
| 829 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 830 | configs += [ |
| 831 | "..:common_objc", |
| 832 | ":used_from_extension", |
| 833 | ] |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 834 | public_configs = [ ":common_config_objc" ] |
| 835 | |
| 836 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 837 | ":base_objc", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 838 | "../api:media_stream_interface", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 839 | "../rtc_base:checks", |
| 840 | ] |
| 841 | } |
| 842 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 843 | rtc_library("base_native_additions_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 844 | sources = [ |
| 845 | "objc/api/peerconnection/RTCEncodedImage+Private.h", |
| 846 | "objc/api/peerconnection/RTCEncodedImage+Private.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 847 | "objc/api/peerconnection/RTCVideoCodecInfo+Private.h", |
| 848 | "objc/api/peerconnection/RTCVideoCodecInfo+Private.mm", |
| 849 | "objc/api/peerconnection/RTCVideoEncoderSettings+Private.h", |
| 850 | "objc/api/peerconnection/RTCVideoEncoderSettings+Private.mm", |
| 851 | ] |
| 852 | |
| 853 | configs += [ "..:common_objc" ] |
| 854 | |
| 855 | public_configs = [ ":common_config_objc" ] |
| 856 | |
| 857 | deps = [ |
| 858 | ":base_objc", |
| 859 | ":helpers_objc", |
Niels Möller | 4dc66c5 | 2018-10-05 12:17:58 | [diff] [blame] | 860 | "../api/video:encoded_image", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 861 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 862 | "../modules/video_coding:video_codec_interface", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 863 | "../rtc_base", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 864 | ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 865 | } |
| 866 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 867 | rtc_library("peerconnectionfactory_base_objc") { |
Karl Wiberg | bb23c83 | 2018-04-22 17:55:00 | [diff] [blame] | 868 | visibility = [ "*" ] |
Danil Chapovalov | 41300af | 2019-07-10 10:44:43 | [diff] [blame] | 869 | allow_poison = [ |
| 870 | "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove. |
| 871 | "default_task_queue", |
| 872 | ] |
Byoungchan Lee | 524a422 | 2021-11-19 10:03:49 | [diff] [blame] | 873 | configs += [ "..:no_global_constructors" ] |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 874 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 875 | "objc/api/peerconnection/RTCAudioSource+Private.h", |
| 876 | "objc/api/peerconnection/RTCAudioSource.h", |
| 877 | "objc/api/peerconnection/RTCAudioSource.mm", |
| 878 | "objc/api/peerconnection/RTCAudioTrack+Private.h", |
| 879 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 880 | "objc/api/peerconnection/RTCAudioTrack.mm", |
| 881 | "objc/api/peerconnection/RTCCertificate.h", |
| 882 | "objc/api/peerconnection/RTCCertificate.mm", |
| 883 | "objc/api/peerconnection/RTCConfiguration+Native.h", |
| 884 | "objc/api/peerconnection/RTCConfiguration+Private.h", |
| 885 | "objc/api/peerconnection/RTCConfiguration.h", |
| 886 | "objc/api/peerconnection/RTCConfiguration.mm", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 887 | "objc/api/peerconnection/RTCCryptoOptions.h", |
| 888 | "objc/api/peerconnection/RTCCryptoOptions.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 889 | "objc/api/peerconnection/RTCDataChannel+Private.h", |
| 890 | "objc/api/peerconnection/RTCDataChannel.h", |
| 891 | "objc/api/peerconnection/RTCDataChannel.mm", |
| 892 | "objc/api/peerconnection/RTCDataChannelConfiguration+Private.h", |
| 893 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 894 | "objc/api/peerconnection/RTCDataChannelConfiguration.mm", |
| 895 | "objc/api/peerconnection/RTCDtmfSender+Private.h", |
| 896 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 897 | "objc/api/peerconnection/RTCDtmfSender.mm", |
| 898 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 899 | "objc/api/peerconnection/RTCFieldTrials.mm", |
| 900 | "objc/api/peerconnection/RTCIceCandidate+Private.h", |
| 901 | "objc/api/peerconnection/RTCIceCandidate.h", |
| 902 | "objc/api/peerconnection/RTCIceCandidate.mm", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 903 | "objc/api/peerconnection/RTCIceCandidateErrorEvent+Private.h", |
| 904 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
| 905 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 906 | "objc/api/peerconnection/RTCIceServer+Private.h", |
| 907 | "objc/api/peerconnection/RTCIceServer.h", |
| 908 | "objc/api/peerconnection/RTCIceServer.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 909 | "objc/api/peerconnection/RTCLegacyStatsReport+Private.h", |
| 910 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 911 | "objc/api/peerconnection/RTCLegacyStatsReport.mm", |
| 912 | "objc/api/peerconnection/RTCMediaStream+Private.h", |
| 913 | "objc/api/peerconnection/RTCMediaStream.h", |
| 914 | "objc/api/peerconnection/RTCMediaStream.mm", |
| 915 | "objc/api/peerconnection/RTCMediaStreamTrack+Private.h", |
| 916 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 917 | "objc/api/peerconnection/RTCMediaStreamTrack.mm", |
| 918 | "objc/api/peerconnection/RTCMetrics.h", |
| 919 | "objc/api/peerconnection/RTCMetrics.mm", |
| 920 | "objc/api/peerconnection/RTCMetricsSampleInfo+Private.h", |
| 921 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 922 | "objc/api/peerconnection/RTCMetricsSampleInfo.mm", |
| 923 | "objc/api/peerconnection/RTCPeerConnection+DataChannel.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 924 | "objc/api/peerconnection/RTCPeerConnection+Private.h", |
| 925 | "objc/api/peerconnection/RTCPeerConnection+Stats.mm", |
| 926 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 927 | "objc/api/peerconnection/RTCPeerConnection.mm", |
| 928 | "objc/api/peerconnection/RTCPeerConnectionFactory+Native.h", |
| 929 | "objc/api/peerconnection/RTCPeerConnectionFactory+Private.h", |
| 930 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 931 | "objc/api/peerconnection/RTCPeerConnectionFactory.mm", |
| 932 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.h", |
| 933 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.mm", |
| 934 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.h", |
| 935 | "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.mm", |
| 936 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions+Private.h", |
| 937 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 938 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.mm", |
| 939 | "objc/api/peerconnection/RTCRtcpParameters+Private.h", |
| 940 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 941 | "objc/api/peerconnection/RTCRtcpParameters.mm", |
| 942 | "objc/api/peerconnection/RTCRtpCodecParameters+Private.h", |
| 943 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 944 | "objc/api/peerconnection/RTCRtpCodecParameters.mm", |
| 945 | "objc/api/peerconnection/RTCRtpEncodingParameters+Private.h", |
| 946 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 947 | "objc/api/peerconnection/RTCRtpEncodingParameters.mm", |
| 948 | "objc/api/peerconnection/RTCRtpHeaderExtension+Private.h", |
| 949 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 950 | "objc/api/peerconnection/RTCRtpHeaderExtension.mm", |
| 951 | "objc/api/peerconnection/RTCRtpParameters+Private.h", |
| 952 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 953 | "objc/api/peerconnection/RTCRtpParameters.mm", |
Benjamin Wright | ddf1a3e | 2018-10-02 17:20:58 | [diff] [blame] | 954 | "objc/api/peerconnection/RTCRtpReceiver+Native.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 955 | "objc/api/peerconnection/RTCRtpReceiver+Private.h", |
| 956 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 957 | "objc/api/peerconnection/RTCRtpReceiver.mm", |
Benjamin Wright | ddf1a3e | 2018-10-02 17:20:58 | [diff] [blame] | 958 | "objc/api/peerconnection/RTCRtpSender+Native.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 959 | "objc/api/peerconnection/RTCRtpSender+Private.h", |
| 960 | "objc/api/peerconnection/RTCRtpSender.h", |
| 961 | "objc/api/peerconnection/RTCRtpSender.mm", |
| 962 | "objc/api/peerconnection/RTCRtpTransceiver+Private.h", |
| 963 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 964 | "objc/api/peerconnection/RTCRtpTransceiver.mm", |
| 965 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 966 | "objc/api/peerconnection/RTCSSLAdapter.mm", |
| 967 | "objc/api/peerconnection/RTCSessionDescription+Private.h", |
| 968 | "objc/api/peerconnection/RTCSessionDescription.h", |
| 969 | "objc/api/peerconnection/RTCSessionDescription.mm", |
Peter Hanspers | bed8604 | 2019-02-21 16:27:09 | [diff] [blame] | 970 | "objc/api/peerconnection/RTCStatisticsReport+Private.h", |
| 971 | "objc/api/peerconnection/RTCStatisticsReport.h", |
| 972 | "objc/api/peerconnection/RTCStatisticsReport.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 973 | "objc/api/peerconnection/RTCTracing.h", |
| 974 | "objc/api/peerconnection/RTCTracing.mm", |
| 975 | "objc/api/peerconnection/RTCVideoTrack+Private.h", |
| 976 | "objc/api/peerconnection/RTCVideoTrack.h", |
| 977 | "objc/api/peerconnection/RTCVideoTrack.mm", |
kthelgason | 5fe4d49 | 2016-12-05 19:27:30 | [diff] [blame] | 978 | ] |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 979 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 980 | configs += [ |
| 981 | "..:common_objc", |
| 982 | ":used_from_extension", |
| 983 | ] |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 984 | public_configs = [ ":common_config_objc" ] |
kthelgason | c097710 | 2017-04-24 07:57:16 | [diff] [blame] | 985 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 986 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 987 | ":base_native_additions_objc", |
| 988 | ":base_objc", |
| 989 | ":file_logger_objc", |
| 990 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 991 | ":mediaconstraints_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 992 | ":mediasource_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 993 | ":native_api", |
| 994 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 995 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 996 | ":videorendereradapter_objc", |
| 997 | ":videosource_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 998 | ":videotoolbox_objc", |
Mirko Bonadei | e51f785 | 2017-12-06 10:23:19 | [diff] [blame] | 999 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 1000 | "../api:media_stream_interface", |
Niels Möller | 695cf6a | 2019-05-13 10:27:23 | [diff] [blame] | 1001 | "../api:rtc_event_log_output_file", |
Peter Hanspers | bed8604 | 2019-02-21 16:27:09 | [diff] [blame] | 1002 | "../api:rtc_stats_api", |
Niels Möller | 6dcd4dc | 2019-08-26 08:45:28 | [diff] [blame] | 1003 | "../api:rtp_parameters", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1004 | "../api:scoped_refptr", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1005 | "../api/audio_codecs:audio_codecs_api", |
Karl Wiberg | 5817d3d | 2018-04-06 08:06:42 | [diff] [blame] | 1006 | "../api/audio_codecs:builtin_audio_decoder_factory", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1007 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Mirko Bonadei | eaaaf41 | 2019-09-13 12:42:15 | [diff] [blame] | 1008 | "../api/crypto:frame_decryptor_interface", |
| 1009 | "../api/crypto:frame_encryptor_interface", |
Danil Chapovalov | 4ba04b7 | 2019-06-26 13:49:47 | [diff] [blame] | 1010 | "../api/rtc_event_log:rtc_event_log_factory", |
Danil Chapovalov | aaa1143 | 2019-05-17 11:20:14 | [diff] [blame] | 1011 | "../api/task_queue:default_task_queue_factory", |
Erik Språng | ceb4495 | 2020-09-22 09:36:35 | [diff] [blame] | 1012 | "../api/transport:field_trial_based_config", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1013 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1014 | "../api/video:video_rtp_headers", |
Anders Carlsson | 7e04281 | 2017-10-05 14:55:38 | [diff] [blame] | 1015 | "../api/video_codecs:video_codecs_api", |
Anders Carlsson | e5960ce | 2017-06-22 13:26:30 | [diff] [blame] | 1016 | "../common_video", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1017 | "../media:rtc_media_base", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1018 | "../modules/audio_device:audio_device_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1019 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 1020 | "../modules/audio_processing:api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1021 | "../modules/video_coding:video_codec_interface", |
zhihuang | a4c113a | 2017-06-28 21:05:44 | [diff] [blame] | 1022 | "../pc:peerconnection", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1023 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1024 | "../rtc_base:checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1025 | "../rtc_base:network_constants", |
Mirko Bonadei | 17f4878 | 2018-09-28 06:51:10 | [diff] [blame] | 1026 | "../system_wrappers:field_trial", |
| 1027 | "../system_wrappers:metrics", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1028 | ] |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1029 | |
| 1030 | if (is_ios) { |
| 1031 | deps += [ ":native_api_audio_device_module" ] |
| 1032 | } |
kthelgason | ebc34e7 | 2016-09-15 11:30:18 | [diff] [blame] | 1033 | } |
Zeke Chin | dd0e1e0 | 2016-10-11 20:27:26 | [diff] [blame] | 1034 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1035 | if (rtc_include_tests) { |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1036 | if (is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1037 | rtc_library("sdk_unittests_sources") { |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1038 | testonly = true |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1039 | include_dirs = [ "objc/" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1040 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1041 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1042 | "objc/unittests/ObjCVideoTrackSource_xctest.mm", |
| 1043 | "objc/unittests/RTCCVPixelBuffer_xctest.mm", |
| 1044 | "objc/unittests/RTCCallbackLogger_xctest.m", |
Kári Tristan Helgason | ecbdbf6 | 2020-02-20 15:34:45 | [diff] [blame] | 1045 | "objc/unittests/RTCEncodedImage_xctest.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1046 | "objc/unittests/RTCFileVideoCapturer_xctest.mm", |
| 1047 | "objc/unittests/RTCH264ProfileLevelId_xctest.m", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 1048 | "objc/unittests/RTCMTLVideoView_xctest.m", |
Aaron Golden | fb4e9bc | 2019-01-04 20:03:31 | [diff] [blame] | 1049 | "objc/unittests/RTCNV12TextureCache_xctest.m", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1050 | "objc/unittests/RTCPeerConnectionFactory_xctest.m", |
| 1051 | "objc/unittests/frame_buffer_helpers.h", |
| 1052 | "objc/unittests/frame_buffer_helpers.mm", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1053 | "objc/unittests/nalu_rewriter_xctest.mm", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1054 | ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1055 | |
Mirko Bonadei | 6b09c45 | 2021-07-05 14:47:49 | [diff] [blame] | 1056 | # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning |
| 1057 | # workaround. |
| 1058 | defines = [ "GLES_SILENCE_DEPRECATION" ] |
| 1059 | |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1060 | # TODO(peterhanspers): Reenable these tests on simulator. |
| 1061 | # See bugs.webrtc.org/7812 |
Lahiru Ginnaliya Gamathige | 1d0e7b6 | 2020-10-20 09:43:02 | [diff] [blame] | 1062 | if (target_environment != "simulator") { |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1063 | sources += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1064 | "objc/unittests/RTCAudioDeviceModule_xctest.mm", |
| 1065 | "objc/unittests/RTCAudioDevice_xctest.mm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1066 | ] |
| 1067 | } |
| 1068 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1069 | deps = [ |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1070 | ":audio_device", |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 1071 | ":audio_session_objc", |
Kári Tristan Helgason | ecbdbf6 | 2020-02-20 15:34:45 | [diff] [blame] | 1072 | ":base_native_additions_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1073 | ":base_objc", |
| 1074 | ":callback_logger_objc", |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 1075 | ":framework_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1076 | ":mediaconstraints_objc", |
Jake Bromberg | fb7fd24 | 2021-06-14 20:44:25 | [diff] [blame] | 1077 | ":metal_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1078 | ":native_api", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1079 | ":native_api_audio_device_module", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1080 | ":native_video", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1081 | ":peerconnectionfactory_base_objc", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1082 | ":video_toolbox_cc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1083 | ":videocapture_objc", |
Anders Carlsson | 79ce820 | 2018-06-01 10:51:09 | [diff] [blame] | 1084 | ":videocodec_objc", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1085 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1086 | ":videosource_objc", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1087 | ":videotoolbox_objc", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1088 | "../api:scoped_refptr", |
Byoungchan Lee | 43bd760 | 2019-10-08 14:58:41 | [diff] [blame] | 1089 | "../api/task_queue:default_task_queue_factory", |
Ilya Nikolaevskiy | 38e9b06 | 2020-10-08 14:36:33 | [diff] [blame] | 1090 | "../api/video:video_frame", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1091 | "../common_video", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1092 | "../media:rtc_media_base", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1093 | "../media:rtc_media_tests_utils", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1094 | "../rtc_base", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1095 | "../rtc_base:gunit_helpers", |
Byoungchan Lee | 83ceb90 | 2021-11-16 02:31:57 | [diff] [blame] | 1096 | "../rtc_base/system:unused", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1097 | "../system_wrappers", |
Anders Carlsson | fe9d817 | 2018-04-03 09:40:39 | [diff] [blame] | 1098 | "//third_party/libyuv", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1099 | ] |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1100 | |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1101 | if (rtc_ios_macos_use_opengl_rendering) { |
| 1102 | deps += [ ":opengl_objc" ] |
| 1103 | } |
| 1104 | |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1105 | public_deps = [ |
| 1106 | "//build/config/ios:xctest", |
| 1107 | "//third_party/ocmock", |
| 1108 | ] |
| 1109 | } |
| 1110 | |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1111 | bundle_data("sdk_unittests_bundle_data") { |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1112 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1113 | "objc/unittests/audio_short16.pcm", |
| 1114 | "objc/unittests/audio_short44.pcm", |
| 1115 | "objc/unittests/audio_short48.pcm", |
Peter Hanspers | 8d95e3b | 2018-05-15 08:22:36 | [diff] [blame] | 1116 | |
| 1117 | # Sample video taken from https://media.xiph.org/video/derf/ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1118 | "objc/unittests/foreman.mp4", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1119 | ] |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1120 | outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1121 | } |
| 1122 | |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1123 | # These tests use static linking. |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1124 | rtc_test("sdk_unittests") { |
| 1125 | is_xctest = true |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1126 | info_plist = "//test/ios/Info.plist" |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1127 | sources = [ "objc/unittests/main.mm" ] |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1128 | |
Artem Titarenko | a2bc362 | 2019-08-19 12:24:00 | [diff] [blame] | 1129 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ] |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1130 | deps = [ |
Yura Yaroshevich | 5297bd2 | 2018-06-19 09:51:51 | [diff] [blame] | 1131 | ":peerconnectionfactory_base_objc", |
Daniela | 012b56b | 2017-11-15 12:15:24 | [diff] [blame] | 1132 | ":sdk_unittests_bundle_data", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1133 | ":sdk_unittests_sources", |
Niels Möller | 5a8f860 | 2019-06-12 09:30:59 | [diff] [blame] | 1134 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1135 | "../rtc_base:threading", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1136 | "//test:test_support", |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1137 | ] |
| 1138 | ldflags = [ "-all_load" ] |
| 1139 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1140 | |
| 1141 | # These tests link to the framework. |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1142 | rtc_test("sdk_framework_unittests") { |
| 1143 | is_xctest = true |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1144 | info_plist = "//test/ios/Info.plist" |
| 1145 | sources = [ |
| 1146 | "objc/unittests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1147 | "objc/unittests/main.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1148 | ] |
| 1149 | |
Artem Titarenko | a2bc362 | 2019-08-19 12:24:00 | [diff] [blame] | 1150 | extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1151 | deps = [ |
| 1152 | ":framework_objc+link", |
| 1153 | ":ios_framework_bundle", |
Niels Möller | 5a8f860 | 2019-06-12 09:30:59 | [diff] [blame] | 1154 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1155 | "../rtc_base:threading", |
Artem Titarenko | 34fc346 | 2018-11-06 11:29:29 | [diff] [blame] | 1156 | "//test:test_support", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1157 | ] |
| 1158 | } |
Daniela | ae012cf | 2017-10-12 11:46:00 | [diff] [blame] | 1159 | } |
| 1160 | |
| 1161 | # TODO(denicija): once all tests are migrated to xctest remove this source set. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1162 | rtc_library("rtc_unittests_objc") { |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1163 | testonly = true |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1164 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1165 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1166 | "objc/unittests/RTCCertificateTest.mm", |
| 1167 | "objc/unittests/RTCConfigurationTest.mm", |
| 1168 | "objc/unittests/RTCDataChannelConfigurationTest.mm", |
| 1169 | "objc/unittests/RTCIceCandidateTest.mm", |
| 1170 | "objc/unittests/RTCIceServerTest.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1171 | "objc/unittests/RTCMediaConstraintsTest.mm", |
| 1172 | "objc/unittests/RTCPeerConnectionFactoryBuilderTest.mm", |
| 1173 | "objc/unittests/RTCPeerConnectionTest.mm", |
| 1174 | "objc/unittests/RTCSessionDescriptionTest.mm", |
| 1175 | "objc/unittests/RTCTracingTest.mm", |
| 1176 | "objc/unittests/objc_video_decoder_factory_tests.mm", |
| 1177 | "objc/unittests/objc_video_encoder_factory_tests.mm", |
| 1178 | "objc/unittests/scoped_cftyperef_tests.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1179 | ] |
Anders Carlsson | e7dd83f | 2018-01-19 10:28:44 | [diff] [blame] | 1180 | if (is_ios) { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1181 | sources += [ "objc/unittests/RTCCameraVideoCapturerTests.mm" ] |
oprypin | 4519752 | 2017-06-22 08:47:20 | [diff] [blame] | 1182 | } |
mbonadei | d762058 | 2017-05-30 08:50:35 | [diff] [blame] | 1183 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1184 | # |-ObjC| flag needed to make sure category method implementations |
| 1185 | # are included: |
| 1186 | # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
| 1187 | ldflags = [ "-ObjC" ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 1188 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1189 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1190 | ":base_objc", |
| 1191 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1192 | ":mediaconstraints_objc", |
| 1193 | ":native_api", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1194 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1195 | ":peerconnectionfactory_base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1196 | ":videocapture_objc", |
| 1197 | ":videocodec_objc", |
| 1198 | ":videoframebuffer_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1199 | ":videosource_objc", |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1200 | ":videotoolbox_objc", |
Piotr (Peter) Slatala | e0c2e97 | 2018-10-08 16:43:21 | [diff] [blame] | 1201 | "../api:libjingle_peerconnection_api", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1202 | "../api/audio_codecs:audio_codecs_api", |
| 1203 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 1204 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 1205 | "../api/video_codecs:video_codecs_api", |
kthelgason | ebd4f79 | 2017-09-04 11:36:21 | [diff] [blame] | 1206 | "../media:rtc_media_base", |
Jiawei Ou | ae810c1 | 2018-06-20 23:18:59 | [diff] [blame] | 1207 | "../modules/audio_device:audio_device_api", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1208 | "../modules/audio_processing", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 | [diff] [blame] | 1209 | "../modules/audio_processing:api", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1210 | "../modules/video_coding:video_codec_interface", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1211 | "../rtc_base:gunit_helpers", |
Byoungchan Lee | 0a54e7a | 2021-09-06 13:32:52 | [diff] [blame] | 1212 | "../rtc_base:rtc_event", |
Niels Möller | a12c42a | 2018-07-25 14:05:48 | [diff] [blame] | 1213 | "../rtc_base/system:unused", |
Yves Gerey | 21cddff | 2018-10-30 20:12:42 | [diff] [blame] | 1214 | "../test:test_support", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1215 | "//third_party/ocmock", |
| 1216 | ] |
magjed | 3149e09 | 2017-05-08 12:32:05 | [diff] [blame] | 1217 | |
denicija | 59ee91b | 2017-06-05 12:48:47 | [diff] [blame] | 1218 | if (is_ios) { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1219 | sources += [ "objc/unittests/RTCAudioSessionTest.mm" ] |
Joe Chen | 0b3a6e3 | 2019-12-27 07:01:42 | [diff] [blame] | 1220 | deps += [ ":audio_session_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1221 | } |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1222 | } |
kthelgason | 2f08879 | 2017-05-30 08:48:47 | [diff] [blame] | 1223 | } |
| 1224 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1225 | if (is_ios) { |
Anders Carlsson | dc6b477 | 2018-01-15 12:31:03 | [diff] [blame] | 1226 | ios_framework_bundle_with_umbrella_header("framework_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1227 | info_plist = "objc/Info.plist" |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1228 | output_name = "WebRTC" |
Magnus Jedvert | f83dc8b | 2017-08-29 09:49:43 | [diff] [blame] | 1229 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1230 | common_objc_headers = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1231 | "objc/base/RTCCodecSpecificInfo.h", |
| 1232 | "objc/base/RTCEncodedImage.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1233 | "objc/base/RTCI420Buffer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1234 | "objc/base/RTCLogging.h", |
| 1235 | "objc/base/RTCMacros.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1236 | "objc/base/RTCMutableI420Buffer.h", |
| 1237 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1238 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1239 | "objc/base/RTCVideoCapturer.h", |
| 1240 | "objc/base/RTCVideoCodecInfo.h", |
| 1241 | "objc/base/RTCVideoDecoder.h", |
| 1242 | "objc/base/RTCVideoDecoderFactory.h", |
| 1243 | "objc/base/RTCVideoEncoder.h", |
| 1244 | "objc/base/RTCVideoEncoderFactory.h", |
| 1245 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 1246 | "objc/base/RTCVideoEncoderSettings.h", |
| 1247 | "objc/base/RTCVideoFrame.h", |
| 1248 | "objc/base/RTCVideoFrameBuffer.h", |
| 1249 | "objc/base/RTCVideoRenderer.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1250 | "objc/base/RTCYUVPlanarBuffer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1251 | "objc/components/audio/RTCAudioSession.h", |
| 1252 | "objc/components/audio/RTCAudioSessionConfiguration.h", |
| 1253 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 1254 | "objc/components/capturer/RTCFileVideoCapturer.h", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1255 | "objc/components/network/RTCNetworkMonitor.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1256 | "objc/components/renderer/metal/RTCMTLVideoView.h", |
| 1257 | "objc/components/renderer/opengl/RTCEAGLVideoView.h", |
| 1258 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
| 1259 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 1260 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 1261 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 1262 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 1263 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1264 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1265 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1266 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1267 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 1268 | "objc/helpers/RTCCameraPreviewView.h", |
| 1269 | "objc/helpers/RTCDispatcher.h", |
| 1270 | "objc/helpers/UIDevice+RTCDevice.h", |
| 1271 | "objc/api/peerconnection/RTCAudioSource.h", |
| 1272 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 1273 | "objc/api/peerconnection/RTCConfiguration.h", |
| 1274 | "objc/api/peerconnection/RTCDataChannel.h", |
| 1275 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 1276 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 1277 | "objc/api/peerconnection/RTCIceCandidate.h", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 1278 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1279 | "objc/api/peerconnection/RTCIceServer.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1280 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 1281 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 1282 | "objc/api/peerconnection/RTCMediaSource.h", |
| 1283 | "objc/api/peerconnection/RTCMediaStream.h", |
| 1284 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 1285 | "objc/api/peerconnection/RTCMetrics.h", |
| 1286 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 1287 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 1288 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 1289 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 1290 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 1291 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 1292 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 1293 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 1294 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 1295 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 1296 | "objc/api/peerconnection/RTCRtpSender.h", |
| 1297 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 1298 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 1299 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 1300 | "objc/api/peerconnection/RTCSessionDescription.h", |
CZ Theng | 682dabd | 2019-10-21 03:25:18 | [diff] [blame] | 1301 | "objc/api/peerconnection/RTCStatisticsReport.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1302 | "objc/api/peerconnection/RTCTracing.h", |
| 1303 | "objc/api/peerconnection/RTCCertificate.h", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 1304 | "objc/api/peerconnection/RTCCryptoOptions.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1305 | "objc/api/peerconnection/RTCVideoSource.h", |
| 1306 | "objc/api/peerconnection/RTCVideoTrack.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1307 | "objc/api/video_codec/RTCVideoCodecConstants.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1308 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 1309 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1310 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1311 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 1312 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1313 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
Anders Carlsson | 4e5af96 | 2018-09-03 12:44:50 | [diff] [blame] | 1314 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 1315 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1316 | ] |
Magnus Jedvert | 8b4e92d | 2018-04-13 13:36:43 | [diff] [blame] | 1317 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1318 | if (!build_with_chromium) { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1319 | common_objc_headers += [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1320 | "objc/api/logging/RTCCallbackLogger.h", |
| 1321 | "objc/api/peerconnection/RTCFileLogger.h", |
Anders Carlsson | 3b3364e | 2018-01-30 14:46:13 | [diff] [blame] | 1322 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1323 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1324 | |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1325 | sources = common_objc_headers |
| 1326 | public_headers = common_objc_headers |
| 1327 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1328 | ldflags = [ |
| 1329 | "-all_load", |
| 1330 | "-install_name", |
| 1331 | "@rpath/$output_name.framework/$output_name", |
| 1332 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1333 | |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1334 | deps = [ |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1335 | ":audio_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1336 | ":base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1337 | ":default_codec_factory_objc", |
Mirko Bonadei | 91d3975 | 2022-01-19 07:43:17 | [diff] [blame] | 1338 | ":metal_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1339 | ":native_api", |
| 1340 | ":native_video", |
| 1341 | ":peerconnectionfactory_base_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1342 | ":videocapture_objc", |
| 1343 | ":videocodec_objc", |
| 1344 | ":videotoolbox_objc", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 1345 | "../rtc_base:rtc_base_approved", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1346 | ] |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1347 | if (rtc_ios_macos_use_opengl_rendering) { |
| 1348 | deps += [ ":opengl_ui_objc" ] |
| 1349 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1350 | if (!build_with_chromium) { |
| 1351 | deps += [ |
| 1352 | ":callback_logger_objc", |
| 1353 | ":file_logger_objc", |
| 1354 | ] |
| 1355 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1356 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1357 | frameworks = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1358 | "AVFoundation.framework", |
| 1359 | "CoreGraphics.framework", |
| 1360 | "CoreMedia.framework", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1361 | ] |
| 1362 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 1363 | configs += [ |
| 1364 | "..:common_objc", |
| 1365 | ":used_from_extension", |
| 1366 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1367 | |
kthelgason | 36d658d | 2017-08-24 12:43:45 | [diff] [blame] | 1368 | public_configs = [ ":common_config_objc" ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1369 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1370 | |
| 1371 | bundle_data("ios_framework_bundle") { |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1372 | deps = [ "../sdk:framework_objc" ] |
| 1373 | sources = [ "$root_build_dir/WebRTC.framework" ] |
| 1374 | outputs = [ "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1375 | } |
| 1376 | } |
| 1377 | |
| 1378 | if (is_mac) { |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1379 | mac_framework_bundle_with_umbrella_header("mac_framework_objc") { |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1380 | info_plist = "objc/Info.plist" |
| 1381 | output_name = "WebRTC" |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1382 | |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1383 | sources = [ |
| 1384 | "objc/api/peerconnection/RTCAudioSource.h", |
| 1385 | "objc/api/peerconnection/RTCAudioTrack.h", |
| 1386 | "objc/api/peerconnection/RTCCertificate.h", |
| 1387 | "objc/api/peerconnection/RTCConfiguration.h", |
Benjamin Wright | 8c27cca | 2018-10-25 17:16:44 | [diff] [blame] | 1388 | "objc/api/peerconnection/RTCCryptoOptions.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1389 | "objc/api/peerconnection/RTCDataChannel.h", |
| 1390 | "objc/api/peerconnection/RTCDataChannelConfiguration.h", |
| 1391 | "objc/api/peerconnection/RTCDtmfSender.h", |
| 1392 | "objc/api/peerconnection/RTCFieldTrials.h", |
| 1393 | "objc/api/peerconnection/RTCIceCandidate.h", |
Jaehyun Ko | d211098 | 2021-11-30 10:01:43 | [diff] [blame] | 1394 | "objc/api/peerconnection/RTCIceCandidateErrorEvent.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1395 | "objc/api/peerconnection/RTCIceServer.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1396 | "objc/api/peerconnection/RTCLegacyStatsReport.h", |
| 1397 | "objc/api/peerconnection/RTCMediaConstraints.h", |
| 1398 | "objc/api/peerconnection/RTCMediaSource.h", |
| 1399 | "objc/api/peerconnection/RTCMediaStream.h", |
| 1400 | "objc/api/peerconnection/RTCMediaStreamTrack.h", |
| 1401 | "objc/api/peerconnection/RTCMetrics.h", |
| 1402 | "objc/api/peerconnection/RTCMetricsSampleInfo.h", |
| 1403 | "objc/api/peerconnection/RTCPeerConnection.h", |
| 1404 | "objc/api/peerconnection/RTCPeerConnectionFactory.h", |
| 1405 | "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h", |
| 1406 | "objc/api/peerconnection/RTCRtcpParameters.h", |
| 1407 | "objc/api/peerconnection/RTCRtpCodecParameters.h", |
| 1408 | "objc/api/peerconnection/RTCRtpEncodingParameters.h", |
| 1409 | "objc/api/peerconnection/RTCRtpHeaderExtension.h", |
| 1410 | "objc/api/peerconnection/RTCRtpParameters.h", |
| 1411 | "objc/api/peerconnection/RTCRtpReceiver.h", |
| 1412 | "objc/api/peerconnection/RTCRtpSender.h", |
| 1413 | "objc/api/peerconnection/RTCRtpTransceiver.h", |
| 1414 | "objc/api/peerconnection/RTCSSLAdapter.h", |
| 1415 | "objc/api/peerconnection/RTCSessionDescription.h", |
Saúl Ibarra Corretgé | f7aa267 | 2021-07-28 21:09:14 | [diff] [blame] | 1416 | "objc/api/peerconnection/RTCStatisticsReport.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1417 | "objc/api/peerconnection/RTCTracing.h", |
| 1418 | "objc/api/peerconnection/RTCVideoSource.h", |
| 1419 | "objc/api/peerconnection/RTCVideoTrack.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1420 | "objc/api/video_codec/RTCVideoDecoderAV1.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1421 | "objc/api/video_codec/RTCVideoDecoderVP8.h", |
| 1422 | "objc/api/video_codec/RTCVideoDecoderVP9.h", |
Yura Yaroshevich | 8cfb287 | 2021-03-03 09:29:42 | [diff] [blame] | 1423 | "objc/api/video_codec/RTCVideoEncoderAV1.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1424 | "objc/api/video_codec/RTCVideoEncoderVP8.h", |
| 1425 | "objc/api/video_codec/RTCVideoEncoderVP9.h", |
| 1426 | "objc/api/video_frame_buffer/RTCNativeI420Buffer.h", |
| 1427 | "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h", |
| 1428 | "objc/base/RTCCodecSpecificInfo.h", |
| 1429 | "objc/base/RTCEncodedImage.h", |
| 1430 | "objc/base/RTCI420Buffer.h", |
| 1431 | "objc/base/RTCLogging.h", |
| 1432 | "objc/base/RTCMacros.h", |
| 1433 | "objc/base/RTCMutableI420Buffer.h", |
| 1434 | "objc/base/RTCMutableYUVPlanarBuffer.h", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1435 | "objc/base/RTCSSLCertificateVerifier.h", |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1436 | "objc/base/RTCVideoCapturer.h", |
| 1437 | "objc/base/RTCVideoCodecInfo.h", |
| 1438 | "objc/base/RTCVideoDecoder.h", |
| 1439 | "objc/base/RTCVideoDecoderFactory.h", |
| 1440 | "objc/base/RTCVideoEncoder.h", |
| 1441 | "objc/base/RTCVideoEncoderFactory.h", |
| 1442 | "objc/base/RTCVideoEncoderQpThresholds.h", |
| 1443 | "objc/base/RTCVideoEncoderSettings.h", |
| 1444 | "objc/base/RTCVideoFrame.h", |
| 1445 | "objc/base/RTCVideoFrameBuffer.h", |
| 1446 | "objc/base/RTCVideoRenderer.h", |
| 1447 | "objc/base/RTCYUVPlanarBuffer.h", |
| 1448 | "objc/components/capturer/RTCCameraVideoCapturer.h", |
| 1449 | "objc/components/capturer/RTCFileVideoCapturer.h", |
| 1450 | "objc/components/renderer/metal/RTCMTLNSVideoView.h", |
| 1451 | "objc/components/renderer/opengl/RTCNSGLVideoView.h", |
| 1452 | "objc/components/renderer/opengl/RTCVideoViewShading.h", |
| 1453 | "objc/components/video_codec/RTCCodecSpecificInfoH264.h", |
| 1454 | "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h", |
| 1455 | "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h", |
| 1456 | "objc/components/video_codec/RTCH264ProfileLevelId.h", |
| 1457 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1458 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1459 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1460 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1461 | "objc/components/video_frame_buffer/RTCCVPixelBuffer.h", |
| 1462 | "objc/helpers/RTCDispatcher.h", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1463 | ] |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1464 | if (!build_with_chromium) { |
| 1465 | sources += [ |
| 1466 | "objc/api/logging/RTCCallbackLogger.h", |
| 1467 | "objc/api/peerconnection/RTCFileLogger.h", |
| 1468 | ] |
| 1469 | } |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1470 | |
| 1471 | deps = [ |
| 1472 | ":base_objc", |
| 1473 | ":default_codec_factory_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1474 | ":native_api", |
| 1475 | ":native_video", |
Jordan Rose | 53d3fc9 | 2021-07-06 19:16:41 | [diff] [blame] | 1476 | ":opengl_ui_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1477 | ":peerconnectionfactory_base_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1478 | ":videocapture_objc", |
| 1479 | ":videocodec_objc", |
| 1480 | ":videotoolbox_objc", |
| 1481 | "../rtc_base:rtc_base_approved", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1482 | ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1483 | if (!build_with_chromium) { |
| 1484 | deps += [ |
| 1485 | ":callback_logger_objc", |
| 1486 | ":file_logger_objc", |
| 1487 | ] |
| 1488 | } |
| 1489 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1490 | frameworks = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1491 | "AVFoundation.framework", |
| 1492 | "CoreGraphics.framework", |
| 1493 | "CoreMedia.framework", |
| 1494 | "OpenGL.framework", |
| 1495 | ] |
| 1496 | |
Anders Carlsson | 37bbf79 | 2018-09-05 14:29:27 | [diff] [blame] | 1497 | configs = [ "..:common_objc" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1498 | |
| 1499 | public_configs = [ ":common_config_objc" ] |
| 1500 | } |
| 1501 | |
| 1502 | bundle_data("mac_framework_bundle") { |
Danil Chapovalov | 64f1f3f | 2020-01-16 13:41:10 | [diff] [blame] | 1503 | deps = [ "../sdk:mac_framework_objc" ] |
| 1504 | sources = [ "$root_build_dir/WebRTC.framework" ] |
| 1505 | outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ] |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1506 | } |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1507 | } |
| 1508 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1509 | rtc_library("wrapped_native_codec_objc") { |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1510 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1511 | "objc/api/video_codec/RTCWrappedNativeVideoDecoder.h", |
| 1512 | "objc/api/video_codec/RTCWrappedNativeVideoDecoder.mm", |
| 1513 | "objc/api/video_codec/RTCWrappedNativeVideoEncoder.h", |
| 1514 | "objc/api/video_codec/RTCWrappedNativeVideoEncoder.mm", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1515 | ] |
| 1516 | |
| 1517 | configs += [ "..:common_objc" ] |
| 1518 | public_configs = [ ":common_config_objc" ] |
| 1519 | |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1520 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1521 | ":base_objc", |
| 1522 | ":helpers_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1523 | "../api/video_codecs:video_codecs_api", |
| 1524 | "../media:rtc_media_base", |
| 1525 | ] |
| 1526 | } |
| 1527 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1528 | # The native API is currently experimental and may change without notice. |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1529 | rtc_library("native_api") { |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1530 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 1531 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1532 | sources = [ |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1533 | "objc/native/api/network_monitor_factory.h", |
| 1534 | "objc/native/api/network_monitor_factory.mm", |
Yury Yaroshevich | 19a6e94 | 2022-03-11 08:22:08 | [diff] [blame] | 1535 | "objc/native/api/ssl_certificate_verifier.h", |
| 1536 | "objc/native/api/ssl_certificate_verifier.mm", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1537 | "objc/native/api/video_capturer.h", |
| 1538 | "objc/native/api/video_capturer.mm", |
| 1539 | "objc/native/api/video_decoder_factory.h", |
| 1540 | "objc/native/api/video_decoder_factory.mm", |
| 1541 | "objc/native/api/video_encoder_factory.h", |
| 1542 | "objc/native/api/video_encoder_factory.mm", |
| 1543 | "objc/native/api/video_frame.h", |
| 1544 | "objc/native/api/video_frame.mm", |
| 1545 | "objc/native/api/video_frame_buffer.h", |
| 1546 | "objc/native/api/video_frame_buffer.mm", |
| 1547 | "objc/native/api/video_renderer.h", |
| 1548 | "objc/native/api/video_renderer.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1549 | ] |
| 1550 | |
| 1551 | configs += [ "..:common_objc" ] |
| 1552 | |
| 1553 | public_configs = [ ":common_config_objc" ] |
| 1554 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1555 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1556 | ":base_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1557 | ":native_video", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1558 | ":videoframebuffer_objc", |
Anders Carlsson | 7311918 | 2018-03-15 08:41:03 | [diff] [blame] | 1559 | "../api:libjingle_peerconnection_api", |
Niels Möller | e942b14 | 2019-09-17 12:30:41 | [diff] [blame] | 1560 | "../api:media_stream_interface", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 1561 | "../api:scoped_refptr", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1562 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1563 | "../api/video:video_rtp_headers", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1564 | "../api/video_codecs:video_codecs_api", |
| 1565 | "../common_video", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1566 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1567 | "../rtc_base:threading", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1568 | ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1569 | if (is_ios) { |
| 1570 | deps += [ ":native_network_monitor" ] |
| 1571 | } |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 1572 | absl_deps = [ "//third_party/abseil-cpp/absl/memory" ] |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1573 | } |
| 1574 | |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1575 | if (is_ios) { |
| 1576 | rtc_library("native_network_monitor") { |
| 1577 | visibility = [ "*" ] |
| 1578 | |
| 1579 | sources = [ |
| 1580 | "objc/native/src/objc_network_monitor.h", |
| 1581 | "objc/native/src/objc_network_monitor.mm", |
| 1582 | ] |
| 1583 | |
| 1584 | deps = [ |
| 1585 | ":network_monitor_objc", |
| 1586 | ":network_monitor_observer", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 1587 | "../api:sequence_checker", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1588 | "../rtc_base", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1589 | "../rtc_base:threading", |
Niels Möller | be140b4 | 2021-03-11 09:24:06 | [diff] [blame] | 1590 | "../rtc_base/task_utils:pending_task_safety_flag", |
| 1591 | "../rtc_base/task_utils:to_queued_task", |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1592 | ] |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 1593 | |
| 1594 | absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] |
Taylor Brandstetter | ea7fbfb | 2020-08-19 23:41:54 | [diff] [blame] | 1595 | } |
| 1596 | } |
| 1597 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1598 | rtc_library("native_video") { |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1599 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1600 | "objc/native/src/objc_frame_buffer.h", |
| 1601 | "objc/native/src/objc_frame_buffer.mm", |
| 1602 | "objc/native/src/objc_video_decoder_factory.h", |
| 1603 | "objc/native/src/objc_video_decoder_factory.mm", |
| 1604 | "objc/native/src/objc_video_encoder_factory.h", |
| 1605 | "objc/native/src/objc_video_encoder_factory.mm", |
| 1606 | "objc/native/src/objc_video_frame.h", |
| 1607 | "objc/native/src/objc_video_frame.mm", |
| 1608 | "objc/native/src/objc_video_renderer.h", |
| 1609 | "objc/native/src/objc_video_renderer.mm", |
| 1610 | "objc/native/src/objc_video_track_source.h", |
| 1611 | "objc/native/src/objc_video_track_source.mm", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1612 | ] |
| 1613 | |
| 1614 | configs += [ "..:common_objc" ] |
| 1615 | |
| 1616 | public_configs = [ ":common_config_objc" ] |
| 1617 | |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1618 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1619 | ":base_native_additions_objc", |
| 1620 | ":base_objc", |
| 1621 | ":helpers_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1622 | ":videocodec_objc", |
| 1623 | ":videoframebuffer_objc", |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1624 | ":vpx_codec_constants", |
Anders Carlsson | 9823ee4 | 2018-03-07 09:32:03 | [diff] [blame] | 1625 | ":wrapped_native_codec_objc", |
Niels Möller | c6ce9c5 | 2018-05-11 09:15:30 | [diff] [blame] | 1626 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 1627 | "../api/video:video_rtp_headers", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1628 | "../api/video_codecs:video_codecs_api", |
| 1629 | "../common_video", |
| 1630 | "../media:rtc_audio_video", |
| 1631 | "../media:rtc_media_base", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1632 | "../modules/video_coding:video_codec_interface", |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 1633 | "../rtc_base", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1634 | "../rtc_base:checks", |
Anders Carlsson | 3ff50fb | 2018-02-01 14:47:05 | [diff] [blame] | 1635 | ] |
| 1636 | } |
| 1637 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1638 | rtc_library("video_toolbox_cc") { |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1639 | visibility = [ |
Mirko Bonadei | 08574ae | 2020-09-16 07:22:57 | [diff] [blame] | 1640 | ":sdk_unittests_sources", |
Mirko Bonadei | aef8a21 | 2020-09-16 13:09:53 | [diff] [blame] | 1641 | ":videotoolbox_objc", |
Artem Titarenko | 42b4315 | 2018-10-29 17:18:09 | [diff] [blame] | 1642 | ] |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1643 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1644 | "objc/components/video_codec/helpers.cc", |
| 1645 | "objc/components/video_codec/helpers.h", |
| 1646 | "objc/components/video_codec/nalu_rewriter.cc", |
| 1647 | "objc/components/video_codec/nalu_rewriter.h", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1648 | ] |
| 1649 | deps = [ |
| 1650 | "../common_video", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1651 | "../modules/video_coding:webrtc_h264", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1652 | "../rtc_base:checks", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1653 | "../rtc_base:rtc_base_approved", |
| 1654 | ] |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1655 | } |
| 1656 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1657 | rtc_library("videotoolbox_objc") { |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1658 | visibility = [ "*" ] |
Anders Carlsson | 45340ca | 2019-01-14 13:23:23 | [diff] [blame] | 1659 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1660 | sources = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1661 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.h", |
| 1662 | "objc/components/video_codec/RTCVideoDecoderFactoryH264.m", |
| 1663 | "objc/components/video_codec/RTCVideoDecoderH264.h", |
| 1664 | "objc/components/video_codec/RTCVideoDecoderH264.mm", |
| 1665 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.h", |
| 1666 | "objc/components/video_codec/RTCVideoEncoderFactoryH264.m", |
| 1667 | "objc/components/video_codec/RTCVideoEncoderH264.h", |
| 1668 | "objc/components/video_codec/RTCVideoEncoderH264.mm", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1669 | ] |
| 1670 | |
Anders Carlsson | 358f2e0 | 2018-06-04 08:24:37 | [diff] [blame] | 1671 | configs += [ |
| 1672 | "..:common_objc", |
| 1673 | ":used_from_extension", |
| 1674 | ] |
| 1675 | |
| 1676 | if (is_ios && rtc_apprtcmobile_broadcast_extension) { |
| 1677 | defines = [ "RTC_APPRTCMOBILE_BROADCAST_EXTENSION" ] |
| 1678 | } |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1679 | |
| 1680 | deps = [ |
Anders Carlsson | 7bca8ca | 2018-08-30 07:30:29 | [diff] [blame] | 1681 | ":base_native_additions_objc", |
| 1682 | ":base_objc", |
| 1683 | ":helpers_objc", |
mbonadei | c0af5ac | 2017-08-24 19:26:05 | [diff] [blame] | 1684 | ":video_toolbox_cc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 09:49:22 | [diff] [blame] | 1685 | ":videocodec_objc", |
| 1686 | ":videoframebuffer_objc", |
Johannes Kron | c3fcee7 | 2021-04-19 07:09:26 | [diff] [blame] | 1687 | "../api/video_codecs:video_codecs_api", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1688 | "../common_video", |
Patrik Höglund | 99175c6 | 2018-01-08 10:05:10 | [diff] [blame] | 1689 | "../modules/video_coding:video_codec_interface", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1690 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 17:40:47 | [diff] [blame] | 1691 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 1692 | "//third_party/libyuv", |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1693 | ] |
| 1694 | |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 1695 | frameworks = [ |
mbonadei | 2c8ac1b | 2017-05-31 12:14:26 | [diff] [blame] | 1696 | "CoreFoundation.framework", |
| 1697 | "CoreMedia.framework", |
| 1698 | "CoreVideo.framework", |
| 1699 | "VideoToolbox.framework", |
| 1700 | ] |
Kári Tristan Helgason | cbe7435 | 2016-11-09 09:43:26 | [diff] [blame] | 1701 | } |
| 1702 | } |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 1703 | } |