blob: 780bcf36ae6ae73eab606cc68764b14eb94ef854 [file] [log] [blame]
tkchin9eeb6242016-04-27 01:54:20 -07001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
kthelgasonebc34e72016-09-15 04:30:18 -070010if (is_ios) {
oprypin45197522017-06-22 01:47:20 -070011 import("//build/config/ios/ios_sdk.gni")
Mirko Bonadei2ff3f492018-11-22 09:00:13 +010012 import("//build/config/ios/rules.gni")
kthelgasonebc34e72016-09-15 04:30:18 -070013}
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020014if (is_mac) {
15 import("//build/config/mac/rules.gni")
kthelgason2f088792017-05-30 01:48:47 -070016}
17
kjellander6ceab082016-10-28 05:44:03 -070018group("sdk") {
Henrik Kjellandera7d0df72017-06-27 08:56:46 +020019 public_deps = []
20 if (!build_with_chromium) {
21 if (is_android) {
22 public_deps += [ "android" ]
23 }
24 if (is_ios) {
kthelgason36d658d2017-08-24 05:43:45 -070025 public_deps += [ ":framework_objc" ]
Henrik Kjellandera7d0df72017-06-27 08:56:46 +020026 }
kjellander6ceab082016-10-28 05:44:03 -070027 }
28}
29
Mirko Bonadei86d053c2019-10-17 21:32:04 +020030rtc_library("media_constraints") {
Niels Möllerdac03d92019-02-13 08:52:27 +010031 sources = [
32 "media_constraints.cc",
33 "media_constraints.h",
34 ]
35 deps = [
36 "../api:audio_options_api",
37 "../api:libjingle_peerconnection_api",
Niels Möllerdac03d92019-02-13 08:52:27 +010038 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020039 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllerdac03d92019-02-13 08:52:27 +010040}
41
Mirko Bonadei86d053c2019-10-17 21:32:04 +020042rtc_library("sdk_tests") {
Niels Möllerdac03d92019-02-13 08:52:27 +010043 testonly = true
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +010044 sources = [ "media_constraints_unittest.cc" ]
Niels Möllerdac03d92019-02-13 08:52:27 +010045 deps = [
46 ":media_constraints",
47 "../test:test_support",
48 ]
49}
50
kthelgasoncc2d1c62016-11-09 07:44:27 -080051if (is_ios || is_mac) {
kthelgason36d658d2017-08-24 05:43:45 -070052 config("common_config_objc") {
kjellander080a1e32016-05-25 11:37:11 -070053 include_dirs = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020054 "objc",
55
56 # This is needed so that framework headers can include base headers
57 # without pathname (so it works from within the framework module).
58 "objc/base",
kjellander080a1e32016-05-25 11:37:11 -070059 ]
Kári Tristan Helgason47d3a012017-10-24 15:28:51 +020060 cflags = [
Jiawei Ou4aeb35b2018-11-09 13:55:45 -080061 "-Wimplicit-retain-self",
Kári Tristan Helgason47d3a012017-10-24 15:28:51 +020062 "-Wstrict-overflow",
63 "-Wmissing-field-initializers",
64 ]
Artem Titarenko17ad64e2018-09-19 17:53:59 +020065
66 if (use_clang_coverage) {
67 configs = [ "//build/config/coverage:default_coverage" ]
68 }
kjellander080a1e32016-05-25 11:37:11 -070069 }
70
Anders Carlsson358f2e02018-06-04 10:24:37 +020071 config("used_from_extension") {
72 if (is_ios && rtc_apprtcmobile_broadcast_extension) {
73 cflags = [ "-fapplication-extension" ]
74 }
75 }
76
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020077 # TODO(bugs.webrtc.org/9627): Remove this when unused. Targets should depend on base_objc
78 # or helpers_objc directly instead.
Mirko Bonadei86d053c2019-10-17 21:32:04 +020079 rtc_library("common_objc") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +020080 visibility = [ "*" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020081
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +010082 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020083
84 public_configs = [ ":common_config_objc" ]
85
86 deps = [
87 ":base_objc",
88 ":helpers_objc",
89 ]
90 }
91
Mirko Bonadei86d053c2019-10-17 21:32:04 +020092 rtc_library("base_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020093 visibility = [ "*" ]
94 sources = [
95 "objc/base/RTCCodecSpecificInfo.h",
96 "objc/base/RTCEncodedImage.h",
97 "objc/base/RTCEncodedImage.m",
98 "objc/base/RTCI420Buffer.h",
99 "objc/base/RTCLogging.h",
100 "objc/base/RTCLogging.mm",
101 "objc/base/RTCMacros.h",
102 "objc/base/RTCMutableI420Buffer.h",
103 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +0100104 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200105 "objc/base/RTCVideoCapturer.h",
106 "objc/base/RTCVideoCapturer.m",
107 "objc/base/RTCVideoCodecInfo.h",
108 "objc/base/RTCVideoCodecInfo.m",
109 "objc/base/RTCVideoDecoder.h",
110 "objc/base/RTCVideoDecoderFactory.h",
111 "objc/base/RTCVideoEncoder.h",
112 "objc/base/RTCVideoEncoderFactory.h",
113 "objc/base/RTCVideoEncoderQpThresholds.h",
114 "objc/base/RTCVideoEncoderQpThresholds.m",
115 "objc/base/RTCVideoEncoderSettings.h",
116 "objc/base/RTCVideoEncoderSettings.m",
117 "objc/base/RTCVideoFrame.h",
118 "objc/base/RTCVideoFrame.mm",
119 "objc/base/RTCVideoFrameBuffer.h",
120 "objc/base/RTCVideoRenderer.h",
121 "objc/base/RTCYUVPlanarBuffer.h",
tkchin9eeb6242016-04-27 01:54:20 -0700122 ]
denicijad2088152017-04-28 02:14:54 -0700123
mbonadei1e060c62017-04-21 00:02:02 -0700124 deps = [
Artem Titov94b57c02019-03-21 13:35:10 +0100125 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100126 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200127 "../rtc_base:logging",
mbonadei1e060c62017-04-21 00:02:02 -0700128 ]
Anders Carlsson358f2e02018-06-04 10:24:37 +0200129 configs += [
130 "..:common_objc",
131 ":used_from_extension",
132 ]
kthelgasonc0977102017-04-24 00:57:16 -0700133
kthelgason36d658d2017-08-24 05:43:45 -0700134 public_configs = [ ":common_config_objc" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200135 }
136
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200137 rtc_library("helpers_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200138 sources = [
139 "objc/helpers/AVCaptureSession+DevicePosition.h",
140 "objc/helpers/AVCaptureSession+DevicePosition.mm",
141 "objc/helpers/NSString+StdString.h",
142 "objc/helpers/NSString+StdString.mm",
143 "objc/helpers/RTCDispatcher+Private.h",
144 "objc/helpers/RTCDispatcher.h",
145 "objc/helpers/RTCDispatcher.m",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200146 "objc/helpers/scoped_cftyperef.h",
147 ]
148
149 deps = [
150 ":base_objc",
151 "../rtc_base:checks",
152 ]
153
Ali Tofigh6364d082022-03-14 13:32:04 +0100154 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
155
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200156 frameworks = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200157 "AVFoundation.framework",
158 "CoreMedia.framework",
159 ]
160
161 configs += [
162 "..:common_objc",
163 ":used_from_extension",
164 ]
165
166 public_configs = [ ":common_config_objc" ]
denicijad2088152017-04-28 02:14:54 -0700167
kjellander3bcedd32016-06-08 01:14:15 -0700168 if (is_ios) {
169 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200170 "objc/helpers/RTCCameraPreviewView.h",
171 "objc/helpers/RTCCameraPreviewView.m",
172 "objc/helpers/UIDevice+RTCDevice.h",
173 "objc/helpers/UIDevice+RTCDevice.mm",
174 ]
175 }
176 }
177
178 if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200179 rtc_library("callback_logger_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200180 sources = [
181 "objc/api/logging/RTCCallbackLogger.h",
182 "objc/api/logging/RTCCallbackLogger.mm",
183 ]
184
185 deps = [
186 ":base_objc",
Ali Tofigh6364d082022-03-14 13:32:04 +0100187 ":helpers_objc",
Artem Titov94b57c02019-03-21 13:35:10 +0100188 "../rtc_base",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200189 "../rtc_base:checks",
190 "../rtc_base:logging",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200191 ]
192
193 configs += [
194 "..:common_objc",
195 ":used_from_extension",
kjellander3bcedd32016-06-08 01:14:15 -0700196 ]
Ali Tofigh6364d082022-03-14 13:32:04 +0100197
198 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
denicijad2088152017-04-28 02:14:54 -0700199 }
200
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200201 rtc_library("file_logger_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200202 sources = [
203 "objc/api/peerconnection/RTCFileLogger.h",
204 "objc/api/peerconnection/RTCFileLogger.mm",
205 ]
206
207 deps = [
208 ":base_objc",
Artem Titov94b57c02019-03-21 13:35:10 +0100209 "../rtc_base",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200210 "../rtc_base:checks",
211 "../rtc_base:logging",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200212 ]
213
214 configs += [
215 "..:common_objc",
216 ":used_from_extension",
kthelgason2f088792017-05-30 01:48:47 -0700217 ]
218 }
219 }
220
mbonadei2c8ac1b2017-05-31 05:14:26 -0700221 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100222 if (is_ios) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200223 rtc_library("native_api_audio_device_module") {
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200224 visibility = [ "*" ]
225
226 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200227 "objc/native/api/audio_device_module.h",
228 "objc/native/api/audio_device_module.mm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200229 ]
230
231 deps = [
232 ":audio_device",
233 "../modules/audio_device:audio_device_api",
234 "../modules/audio_device:audio_device_generic",
235 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200236 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 02:54:12 +0200237 "../rtc_base:refcount",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200238 "../rtc_base:rtc_base_approved",
239 "../system_wrappers",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200240 ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200241 }
242
243 rtc_source_set("audio_session_observer") {
244 visibility = [ ":*" ]
245
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100246 sources = [ "objc/native/src/audio/audio_session_observer.h" ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200247
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100248 deps = [
249 "../rtc_base",
250 "../rtc_base:threading",
251 ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200252 }
253
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200254 rtc_library("audio_device") {
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200255 visibility = [ "*" ]
256
257 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200258 "objc/native/src/audio/audio_device_ios.h",
259 "objc/native/src/audio/audio_device_ios.mm",
260 "objc/native/src/audio/audio_device_module_ios.h",
261 "objc/native/src/audio/audio_device_module_ios.mm",
262 "objc/native/src/audio/helpers.h",
263 "objc/native/src/audio/helpers.mm",
264 "objc/native/src/audio/voice_processing_audio_unit.h",
265 "objc/native/src/audio/voice_processing_audio_unit.mm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200266 ]
267
268 deps = [
269 ":audio_objc",
270 ":audio_session_observer",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200271 ":base_objc",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200272 "../api:array_view",
Danil Chapovalova6cb1502019-06-27 15:16:34 +0200273 "../api/task_queue",
274 "../api/task_queue:default_task_queue_factory",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200275 "../modules/audio_device:audio_device_api",
276 "../modules/audio_device:audio_device_buffer",
277 "../modules/audio_device:audio_device_generic",
Artem Titov94b57c02019-03-21 13:35:10 +0100278 "../rtc_base",
Florent Castellibddfe022022-04-04 15:03:10 +0200279 "../rtc_base:atomicops",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200280 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200281 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200282 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 02:54:12 +0200283 "../rtc_base:refcount",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100284 "../rtc_base:threading",
Florent Castellidd837e22022-04-04 17:16:15 +0200285 "../rtc_base:timeutils",
Kári Tristan Helgasonf49429d2019-03-28 11:03:27 +0100286 "../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200287 "../system_wrappers:metrics",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200288 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200289 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200290
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200291 frameworks = [ "AudioToolbox.framework" ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200292 }
293
Joe Chen0b3a6e32019-12-26 23:01:42 -0800294 # This target exists to expose :audio_session_objc and
295 # :audio_session_delegate_adapter_objc for backward compatibility,
296 # and should be deprecated.
297 group("audio_objc") {
298 public_deps = [ # no-presubmit-check TODO(webrtc:11238)
299 ":audio_session_delegate_adapter_objc",
300 ":audio_session_objc",
301 ]
302 }
303
304 rtc_library("audio_session_delegate_adapter_objc") {
305 sources = [
306 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.h",
307 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.mm",
308 ]
309
310 configs += [
311 "..:common_objc",
312 ":used_from_extension",
313 ]
314
315 public_configs = [ ":common_config_objc" ]
316
317 deps = [
318 ":audio_session_objc",
319 ":audio_session_observer",
320 ":base_objc",
321 ]
322 }
323
324 rtc_library("audio_session_objc") {
Joe Chen3b19b272020-01-09 08:31:06 -0800325 visibility = [ "*" ]
326
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100327 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200328 "objc/components/audio/RTCAudioSession+Configuration.mm",
329 "objc/components/audio/RTCAudioSession+Private.h",
330 "objc/components/audio/RTCAudioSession.h",
331 "objc/components/audio/RTCAudioSession.mm",
332 "objc/components/audio/RTCAudioSessionConfiguration.h",
333 "objc/components/audio/RTCAudioSessionConfiguration.m",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100334 ]
Joe Chen0b3a6e32019-12-26 23:01:42 -0800335
Anders Carlsson358f2e02018-06-04 10:24:37 +0200336 configs += [
337 "..:common_objc",
338 ":used_from_extension",
339 ]
denicija59ee91b2017-06-05 05:48:47 -0700340
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100341 public_configs = [ ":common_config_objc" ]
Anders Carlsson8ecfd802017-09-15 14:07:30 +0200342
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200343 frameworks = [ "AVFoundation.framework" ]
Jiawei Ouc9e6b962018-10-09 12:33:06 -0700344
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100345 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200346 ":base_objc",
347 ":helpers_objc",
Artem Titov94b57c02019-03-21 13:35:10 +0100348 "../rtc_base",
Florent Castellibddfe022022-04-04 15:03:10 +0200349 "../rtc_base:atomicops",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100350 "../rtc_base:checks",
351 "../rtc_base:rtc_base_approved",
Niels Möller072c0082021-02-15 16:30:44 +0100352 "../rtc_base/synchronization:mutex",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100353 ]
Byoungchan Lee0a54e7a2021-09-06 22:32:52 +0900354
355 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
denicija59ee91b2017-06-05 05:48:47 -0700356 }
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700357
358 rtc_source_set("network_monitor_observer") {
359 visibility = [ ":*" ]
360
361 sources = [ "objc/native/src/network_monitor_observer.h" ]
362
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100363 deps = [
364 "../rtc_base",
365 "../rtc_base:network_constants",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200366 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100367 "../rtc_base:threading",
368 ]
Ali Tofigh7fa90572022-03-17 15:47:49 +0100369
370 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700371 }
372
373 rtc_library("network_monitor_objc") {
374 visibility = [ "*" ]
375
376 sources = [
377 "objc/components/network/RTCNetworkMonitor+Private.h",
378 "objc/components/network/RTCNetworkMonitor.h",
379 "objc/components/network/RTCNetworkMonitor.mm",
380 ]
381
382 configs += [ ":used_from_extension" ]
383
384 frameworks = [ "Network.framework" ]
385
386 deps = [
387 ":base_objc",
388 ":helpers_objc",
389 ":network_monitor_observer",
Ali Tofigh7fa90572022-03-17 15:47:49 +0100390 "../rtc_base:stringutils",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700391 "../rtc_base/system:gcd_helpers",
392 ]
393 }
denicija59ee91b2017-06-05 05:48:47 -0700394 }
zhihuanga4c113a2017-06-28 14:05:44 -0700395
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200396 rtc_library("videosource_objc") {
zhihuanga4c113a2017-06-28 14:05:44 -0700397 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200398 "objc/api/peerconnection/RTCVideoSource+Private.h",
399 "objc/api/peerconnection/RTCVideoSource.h",
400 "objc/api/peerconnection/RTCVideoSource.mm",
zhihuanga4c113a2017-06-28 14:05:44 -0700401 ]
402
403 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200404 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100405 ":mediasource_objc",
406 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100407 ":videoframebuffer_objc",
zhihuanga4c113a2017-06-28 14:05:44 -0700408 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +0200409 "../api:media_stream_interface",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200410 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200411 "../api/video:video_rtp_headers",
zhihuanga4c113a2017-06-28 14:05:44 -0700412 "../common_video",
413 "../media:rtc_media_base",
Harald Alvestrande5a73f52022-03-28 12:06:34 +0000414 "../pc:video_track_source_proxy",
Artem Titov94b57c02019-03-21 13:35:10 +0100415 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100416 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100417 "../rtc_base:threading",
Mirko Bonadei401d0562017-12-14 11:24:00 +0100418 "//third_party/libyuv",
zhihuanga4c113a2017-06-28 14:05:44 -0700419 ]
420
Anders Carlsson358f2e02018-06-04 10:24:37 +0200421 configs += [
422 "..:common_objc",
423 ":used_from_extension",
424 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700425 }
426
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200427 rtc_library("videoframebuffer_objc") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200428 visibility = [ "*" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100429 sources = [
Anders Carlsson4e5af962018-09-03 14:44:50 +0200430 "objc/api/video_frame_buffer/RTCNativeI420Buffer+Private.h",
431 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
432 "objc/api/video_frame_buffer/RTCNativeI420Buffer.mm",
433 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
434 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200435 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
436 "objc/components/video_frame_buffer/RTCCVPixelBuffer.mm",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100437 ]
438 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200439 ":base_objc",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200440 "../rtc_base:logging",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200441 "//api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200442 "//api/video:video_rtp_headers",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100443 "//common_video",
444 "//rtc_base:checks",
445 "//rtc_base:rtc_base_approved",
446 "//third_party/libyuv",
447 ]
Anders Carlsson358f2e02018-06-04 10:24:37 +0200448 configs += [
449 "..:common_objc",
450 ":used_from_extension",
451 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200452 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100453 "VideoToolbox.framework",
Oleh Prypinb3f78de2019-07-18 22:25:48 +0200454 "CoreGraphics.framework",
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100455 "CoreVideo.framework",
456 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100457 }
458
Jordan Rose53d3fc92021-07-06 12:16:41 -0700459 rtc_library("opengl_objc") {
kthelgason2f088792017-05-30 01:48:47 -0700460 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200461 "objc/components/renderer/opengl/RTCDefaultShader.h",
462 "objc/components/renderer/opengl/RTCDefaultShader.mm",
463 "objc/components/renderer/opengl/RTCI420TextureCache.h",
464 "objc/components/renderer/opengl/RTCI420TextureCache.mm",
465 "objc/components/renderer/opengl/RTCOpenGLDefines.h",
466 "objc/components/renderer/opengl/RTCShader.h",
467 "objc/components/renderer/opengl/RTCShader.mm",
468 "objc/components/renderer/opengl/RTCVideoViewShading.h",
kthelgason2f088792017-05-30 01:48:47 -0700469 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200470 frameworks = [ "CoreVideo.framework" ]
denicijad2088152017-04-28 02:14:54 -0700471 if (is_ios) {
denicija070d5e32017-02-26 11:44:13 -0800472 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200473 "objc/components/renderer/opengl/RTCNV12TextureCache.h",
474 "objc/components/renderer/opengl/RTCNV12TextureCache.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700475 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200476 frameworks += [
mbonadei2c8ac1b2017-05-31 05:14:26 -0700477 "GLKit.framework",
478 "OpenGLES.framework",
479 "QuartzCore.framework",
480 ]
481 } else if (is_mac) {
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200482 frameworks += [
mbonadei2c8ac1b2017-05-31 05:14:26 -0700483 "CoreMedia.framework",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700484 "OpenGL.framework",
denicija070d5e32017-02-26 11:44:13 -0800485 ]
486 }
Mirko Bonadei6b09c452021-07-05 16:47:49 +0200487
488 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
489 # workaround.
Björn Terelius02768ae2021-07-02 16:19:32 +0200490 defines = [ "GLES_SILENCE_DEPRECATION" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700491
kthelgason2f088792017-05-30 01:48:47 -0700492 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200493 ":base_objc",
494 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100495 ":mediaconstraints_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100496 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100497 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100498 ":videosource_objc",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700499 "../api:libjingle_peerconnection_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200500 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200501 "../api/video:video_rtp_headers",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700502 "../common_video",
503 "../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100504 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100505 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200506 "../rtc_base:logging",
tkchin9eeb6242016-04-27 01:54:20 -0700507 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200508 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700509
Anders Carlsson358f2e02018-06-04 10:24:37 +0200510 configs += [
511 "..:common_objc",
512 ":used_from_extension",
513 ]
ehmaldonadoda8dcfb2017-01-04 07:11:23 -0800514 }
ehmaldonadoda8dcfb2017-01-04 07:11:23 -0800515
Jordan Rose53d3fc92021-07-06 12:16:41 -0700516 rtc_library("opengl_ui_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000517 visibility = [ "*" ]
Jake Brombergfb7fd242021-06-14 13:44:25 -0700518 allow_poison = [
519 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
520 "default_task_queue",
521 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700522 if (is_ios) {
523 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200524 "objc/components/renderer/opengl/RTCDisplayLinkTimer.h",
525 "objc/components/renderer/opengl/RTCDisplayLinkTimer.m",
526 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
527 "objc/components/renderer/opengl/RTCEAGLVideoView.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700528 ]
Mirko Bonadei6b09c452021-07-05 16:47:49 +0200529
530 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
531 # workaround.
Björn Terelius02768ae2021-07-02 16:19:32 +0200532 defines = [ "GLES_SILENCE_DEPRECATION" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700533 }
534 if (is_mac) {
535 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200536 "objc/components/renderer/opengl/RTCNSGLVideoView.h",
537 "objc/components/renderer/opengl/RTCNSGLVideoView.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700538 ]
539 }
540 configs += [ "..:common_objc" ]
541 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200542 ":base_objc",
543 ":helpers_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -0700544 ":metal_objc",
Jordan Rose53d3fc92021-07-06 12:16:41 -0700545 ":opengl_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100546 ":videocapture_objc",
547 ":videoframebuffer_objc",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700548 ]
549 }
kthelgasonebc34e72016-09-15 04:30:18 -0700550
Jake Brombergfb7fd242021-06-14 13:44:25 -0700551 rtc_library("metal_objc") {
552 visibility = [ "*" ]
553 allow_poison = [
554 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
555 "default_task_queue",
556 ]
557 sources = [
558 "objc/components/renderer/metal/RTCMTLI420Renderer.h",
559 "objc/components/renderer/metal/RTCMTLI420Renderer.mm",
560 "objc/components/renderer/metal/RTCMTLNV12Renderer.h",
561 "objc/components/renderer/metal/RTCMTLNV12Renderer.mm",
562 "objc/components/renderer/metal/RTCMTLRGBRenderer.h",
563 "objc/components/renderer/metal/RTCMTLRGBRenderer.mm",
564 "objc/components/renderer/metal/RTCMTLRenderer+Private.h",
565 "objc/components/renderer/metal/RTCMTLRenderer.h",
566 "objc/components/renderer/metal/RTCMTLRenderer.mm",
567 ]
568 frameworks = [
569 "CoreVideo.framework",
570 "Metal.framework",
571 "MetalKit.framework",
572 ]
573 if (is_ios) {
574 sources += [
575 "objc/components/renderer/metal/RTCMTLVideoView.h",
576 "objc/components/renderer/metal/RTCMTLVideoView.m",
Danil Chapovalov41300af2019-07-10 12:44:43 +0200577 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700578 }
Jake Brombergfb7fd242021-06-14 13:44:25 -0700579 if (is_mac) {
580 sources += [
581 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
582 "objc/components/renderer/metal/RTCMTLNSVideoView.m",
583 ]
584 frameworks += [ "AppKit.framework" ]
585 }
586 deps = [
587 ":base_objc",
588 ":peerconnectionfactory_base_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -0700589 ":videoframebuffer_objc",
590 "../api/video:video_frame",
591 "../api/video:video_rtp_headers",
592 "../rtc_base:checks",
593 "../rtc_base:rtc_base_approved",
594 ]
595 configs += [ "..:common_objc" ]
596 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700597 }
598
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200599 # TODO(bugs.webrtc.org/9627): Remove this target.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200600 rtc_library("videocapturebase_objc") {
Anders Carlsson73119182018-03-15 09:41:03 +0100601 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100602 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson73119182018-03-15 09:41:03 +0100603
604 configs += [ "..:common_objc" ]
605
606 public_configs = [ ":common_config_objc" ]
607
608 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200609 ":base_objc",
Anders Carlsson73119182018-03-15 09:41:03 +0100610 ":videoframebuffer_objc",
611 ]
612 }
613
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200614 rtc_library("videocapture_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000615 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +0100616 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadei2c8ac1b2017-05-31 05:14:26 -0700617 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200618 "objc/components/capturer/RTCCameraVideoCapturer.h",
619 "objc/components/capturer/RTCCameraVideoCapturer.m",
Mirko Bonadei19640aa2020-10-19 16:12:43 +0200620 "objc/components/capturer/RTCFileVideoCapturer.h",
621 "objc/components/capturer/RTCFileVideoCapturer.m",
zhihuanga4c113a2017-06-28 14:05:44 -0700622 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200623 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100624 "AVFoundation.framework",
625 "CoreVideo.framework",
Mirko Bonadei19640aa2020-10-19 16:12:43 +0200626 "QuartzCore.framework",
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100627 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700628
zhihuanga4c113a2017-06-28 14:05:44 -0700629 configs += [ "..:common_objc" ]
630
kthelgason36d658d2017-08-24 05:43:45 -0700631 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700632
zhihuanga4c113a2017-06-28 14:05:44 -0700633 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200634 ":base_objc",
635 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100636 ":videoframebuffer_objc",
Yura Yaroshevichebf739b2020-03-16 18:00:59 +0300637 "../rtc_base/system:gcd_helpers",
zhihuanga4c113a2017-06-28 14:05:44 -0700638 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700639 }
640
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200641 rtc_library("videocodec_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200642 visibility = [ "*" ]
Mirko Bonadei96ede162018-09-06 13:45:44 +0200643 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100644 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200645 "objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h",
646 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
647 "objc/components/video_codec/RTCCodecSpecificInfoH264.mm",
648 "objc/components/video_codec/RTCH264ProfileLevelId.h",
649 "objc/components/video_codec/RTCH264ProfileLevelId.mm",
zhihuanga4c113a2017-06-28 14:05:44 -0700650 ]
Yura Yaroshevich0f77fea2018-04-26 15:41:01 +0300651 if (is_ios) {
652 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200653 "objc/components/video_codec/UIDevice+H264Profile.h",
654 "objc/components/video_codec/UIDevice+H264Profile.mm",
Yura Yaroshevich0f77fea2018-04-26 15:41:01 +0300655 ]
656 }
Mirko Bonadeifc52b912019-03-01 10:32:56 +0100657
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100658 public_configs = [ ":common_config_objc" ]
659 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200660 ":base_objc",
661 ":helpers_objc",
kthelgasonfb143122017-07-25 07:55:58 -0700662 "../api/video_codecs:video_codecs_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100663 "../common_video",
zhihuanga4c113a2017-06-28 14:05:44 -0700664 "../media:rtc_media_base",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100665 "../modules/video_coding:video_codec_interface",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200666 "../rtc_base:checks",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100667 "../rtc_base:rtc_base_approved",
zhihuanga4c113a2017-06-28 14:05:44 -0700668 ]
669 }
670
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200671 rtc_library("default_codec_factory_objc") {
Anders Carlssondd8c1652018-01-30 10:32:13 +0100672 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200673 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
674 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.m",
675 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
676 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.m",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100677 ]
678
679 deps = [
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300680 ":av1",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200681 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100682 ":native_video",
683 ":videocodec_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200684 ":videotoolbox_objc",
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +0200685 ":vp8",
686 ":vp9",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200687 ":vpx_codec_constants",
688 ]
689 }
690
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200691 rtc_library("vpx_codec_constants") {
Mirko Bonadei96ede162018-09-06 13:45:44 +0200692 configs += [ "..:no_global_constructors" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200693 sources = [
694 "objc/api/video_codec/RTCVideoCodecConstants.h",
695 "objc/api/video_codec/RTCVideoCodecConstants.mm",
696 ]
697
698 deps = [
699 ":base_objc",
700 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100701 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100702 }
703
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200704 rtc_library("vp8") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100705 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200706 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100707 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200708 "objc/api/video_codec/RTCVideoDecoderVP8.h",
709 "objc/api/video_codec/RTCVideoDecoderVP8.mm",
710 "objc/api/video_codec/RTCVideoEncoderVP8.h",
711 "objc/api/video_codec/RTCVideoEncoderVP8.mm",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100712 ]
713
Anders Carlssondd8c1652018-01-30 10:32:13 +0100714 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200715 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100716 ":wrapped_native_codec_objc",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100717 "../modules/video_coding:webrtc_vp8",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100718 ]
719 }
720
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200721 rtc_library("vp9") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100722 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200723 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100724 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200725 "objc/api/video_codec/RTCVideoDecoderVP9.h",
726 "objc/api/video_codec/RTCVideoDecoderVP9.mm",
727 "objc/api/video_codec/RTCVideoEncoderVP9.h",
728 "objc/api/video_codec/RTCVideoEncoderVP9.mm",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100729 ]
730
Anders Carlssondd8c1652018-01-30 10:32:13 +0100731 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200732 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100733 ":wrapped_native_codec_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200734 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100735 "../modules/video_coding:webrtc_vp9",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100736 ]
737 }
738
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300739 rtc_library("av1") {
740 visibility = [ "*" ]
741 allow_poison = [ "software_video_codecs" ]
742 sources = [
743 "objc/api/video_codec/RTCVideoDecoderAV1.h",
744 "objc/api/video_codec/RTCVideoDecoderAV1.mm",
745 "objc/api/video_codec/RTCVideoEncoderAV1.h",
746 "objc/api/video_codec/RTCVideoEncoderAV1.mm",
747 ]
748
749 deps = [
750 ":base_objc",
751 ":wrapped_native_codec_objc",
752 "../media:rtc_media_base",
753 "../modules/video_coding/codecs/av1:libaom_av1_decoder",
philipel95701502022-01-18 18:47:52 +0100754 "../modules/video_coding/codecs/av1:libaom_av1_encoder_if_supported",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300755 ]
756 }
757
zhihuanga4c113a2017-06-28 14:05:44 -0700758 # Build the PeerConnectionFactory without audio/video support.
759 # This target depends on the objc_peeerconnectionfactory_base which still
760 # includes some audio/video related objects such as RTCAudioSource because
761 # these objects are just thin wrappers of native C++ interfaces required
762 # when implementing webrtc::PeerConnectionFactoryInterface and
763 # webrtc::PeerConnectionInterface.
Kári Tristan Helgasona2d89fc2018-03-06 10:18:43 +0100764 # The applications which only use WebRTC DataChannel can depend on this.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200765 rtc_library("peerconnectionfactory_no_media_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000766 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +0200767 allow_poison = [
768 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
769 "default_task_queue",
770 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700771 defines = [ "HAVE_NO_MEDIA" ]
772
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100773 sources = [ "objc/helpers/noop.mm" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700774
kthelgason36d658d2017-08-24 05:43:45 -0700775 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700776
zhihuanga4c113a2017-06-28 14:05:44 -0700777 deps = [
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100778 ":native_api",
779 ":native_video",
kthelgason36d658d2017-08-24 05:43:45 -0700780 ":peerconnectionfactory_base_objc",
zhihuanga4c113a2017-06-28 14:05:44 -0700781 "../api:libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100782 "../rtc_base",
zhihuanga4c113a2017-06-28 14:05:44 -0700783 ]
784 }
785
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200786 rtc_library("mediaconstraints_objc") {
Mirko Bonadei96ede162018-09-06 13:45:44 +0200787 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100788 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200789 "objc/api/peerconnection/RTCMediaConstraints+Private.h",
790 "objc/api/peerconnection/RTCMediaConstraints.h",
791 "objc/api/peerconnection/RTCMediaConstraints.mm",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100792 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100793
794 public_configs = [ ":common_config_objc" ]
795 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200796 ":base_objc",
797 ":helpers_objc",
Niels Möllerdac03d92019-02-13 08:52:27 +0100798 ":media_constraints",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100799 ]
800 }
801
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200802 # TODO(bugs.webrtc.org/9627): Remove, targets should depend on base_objc.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200803 rtc_library("videorenderer_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200804 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100805 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100806
807 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100808 public_configs = [ ":common_config_objc" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200809
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100810 deps = [ ":base_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100811 }
812
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200813 rtc_library("videorendereradapter_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200814 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +0100815 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson9823ee42018-03-07 10:32:03 +0100816 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200817 "objc/api/RTCVideoRendererAdapter+Private.h",
818 "objc/api/RTCVideoRendererAdapter.h",
819 "objc/api/RTCVideoRendererAdapter.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100820 ]
821
822 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100823 public_configs = [ ":common_config_objc" ]
824
825 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200826 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100827 ":native_api",
828 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100829 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +0200830 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100831 ]
832 }
833
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200834 rtc_library("mediasource_objc") {
Anders Carlsson9823ee42018-03-07 10:32:03 +0100835 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200836 "objc/api/peerconnection/RTCMediaSource+Private.h",
837 "objc/api/peerconnection/RTCMediaSource.h",
838 "objc/api/peerconnection/RTCMediaSource.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100839 ]
840
Anders Carlsson358f2e02018-06-04 10:24:37 +0200841 configs += [
842 "..:common_objc",
843 ":used_from_extension",
844 ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100845 public_configs = [ ":common_config_objc" ]
846
847 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200848 ":base_objc",
Niels Möllere942b142019-09-17 14:30:41 +0200849 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100850 "../rtc_base:checks",
851 ]
852 }
853
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200854 rtc_library("base_native_additions_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200855 sources = [
856 "objc/api/peerconnection/RTCEncodedImage+Private.h",
857 "objc/api/peerconnection/RTCEncodedImage+Private.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200858 "objc/api/peerconnection/RTCVideoCodecInfo+Private.h",
859 "objc/api/peerconnection/RTCVideoCodecInfo+Private.mm",
860 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.h",
861 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.mm",
862 ]
863
864 configs += [ "..:common_objc" ]
865
866 public_configs = [ ":common_config_objc" ]
867
868 deps = [
869 ":base_objc",
870 ":helpers_objc",
Niels Möller4dc66c52018-10-05 14:17:58 +0200871 "../api/video:encoded_image",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200872 "../api/video_codecs:video_codecs_api",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200873 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +0100874 "../rtc_base",
Florent Castellif86f6f92022-04-05 02:54:12 +0200875 "../rtc_base:refcount",
Florent Castellie10a9f62022-04-04 17:04:37 +0200876 "../rtc_base:safe_conversions",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200877 ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200878 }
879
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200880 rtc_library("peerconnectionfactory_base_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200881 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +0200882 allow_poison = [
883 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
884 "default_task_queue",
885 ]
Byoungchan Lee524a4222021-11-19 19:03:49 +0900886 configs += [ "..:no_global_constructors" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700887 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200888 "objc/api/peerconnection/RTCAudioSource+Private.h",
889 "objc/api/peerconnection/RTCAudioSource.h",
890 "objc/api/peerconnection/RTCAudioSource.mm",
891 "objc/api/peerconnection/RTCAudioTrack+Private.h",
892 "objc/api/peerconnection/RTCAudioTrack.h",
893 "objc/api/peerconnection/RTCAudioTrack.mm",
894 "objc/api/peerconnection/RTCCertificate.h",
895 "objc/api/peerconnection/RTCCertificate.mm",
896 "objc/api/peerconnection/RTCConfiguration+Native.h",
897 "objc/api/peerconnection/RTCConfiguration+Private.h",
898 "objc/api/peerconnection/RTCConfiguration.h",
899 "objc/api/peerconnection/RTCConfiguration.mm",
Benjamin Wright8c27cca2018-10-25 10:16:44 -0700900 "objc/api/peerconnection/RTCCryptoOptions.h",
901 "objc/api/peerconnection/RTCCryptoOptions.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200902 "objc/api/peerconnection/RTCDataChannel+Private.h",
903 "objc/api/peerconnection/RTCDataChannel.h",
904 "objc/api/peerconnection/RTCDataChannel.mm",
905 "objc/api/peerconnection/RTCDataChannelConfiguration+Private.h",
906 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
907 "objc/api/peerconnection/RTCDataChannelConfiguration.mm",
908 "objc/api/peerconnection/RTCDtmfSender+Private.h",
909 "objc/api/peerconnection/RTCDtmfSender.h",
910 "objc/api/peerconnection/RTCDtmfSender.mm",
911 "objc/api/peerconnection/RTCFieldTrials.h",
912 "objc/api/peerconnection/RTCFieldTrials.mm",
913 "objc/api/peerconnection/RTCIceCandidate+Private.h",
914 "objc/api/peerconnection/RTCIceCandidate.h",
915 "objc/api/peerconnection/RTCIceCandidate.mm",
Jaehyun Kod2110982021-11-30 19:01:43 +0900916 "objc/api/peerconnection/RTCIceCandidateErrorEvent+Private.h",
917 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
918 "objc/api/peerconnection/RTCIceCandidateErrorEvent.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200919 "objc/api/peerconnection/RTCIceServer+Private.h",
920 "objc/api/peerconnection/RTCIceServer.h",
921 "objc/api/peerconnection/RTCIceServer.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200922 "objc/api/peerconnection/RTCLegacyStatsReport+Private.h",
923 "objc/api/peerconnection/RTCLegacyStatsReport.h",
924 "objc/api/peerconnection/RTCLegacyStatsReport.mm",
925 "objc/api/peerconnection/RTCMediaStream+Private.h",
926 "objc/api/peerconnection/RTCMediaStream.h",
927 "objc/api/peerconnection/RTCMediaStream.mm",
928 "objc/api/peerconnection/RTCMediaStreamTrack+Private.h",
929 "objc/api/peerconnection/RTCMediaStreamTrack.h",
930 "objc/api/peerconnection/RTCMediaStreamTrack.mm",
931 "objc/api/peerconnection/RTCMetrics.h",
932 "objc/api/peerconnection/RTCMetrics.mm",
933 "objc/api/peerconnection/RTCMetricsSampleInfo+Private.h",
934 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
935 "objc/api/peerconnection/RTCMetricsSampleInfo.mm",
936 "objc/api/peerconnection/RTCPeerConnection+DataChannel.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200937 "objc/api/peerconnection/RTCPeerConnection+Private.h",
938 "objc/api/peerconnection/RTCPeerConnection+Stats.mm",
939 "objc/api/peerconnection/RTCPeerConnection.h",
940 "objc/api/peerconnection/RTCPeerConnection.mm",
941 "objc/api/peerconnection/RTCPeerConnectionFactory+Native.h",
942 "objc/api/peerconnection/RTCPeerConnectionFactory+Private.h",
943 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
944 "objc/api/peerconnection/RTCPeerConnectionFactory.mm",
945 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.h",
946 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.mm",
947 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.h",
948 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.mm",
949 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions+Private.h",
950 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
951 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.mm",
952 "objc/api/peerconnection/RTCRtcpParameters+Private.h",
953 "objc/api/peerconnection/RTCRtcpParameters.h",
954 "objc/api/peerconnection/RTCRtcpParameters.mm",
955 "objc/api/peerconnection/RTCRtpCodecParameters+Private.h",
956 "objc/api/peerconnection/RTCRtpCodecParameters.h",
957 "objc/api/peerconnection/RTCRtpCodecParameters.mm",
958 "objc/api/peerconnection/RTCRtpEncodingParameters+Private.h",
959 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
960 "objc/api/peerconnection/RTCRtpEncodingParameters.mm",
961 "objc/api/peerconnection/RTCRtpHeaderExtension+Private.h",
962 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
963 "objc/api/peerconnection/RTCRtpHeaderExtension.mm",
964 "objc/api/peerconnection/RTCRtpParameters+Private.h",
965 "objc/api/peerconnection/RTCRtpParameters.h",
966 "objc/api/peerconnection/RTCRtpParameters.mm",
Benjamin Wrightddf1a3e2018-10-02 10:20:58 -0700967 "objc/api/peerconnection/RTCRtpReceiver+Native.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200968 "objc/api/peerconnection/RTCRtpReceiver+Private.h",
969 "objc/api/peerconnection/RTCRtpReceiver.h",
970 "objc/api/peerconnection/RTCRtpReceiver.mm",
Benjamin Wrightddf1a3e2018-10-02 10:20:58 -0700971 "objc/api/peerconnection/RTCRtpSender+Native.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200972 "objc/api/peerconnection/RTCRtpSender+Private.h",
973 "objc/api/peerconnection/RTCRtpSender.h",
974 "objc/api/peerconnection/RTCRtpSender.mm",
975 "objc/api/peerconnection/RTCRtpTransceiver+Private.h",
976 "objc/api/peerconnection/RTCRtpTransceiver.h",
977 "objc/api/peerconnection/RTCRtpTransceiver.mm",
978 "objc/api/peerconnection/RTCSSLAdapter.h",
979 "objc/api/peerconnection/RTCSSLAdapter.mm",
980 "objc/api/peerconnection/RTCSessionDescription+Private.h",
981 "objc/api/peerconnection/RTCSessionDescription.h",
982 "objc/api/peerconnection/RTCSessionDescription.mm",
Peter Hanspersbed86042019-02-21 17:27:09 +0100983 "objc/api/peerconnection/RTCStatisticsReport+Private.h",
984 "objc/api/peerconnection/RTCStatisticsReport.h",
985 "objc/api/peerconnection/RTCStatisticsReport.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200986 "objc/api/peerconnection/RTCTracing.h",
987 "objc/api/peerconnection/RTCTracing.mm",
988 "objc/api/peerconnection/RTCVideoTrack+Private.h",
989 "objc/api/peerconnection/RTCVideoTrack.h",
990 "objc/api/peerconnection/RTCVideoTrack.mm",
kthelgason5fe4d492016-12-05 11:27:30 -0800991 ]
kthelgasonebc34e72016-09-15 04:30:18 -0700992
Anders Carlsson358f2e02018-06-04 10:24:37 +0200993 configs += [
994 "..:common_objc",
995 ":used_from_extension",
996 ]
kthelgason36d658d2017-08-24 05:43:45 -0700997 public_configs = [ ":common_config_objc" ]
kthelgasonc0977102017-04-24 00:57:16 -0700998
mbonadei2c8ac1b2017-05-31 05:14:26 -0700999 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001000 ":base_native_additions_objc",
1001 ":base_objc",
1002 ":file_logger_objc",
1003 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001004 ":mediaconstraints_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001005 ":mediasource_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001006 ":native_api",
1007 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001008 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001009 ":videorendereradapter_objc",
1010 ":videosource_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001011 ":videotoolbox_objc",
Mirko Bonadeie51f7852017-12-06 11:23:19 +01001012 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +02001013 "../api:media_stream_interface",
Niels Möller695cf6a2019-05-13 12:27:23 +02001014 "../api:rtc_event_log_output_file",
Peter Hanspersbed86042019-02-21 17:27:09 +01001015 "../api:rtc_stats_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001016 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001017 "../api:scoped_refptr",
Jiawei Ouae810c12018-06-20 16:18:59 -07001018 "../api/audio_codecs:audio_codecs_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001019 "../api/audio_codecs:builtin_audio_decoder_factory",
Jiawei Ouae810c12018-06-20 16:18:59 -07001020 "../api/audio_codecs:builtin_audio_encoder_factory",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001021 "../api/crypto:frame_decryptor_interface",
1022 "../api/crypto:frame_encryptor_interface",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +02001023 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalovaaa11432019-05-17 13:20:14 +02001024 "../api/task_queue:default_task_queue_factory",
Erik Språngceb44952020-09-22 11:36:35 +02001025 "../api/transport:field_trial_based_config",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001026 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001027 "../api/video:video_rtp_headers",
Anders Carlsson7e042812017-10-05 16:55:38 +02001028 "../api/video_codecs:video_codecs_api",
Anders Carlssone5960ce2017-06-22 15:26:30 +02001029 "../common_video",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001030 "../media:rtc_media_base",
Jiawei Ouae810c12018-06-20 16:18:59 -07001031 "../modules/audio_device:audio_device_api",
Artem Titov94b57c02019-03-21 13:35:10 +01001032 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +00001033 "../modules/audio_processing:api",
Patrik Höglund99175c62018-01-08 11:05:10 +01001034 "../modules/video_coding:video_codec_interface",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +00001035 "../pc:peer_connection_factory",
1036 "../pc:webrtc_sdp",
Artem Titov94b57c02019-03-21 13:35:10 +01001037 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001038 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001039 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001040 "../rtc_base:network_constants",
Florent Castellie10a9f62022-04-04 17:04:37 +02001041 "../rtc_base:safe_conversions",
Florent Castellidd837e22022-04-04 17:16:15 +02001042 "../rtc_base:timeutils",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +00001043 "../stats:rtc_stats",
Mirko Bonadei17f48782018-09-28 08:51:10 +02001044 "../system_wrappers:field_trial",
1045 "../system_wrappers:metrics",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001046 ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001047
1048 if (is_ios) {
1049 deps += [ ":native_api_audio_device_module" ]
1050 }
kthelgasonebc34e72016-09-15 04:30:18 -07001051 }
Zeke Chindd0e1e02016-10-11 13:27:26 -07001052
mbonadei2c8ac1b2017-05-31 05:14:26 -07001053 if (rtc_include_tests) {
Daniela012b56b2017-11-15 13:15:24 +01001054 if (is_ios) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001055 rtc_library("sdk_unittests_sources") {
Danielaae012cf2017-10-12 13:46:00 +02001056 testonly = true
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001057 include_dirs = [ "objc/" ]
Daniela012b56b2017-11-15 13:15:24 +01001058
Danielaae012cf2017-10-12 13:46:00 +02001059 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001060 "objc/unittests/ObjCVideoTrackSource_xctest.mm",
1061 "objc/unittests/RTCCVPixelBuffer_xctest.mm",
1062 "objc/unittests/RTCCallbackLogger_xctest.m",
Kári Tristan Helgasonecbdbf62020-02-20 07:34:45 -08001063 "objc/unittests/RTCEncodedImage_xctest.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001064 "objc/unittests/RTCFileVideoCapturer_xctest.mm",
1065 "objc/unittests/RTCH264ProfileLevelId_xctest.m",
Jake Brombergfb7fd242021-06-14 13:44:25 -07001066 "objc/unittests/RTCMTLVideoView_xctest.m",
Aaron Goldenfb4e9bc2019-01-04 12:03:31 -08001067 "objc/unittests/RTCNV12TextureCache_xctest.m",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001068 "objc/unittests/RTCPeerConnectionFactory_xctest.m",
1069 "objc/unittests/frame_buffer_helpers.h",
1070 "objc/unittests/frame_buffer_helpers.mm",
Artem Titarenko42b43152018-10-29 18:18:09 +01001071 "objc/unittests/nalu_rewriter_xctest.mm",
Danielaae012cf2017-10-12 13:46:00 +02001072 ]
Daniela012b56b2017-11-15 13:15:24 +01001073
Mirko Bonadei6b09c452021-07-05 16:47:49 +02001074 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
1075 # workaround.
1076 defines = [ "GLES_SILENCE_DEPRECATION" ]
1077
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001078 # TODO(peterhanspers): Reenable these tests on simulator.
1079 # See bugs.webrtc.org/7812
Lahiru Ginnaliya Gamathige1d0e7b62020-10-20 02:43:02 -07001080 if (target_environment != "simulator") {
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001081 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001082 "objc/unittests/RTCAudioDeviceModule_xctest.mm",
1083 "objc/unittests/RTCAudioDevice_xctest.mm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001084 ]
1085 }
1086
Danielaae012cf2017-10-12 13:46:00 +02001087 deps = [
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001088 ":audio_device",
Joe Chen0b3a6e32019-12-26 23:01:42 -08001089 ":audio_session_objc",
Kári Tristan Helgasonecbdbf62020-02-20 07:34:45 -08001090 ":base_native_additions_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001091 ":base_objc",
1092 ":callback_logger_objc",
Anders Carlssondc6b4772018-01-15 13:31:03 +01001093 ":framework_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001094 ":mediaconstraints_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -07001095 ":metal_objc",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001096 ":native_api",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001097 ":native_api_audio_device_module",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001098 ":native_video",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001099 ":peerconnectionfactory_base_objc",
Artem Titarenko42b43152018-10-29 18:18:09 +01001100 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001101 ":videocapture_objc",
Anders Carlsson79ce8202018-06-01 12:51:09 +02001102 ":videocodec_objc",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001103 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001104 ":videosource_objc",
Danielaae012cf2017-10-12 13:46:00 +02001105 ":videotoolbox_objc",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001106 "../api:scoped_refptr",
Byoungchan Lee43bd7602019-10-08 23:58:41 +09001107 "../api/task_queue:default_task_queue_factory",
Ilya Nikolaevskiy38e9b062020-10-08 14:36:33 +00001108 "../api/video:video_frame",
Artem Titov94b57c02019-03-21 13:35:10 +01001109 "../common_video",
Danielaae012cf2017-10-12 13:46:00 +02001110 "../media:rtc_media_base",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001111 "../media:rtc_media_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +01001112 "../rtc_base",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001113 "../rtc_base:gunit_helpers",
Florent Castelli4467ad72022-04-04 15:18:46 +02001114 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 02:54:12 +02001115 "../rtc_base:refcount",
Byoungchan Lee83ceb902021-11-16 11:31:57 +09001116 "../rtc_base/system:unused",
Artem Titov94b57c02019-03-21 13:35:10 +01001117 "../system_wrappers",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001118 "//third_party/libyuv",
Danielaae012cf2017-10-12 13:46:00 +02001119 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001120
Jordan Rose53d3fc92021-07-06 12:16:41 -07001121 if (rtc_ios_macos_use_opengl_rendering) {
1122 deps += [ ":opengl_objc" ]
1123 }
1124
Danielaae012cf2017-10-12 13:46:00 +02001125 public_deps = [
1126 "//build/config/ios:xctest",
1127 "//third_party/ocmock",
1128 ]
1129 }
1130
Daniela012b56b2017-11-15 13:15:24 +01001131 bundle_data("sdk_unittests_bundle_data") {
Daniela012b56b2017-11-15 13:15:24 +01001132 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001133 "objc/unittests/audio_short16.pcm",
1134 "objc/unittests/audio_short44.pcm",
1135 "objc/unittests/audio_short48.pcm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001136
1137 # Sample video taken from https://media.xiph.org/video/derf/
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001138 "objc/unittests/foreman.mp4",
Daniela012b56b2017-11-15 13:15:24 +01001139 ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001140 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
Daniela012b56b2017-11-15 13:15:24 +01001141 }
1142
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001143 # These tests use static linking.
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001144 rtc_test("sdk_unittests") {
1145 is_xctest = true
Danielaae012cf2017-10-12 13:46:00 +02001146 info_plist = "//test/ios/Info.plist"
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001147 sources = [ "objc/unittests/main.mm" ]
Daniela012b56b2017-11-15 13:15:24 +01001148
Artem Titarenkoa2bc3622019-08-19 14:24:00 +02001149 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Danielaae012cf2017-10-12 13:46:00 +02001150 deps = [
Yura Yaroshevich5297bd22018-06-19 12:51:51 +03001151 ":peerconnectionfactory_base_objc",
Daniela012b56b2017-11-15 13:15:24 +01001152 ":sdk_unittests_bundle_data",
Danielaae012cf2017-10-12 13:46:00 +02001153 ":sdk_unittests_sources",
Niels Möller5a8f8602019-06-12 11:30:59 +02001154 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001155 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001156 "//test:test_support",
Danielaae012cf2017-10-12 13:46:00 +02001157 ]
1158 ldflags = [ "-all_load" ]
1159 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001160
1161 # These tests link to the framework.
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001162 rtc_test("sdk_framework_unittests") {
1163 is_xctest = true
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001164 info_plist = "//test/ios/Info.plist"
1165 sources = [
1166 "objc/unittests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001167 "objc/unittests/main.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001168 ]
1169
Artem Titarenkoa2bc3622019-08-19 14:24:00 +02001170 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001171 deps = [
1172 ":framework_objc+link",
1173 ":ios_framework_bundle",
Niels Möller5a8f8602019-06-12 11:30:59 +02001174 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001175 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001176 "//test:test_support",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001177 ]
1178 }
Danielaae012cf2017-10-12 13:46:00 +02001179 }
1180
1181 # TODO(denicija): once all tests are migrated to xctest remove this source set.
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001182 rtc_library("rtc_unittests_objc") {
mbonadei2c8ac1b2017-05-31 05:14:26 -07001183 testonly = true
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001184
mbonadei2c8ac1b2017-05-31 05:14:26 -07001185 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001186 "objc/unittests/RTCCertificateTest.mm",
1187 "objc/unittests/RTCConfigurationTest.mm",
1188 "objc/unittests/RTCDataChannelConfigurationTest.mm",
1189 "objc/unittests/RTCIceCandidateTest.mm",
1190 "objc/unittests/RTCIceServerTest.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001191 "objc/unittests/RTCMediaConstraintsTest.mm",
1192 "objc/unittests/RTCPeerConnectionFactoryBuilderTest.mm",
1193 "objc/unittests/RTCPeerConnectionTest.mm",
1194 "objc/unittests/RTCSessionDescriptionTest.mm",
1195 "objc/unittests/RTCTracingTest.mm",
1196 "objc/unittests/objc_video_decoder_factory_tests.mm",
1197 "objc/unittests/objc_video_encoder_factory_tests.mm",
1198 "objc/unittests/scoped_cftyperef_tests.mm",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001199 ]
Anders Carlssone7dd83f2018-01-19 11:28:44 +01001200 if (is_ios) {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001201 sources += [ "objc/unittests/RTCCameraVideoCapturerTests.mm" ]
oprypin45197522017-06-22 01:47:20 -07001202 }
mbonadeid7620582017-05-30 01:50:35 -07001203
mbonadei2c8ac1b2017-05-31 05:14:26 -07001204 # |-ObjC| flag needed to make sure category method implementations
1205 # are included:
1206 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
1207 ldflags = [ "-ObjC" ]
magjed3149e092017-05-08 05:32:05 -07001208
mbonadei2c8ac1b2017-05-31 05:14:26 -07001209 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001210 ":base_objc",
1211 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001212 ":mediaconstraints_objc",
1213 ":native_api",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001214 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001215 ":peerconnectionfactory_base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001216 ":videocapture_objc",
1217 ":videocodec_objc",
1218 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001219 ":videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -07001220 ":videotoolbox_objc",
Piotr (Peter) Slatalae0c2e972018-10-08 09:43:21 -07001221 "../api:libjingle_peerconnection_api",
Jiawei Ouae810c12018-06-20 16:18:59 -07001222 "../api/audio_codecs:audio_codecs_api",
1223 "../api/audio_codecs:builtin_audio_decoder_factory",
1224 "../api/audio_codecs:builtin_audio_encoder_factory",
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +02001225 "../api/video_codecs:video_codecs_api",
kthelgasonebd4f792017-09-04 04:36:21 -07001226 "../media:rtc_media_base",
Jiawei Ouae810c12018-06-20 16:18:59 -07001227 "../modules/audio_device:audio_device_api",
Artem Titov94b57c02019-03-21 13:35:10 +01001228 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +00001229 "../modules/audio_processing:api",
Patrik Höglund99175c62018-01-08 11:05:10 +01001230 "../modules/video_coding:video_codec_interface",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001231 "../rtc_base:gunit_helpers",
Byoungchan Lee0a54e7a2021-09-06 22:32:52 +09001232 "../rtc_base:rtc_event",
Niels Möllera12c42a2018-07-25 16:05:48 +02001233 "../rtc_base/system:unused",
Yves Gerey21cddff2018-10-30 21:12:42 +01001234 "../test:test_support",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001235 "//third_party/ocmock",
1236 ]
magjed3149e092017-05-08 05:32:05 -07001237
denicija59ee91b2017-06-05 05:48:47 -07001238 if (is_ios) {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001239 sources += [ "objc/unittests/RTCAudioSessionTest.mm" ]
Joe Chen0b3a6e32019-12-26 23:01:42 -08001240 deps += [ ":audio_session_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001241 }
mbonadei2c8ac1b2017-05-31 05:14:26 -07001242 }
kthelgason2f088792017-05-30 01:48:47 -07001243 }
1244
mbonadei2c8ac1b2017-05-31 05:14:26 -07001245 if (is_ios) {
Anders Carlssondc6b4772018-01-15 13:31:03 +01001246 ios_framework_bundle_with_umbrella_header("framework_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001247 info_plist = "objc/Info.plist"
mbonadei2c8ac1b2017-05-31 05:14:26 -07001248 output_name = "WebRTC"
Magnus Jedvertf83dc8b2017-08-29 09:49:43 +00001249
mbonadei2c8ac1b2017-05-31 05:14:26 -07001250 common_objc_headers = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001251 "objc/base/RTCCodecSpecificInfo.h",
1252 "objc/base/RTCEncodedImage.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001253 "objc/base/RTCI420Buffer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001254 "objc/base/RTCLogging.h",
1255 "objc/base/RTCMacros.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001256 "objc/base/RTCMutableI420Buffer.h",
1257 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001258 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001259 "objc/base/RTCVideoCapturer.h",
1260 "objc/base/RTCVideoCodecInfo.h",
1261 "objc/base/RTCVideoDecoder.h",
1262 "objc/base/RTCVideoDecoderFactory.h",
1263 "objc/base/RTCVideoEncoder.h",
1264 "objc/base/RTCVideoEncoderFactory.h",
1265 "objc/base/RTCVideoEncoderQpThresholds.h",
1266 "objc/base/RTCVideoEncoderSettings.h",
1267 "objc/base/RTCVideoFrame.h",
1268 "objc/base/RTCVideoFrameBuffer.h",
1269 "objc/base/RTCVideoRenderer.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001270 "objc/base/RTCYUVPlanarBuffer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001271 "objc/components/audio/RTCAudioSession.h",
1272 "objc/components/audio/RTCAudioSessionConfiguration.h",
1273 "objc/components/capturer/RTCCameraVideoCapturer.h",
1274 "objc/components/capturer/RTCFileVideoCapturer.h",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001275 "objc/components/network/RTCNetworkMonitor.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001276 "objc/components/renderer/metal/RTCMTLVideoView.h",
1277 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
1278 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1279 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1280 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1281 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1282 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1283 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1284 "objc/components/video_codec/RTCVideoDecoderH264.h",
1285 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1286 "objc/components/video_codec/RTCVideoEncoderH264.h",
1287 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1288 "objc/helpers/RTCCameraPreviewView.h",
1289 "objc/helpers/RTCDispatcher.h",
1290 "objc/helpers/UIDevice+RTCDevice.h",
1291 "objc/api/peerconnection/RTCAudioSource.h",
1292 "objc/api/peerconnection/RTCAudioTrack.h",
1293 "objc/api/peerconnection/RTCConfiguration.h",
1294 "objc/api/peerconnection/RTCDataChannel.h",
1295 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1296 "objc/api/peerconnection/RTCFieldTrials.h",
1297 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 19:01:43 +09001298 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001299 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001300 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1301 "objc/api/peerconnection/RTCMediaConstraints.h",
1302 "objc/api/peerconnection/RTCMediaSource.h",
1303 "objc/api/peerconnection/RTCMediaStream.h",
1304 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1305 "objc/api/peerconnection/RTCMetrics.h",
1306 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1307 "objc/api/peerconnection/RTCPeerConnection.h",
1308 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1309 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1310 "objc/api/peerconnection/RTCRtcpParameters.h",
1311 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1312 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1313 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1314 "objc/api/peerconnection/RTCRtpParameters.h",
1315 "objc/api/peerconnection/RTCRtpReceiver.h",
1316 "objc/api/peerconnection/RTCRtpSender.h",
1317 "objc/api/peerconnection/RTCRtpTransceiver.h",
1318 "objc/api/peerconnection/RTCDtmfSender.h",
1319 "objc/api/peerconnection/RTCSSLAdapter.h",
1320 "objc/api/peerconnection/RTCSessionDescription.h",
CZ Theng682dabd2019-10-21 11:25:18 +08001321 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001322 "objc/api/peerconnection/RTCTracing.h",
1323 "objc/api/peerconnection/RTCCertificate.h",
Benjamin Wright8c27cca2018-10-25 10:16:44 -07001324 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001325 "objc/api/peerconnection/RTCVideoSource.h",
1326 "objc/api/peerconnection/RTCVideoTrack.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001327 "objc/api/video_codec/RTCVideoCodecConstants.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001328 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1329 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001330 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001331 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1332 "objc/api/video_codec/RTCVideoEncoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001333 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001334 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1335 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001336 ]
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +02001337
mbonadei2c8ac1b2017-05-31 05:14:26 -07001338 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001339 common_objc_headers += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001340 "objc/api/logging/RTCCallbackLogger.h",
1341 "objc/api/peerconnection/RTCFileLogger.h",
Anders Carlsson3b3364e2018-01-30 15:46:13 +01001342 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001343 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001344
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001345 sources = common_objc_headers
1346 public_headers = common_objc_headers
1347
mbonadei2c8ac1b2017-05-31 05:14:26 -07001348 ldflags = [
1349 "-all_load",
1350 "-install_name",
1351 "@rpath/$output_name.framework/$output_name",
1352 ]
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001353
mbonadei2c8ac1b2017-05-31 05:14:26 -07001354 deps = [
kthelgason36d658d2017-08-24 05:43:45 -07001355 ":audio_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001356 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001357 ":default_codec_factory_objc",
Mirko Bonadei91d39752022-01-19 08:43:17 +01001358 ":metal_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001359 ":native_api",
1360 ":native_video",
1361 ":peerconnectionfactory_base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001362 ":videocapture_objc",
1363 ":videocodec_objc",
1364 ":videotoolbox_objc",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001365 "../rtc_base:rtc_base_approved",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001366 ]
Jordan Rose53d3fc92021-07-06 12:16:41 -07001367 if (rtc_ios_macos_use_opengl_rendering) {
1368 deps += [ ":opengl_ui_objc" ]
1369 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001370 if (!build_with_chromium) {
1371 deps += [
1372 ":callback_logger_objc",
1373 ":file_logger_objc",
1374 ]
1375 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001376
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001377 frameworks = [
mbonadei2c8ac1b2017-05-31 05:14:26 -07001378 "AVFoundation.framework",
1379 "CoreGraphics.framework",
1380 "CoreMedia.framework",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001381 ]
1382
Anders Carlsson358f2e02018-06-04 10:24:37 +02001383 configs += [
1384 "..:common_objc",
1385 ":used_from_extension",
1386 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001387
kthelgason36d658d2017-08-24 05:43:45 -07001388 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001389 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001390
1391 bundle_data("ios_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001392 deps = [ "../sdk:framework_objc" ]
1393 sources = [ "$root_build_dir/WebRTC.framework" ]
1394 outputs = [ "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001395 }
1396 }
1397
1398 if (is_mac) {
Anders Carlsson37bbf792018-09-05 16:29:27 +02001399 mac_framework_bundle_with_umbrella_header("mac_framework_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001400 info_plist = "objc/Info.plist"
1401 output_name = "WebRTC"
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001402
Anders Carlsson37bbf792018-09-05 16:29:27 +02001403 sources = [
1404 "objc/api/peerconnection/RTCAudioSource.h",
1405 "objc/api/peerconnection/RTCAudioTrack.h",
1406 "objc/api/peerconnection/RTCCertificate.h",
1407 "objc/api/peerconnection/RTCConfiguration.h",
Benjamin Wright8c27cca2018-10-25 10:16:44 -07001408 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001409 "objc/api/peerconnection/RTCDataChannel.h",
1410 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1411 "objc/api/peerconnection/RTCDtmfSender.h",
1412 "objc/api/peerconnection/RTCFieldTrials.h",
1413 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 19:01:43 +09001414 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001415 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001416 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1417 "objc/api/peerconnection/RTCMediaConstraints.h",
1418 "objc/api/peerconnection/RTCMediaSource.h",
1419 "objc/api/peerconnection/RTCMediaStream.h",
1420 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1421 "objc/api/peerconnection/RTCMetrics.h",
1422 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1423 "objc/api/peerconnection/RTCPeerConnection.h",
1424 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1425 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1426 "objc/api/peerconnection/RTCRtcpParameters.h",
1427 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1428 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1429 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1430 "objc/api/peerconnection/RTCRtpParameters.h",
1431 "objc/api/peerconnection/RTCRtpReceiver.h",
1432 "objc/api/peerconnection/RTCRtpSender.h",
1433 "objc/api/peerconnection/RTCRtpTransceiver.h",
1434 "objc/api/peerconnection/RTCSSLAdapter.h",
1435 "objc/api/peerconnection/RTCSessionDescription.h",
Saúl Ibarra Corretgéf7aa2672021-07-28 23:09:14 +02001436 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001437 "objc/api/peerconnection/RTCTracing.h",
1438 "objc/api/peerconnection/RTCVideoSource.h",
1439 "objc/api/peerconnection/RTCVideoTrack.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001440 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001441 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1442 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001443 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001444 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1445 "objc/api/video_codec/RTCVideoEncoderVP9.h",
1446 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1447 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
1448 "objc/base/RTCCodecSpecificInfo.h",
1449 "objc/base/RTCEncodedImage.h",
1450 "objc/base/RTCI420Buffer.h",
1451 "objc/base/RTCLogging.h",
1452 "objc/base/RTCMacros.h",
1453 "objc/base/RTCMutableI420Buffer.h",
1454 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001455 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001456 "objc/base/RTCVideoCapturer.h",
1457 "objc/base/RTCVideoCodecInfo.h",
1458 "objc/base/RTCVideoDecoder.h",
1459 "objc/base/RTCVideoDecoderFactory.h",
1460 "objc/base/RTCVideoEncoder.h",
1461 "objc/base/RTCVideoEncoderFactory.h",
1462 "objc/base/RTCVideoEncoderQpThresholds.h",
1463 "objc/base/RTCVideoEncoderSettings.h",
1464 "objc/base/RTCVideoFrame.h",
1465 "objc/base/RTCVideoFrameBuffer.h",
1466 "objc/base/RTCVideoRenderer.h",
1467 "objc/base/RTCYUVPlanarBuffer.h",
1468 "objc/components/capturer/RTCCameraVideoCapturer.h",
1469 "objc/components/capturer/RTCFileVideoCapturer.h",
1470 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
1471 "objc/components/renderer/opengl/RTCNSGLVideoView.h",
1472 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1473 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1474 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1475 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1476 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1477 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1478 "objc/components/video_codec/RTCVideoDecoderH264.h",
1479 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1480 "objc/components/video_codec/RTCVideoEncoderH264.h",
1481 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1482 "objc/helpers/RTCDispatcher.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001483 ]
Anders Carlsson37bbf792018-09-05 16:29:27 +02001484 if (!build_with_chromium) {
1485 sources += [
1486 "objc/api/logging/RTCCallbackLogger.h",
1487 "objc/api/peerconnection/RTCFileLogger.h",
1488 ]
1489 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001490
1491 deps = [
1492 ":base_objc",
1493 ":default_codec_factory_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001494 ":native_api",
1495 ":native_video",
Jordan Rose53d3fc92021-07-06 12:16:41 -07001496 ":opengl_ui_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001497 ":peerconnectionfactory_base_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001498 ":videocapture_objc",
1499 ":videocodec_objc",
1500 ":videotoolbox_objc",
1501 "../rtc_base:rtc_base_approved",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001502 ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001503 if (!build_with_chromium) {
1504 deps += [
1505 ":callback_logger_objc",
1506 ":file_logger_objc",
1507 ]
1508 }
1509
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001510 frameworks = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001511 "AVFoundation.framework",
1512 "CoreGraphics.framework",
1513 "CoreMedia.framework",
1514 "OpenGL.framework",
1515 ]
1516
Anders Carlsson37bbf792018-09-05 16:29:27 +02001517 configs = [ "..:common_objc" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001518
1519 public_configs = [ ":common_config_objc" ]
1520 }
1521
1522 bundle_data("mac_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001523 deps = [ "../sdk:mac_framework_objc" ]
1524 sources = [ "$root_build_dir/WebRTC.framework" ]
1525 outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001526 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001527 }
1528
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001529 rtc_library("wrapped_native_codec_objc") {
Anders Carlsson9823ee42018-03-07 10:32:03 +01001530 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001531 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.h",
1532 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.mm",
1533 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.h",
1534 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001535 ]
1536
1537 configs += [ "..:common_objc" ]
1538 public_configs = [ ":common_config_objc" ]
1539
Anders Carlsson9823ee42018-03-07 10:32:03 +01001540 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001541 ":base_objc",
1542 ":helpers_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001543 "../api/video_codecs:video_codecs_api",
1544 "../media:rtc_media_base",
1545 ]
1546 }
1547
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001548 # The native API is currently experimental and may change without notice.
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001549 rtc_library("native_api") {
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001550 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +01001551 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001552 sources = [
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001553 "objc/native/api/network_monitor_factory.h",
1554 "objc/native/api/network_monitor_factory.mm",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001555 "objc/native/api/ssl_certificate_verifier.h",
1556 "objc/native/api/ssl_certificate_verifier.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001557 "objc/native/api/video_capturer.h",
1558 "objc/native/api/video_capturer.mm",
1559 "objc/native/api/video_decoder_factory.h",
1560 "objc/native/api/video_decoder_factory.mm",
1561 "objc/native/api/video_encoder_factory.h",
1562 "objc/native/api/video_encoder_factory.mm",
1563 "objc/native/api/video_frame.h",
1564 "objc/native/api/video_frame.mm",
1565 "objc/native/api/video_frame_buffer.h",
1566 "objc/native/api/video_frame_buffer.mm",
1567 "objc/native/api/video_renderer.h",
1568 "objc/native/api/video_renderer.mm",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001569 ]
1570
1571 configs += [ "..:common_objc" ]
1572
1573 public_configs = [ ":common_config_objc" ]
1574
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001575 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001576 ":base_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001577 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001578 ":videoframebuffer_objc",
Anders Carlsson73119182018-03-15 09:41:03 +01001579 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +02001580 "../api:media_stream_interface",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001581 "../api:scoped_refptr",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001582 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001583 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001584 "../api/video_codecs:video_codecs_api",
1585 "../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +01001586 "../rtc_base",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001587 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 02:54:12 +02001588 "../rtc_base:refcount",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001589 "../rtc_base:threading",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001590 ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001591 if (is_ios) {
1592 deps += [ ":native_network_monitor" ]
1593 }
Mirko Bonadei2dcf3482020-06-05 14:30:41 +02001594 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001595 }
1596
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001597 if (is_ios) {
1598 rtc_library("native_network_monitor") {
1599 visibility = [ "*" ]
1600
1601 sources = [
1602 "objc/native/src/objc_network_monitor.h",
1603 "objc/native/src/objc_network_monitor.mm",
1604 ]
1605
1606 deps = [
1607 ":network_monitor_objc",
1608 ":network_monitor_observer",
Jonas Orelande62c2f22022-03-29 11:04:48 +02001609 "../api:field_trials_view",
Artem Titovd15a5752021-02-10 14:31:24 +01001610 "../api:sequence_checker",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001611 "../rtc_base",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001612 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +02001613 "../rtc_base:macromagic",
Florent Castelli57aa81b2022-04-04 17:14:02 +02001614 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001615 "../rtc_base:threading",
Niels Möllerbe140b42021-03-11 10:24:06 +01001616 "../rtc_base/task_utils:pending_task_safety_flag",
1617 "../rtc_base/task_utils:to_queued_task",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001618 ]
Ali Tofigh7fa90572022-03-17 15:47:49 +01001619
1620 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001621 }
1622 }
1623
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001624 rtc_library("native_video") {
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001625 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001626 "objc/native/src/objc_frame_buffer.h",
1627 "objc/native/src/objc_frame_buffer.mm",
1628 "objc/native/src/objc_video_decoder_factory.h",
1629 "objc/native/src/objc_video_decoder_factory.mm",
1630 "objc/native/src/objc_video_encoder_factory.h",
1631 "objc/native/src/objc_video_encoder_factory.mm",
1632 "objc/native/src/objc_video_frame.h",
1633 "objc/native/src/objc_video_frame.mm",
1634 "objc/native/src/objc_video_renderer.h",
1635 "objc/native/src/objc_video_renderer.mm",
1636 "objc/native/src/objc_video_track_source.h",
1637 "objc/native/src/objc_video_track_source.mm",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001638 ]
1639
1640 configs += [ "..:common_objc" ]
1641
1642 public_configs = [ ":common_config_objc" ]
1643
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001644 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001645 ":base_native_additions_objc",
1646 ":base_objc",
1647 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001648 ":videocodec_objc",
1649 ":videoframebuffer_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001650 ":vpx_codec_constants",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001651 ":wrapped_native_codec_objc",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001652 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001653 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001654 "../api/video_codecs:video_codecs_api",
1655 "../common_video",
1656 "../media:rtc_audio_video",
1657 "../media:rtc_media_base",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001658 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +01001659 "../rtc_base",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001660 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001661 "../rtc_base:logging",
Florent Castellidd837e22022-04-04 17:16:15 +02001662 "../rtc_base:timeutils",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001663 ]
1664 }
1665
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001666 rtc_library("video_toolbox_cc") {
Artem Titarenko42b43152018-10-29 18:18:09 +01001667 visibility = [
Mirko Bonadei08574ae2020-09-16 07:22:57 +00001668 ":sdk_unittests_sources",
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001669 ":videotoolbox_objc",
Artem Titarenko42b43152018-10-29 18:18:09 +01001670 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001671 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001672 "objc/components/video_codec/helpers.cc",
1673 "objc/components/video_codec/helpers.h",
1674 "objc/components/video_codec/nalu_rewriter.cc",
1675 "objc/components/video_codec/nalu_rewriter.h",
mbonadeic0af5ac2017-08-24 12:26:05 -07001676 ]
1677 deps = [
1678 "../common_video",
mbonadeic0af5ac2017-08-24 12:26:05 -07001679 "../modules/video_coding:webrtc_h264",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001680 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001681 "../rtc_base:logging",
mbonadeic0af5ac2017-08-24 12:26:05 -07001682 "../rtc_base:rtc_base_approved",
1683 ]
mbonadeic0af5ac2017-08-24 12:26:05 -07001684 }
1685
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001686 rtc_library("videotoolbox_objc") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001687 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +01001688 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadeic0af5ac2017-08-24 12:26:05 -07001689 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001690 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1691 "objc/components/video_codec/RTCVideoDecoderFactoryH264.m",
1692 "objc/components/video_codec/RTCVideoDecoderH264.h",
1693 "objc/components/video_codec/RTCVideoDecoderH264.mm",
1694 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1695 "objc/components/video_codec/RTCVideoEncoderFactoryH264.m",
1696 "objc/components/video_codec/RTCVideoEncoderH264.h",
1697 "objc/components/video_codec/RTCVideoEncoderH264.mm",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001698 ]
1699
Anders Carlsson358f2e02018-06-04 10:24:37 +02001700 configs += [
1701 "..:common_objc",
1702 ":used_from_extension",
1703 ]
1704
1705 if (is_ios && rtc_apprtcmobile_broadcast_extension) {
1706 defines = [ "RTC_APPRTCMOBILE_BROADCAST_EXTENSION" ]
1707 }
mbonadei2c8ac1b2017-05-31 05:14:26 -07001708
1709 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001710 ":base_native_additions_objc",
1711 ":base_objc",
1712 ":helpers_objc",
mbonadeic0af5ac2017-08-24 12:26:05 -07001713 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001714 ":videocodec_objc",
1715 ":videoframebuffer_objc",
Johannes Kronc3fcee72021-04-19 09:09:26 +02001716 "../api/video_codecs:video_codecs_api",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001717 "../common_video",
Patrik Höglund99175c62018-01-08 11:05:10 +01001718 "../modules/video_coding:video_codec_interface",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001719 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001720 "../rtc_base:logging",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001721 "../rtc_base:rtc_base_approved",
Florent Castellidd837e22022-04-04 17:16:15 +02001722 "../rtc_base:timeutils",
Mirko Bonadei401d0562017-12-14 11:24:00 +01001723 "//third_party/libyuv",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001724 ]
1725
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001726 frameworks = [
mbonadei2c8ac1b2017-05-31 05:14:26 -07001727 "CoreFoundation.framework",
1728 "CoreMedia.framework",
1729 "CoreVideo.framework",
1730 "VideoToolbox.framework",
1731 ]
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001732 }
1733 }
tkchin9eeb6242016-04-27 01:54:20 -07001734}