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