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