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