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