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