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