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