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