blob: 2ebb9044054a3e21fd2e545060e1fb5096c707f6 [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",
Florent Castelli8d4e9fb2022-04-04 17:18:21 +0200273 "../api:sequence_checker",
Danil Chapovalova6cb1502019-06-27 15:16:34 +0200274 "../api/task_queue",
275 "../api/task_queue:default_task_queue_factory",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200276 "../modules/audio_device:audio_device_api",
277 "../modules/audio_device:audio_device_buffer",
278 "../modules/audio_device:audio_device_generic",
Artem Titov94b57c02019-03-21 13:35:10 +0100279 "../rtc_base",
Florent Castellibddfe022022-04-04 15:03:10 +0200280 "../rtc_base:atomicops",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200281 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200282 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200283 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 02:54:12 +0200284 "../rtc_base:refcount",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100285 "../rtc_base:threading",
Florent Castellidd837e22022-04-04 17:16:15 +0200286 "../rtc_base:timeutils",
Kári Tristan Helgasonf49429d2019-03-28 11:03:27 +0100287 "../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200288 "../system_wrappers:metrics",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200289 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200290 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200291
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200292 frameworks = [ "AudioToolbox.framework" ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +0200293 }
294
Joe Chen0b3a6e32019-12-26 23:01:42 -0800295 # This target exists to expose :audio_session_objc and
296 # :audio_session_delegate_adapter_objc for backward compatibility,
297 # and should be deprecated.
298 group("audio_objc") {
299 public_deps = [ # no-presubmit-check TODO(webrtc:11238)
300 ":audio_session_delegate_adapter_objc",
301 ":audio_session_objc",
302 ]
303 }
304
305 rtc_library("audio_session_delegate_adapter_objc") {
306 sources = [
307 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.h",
308 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.mm",
309 ]
310
311 configs += [
312 "..:common_objc",
313 ":used_from_extension",
314 ]
315
316 public_configs = [ ":common_config_objc" ]
317
318 deps = [
319 ":audio_session_objc",
320 ":audio_session_observer",
321 ":base_objc",
322 ]
323 }
324
325 rtc_library("audio_session_objc") {
Joe Chen3b19b272020-01-09 08:31:06 -0800326 visibility = [ "*" ]
327
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100328 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200329 "objc/components/audio/RTCAudioSession+Configuration.mm",
330 "objc/components/audio/RTCAudioSession+Private.h",
331 "objc/components/audio/RTCAudioSession.h",
332 "objc/components/audio/RTCAudioSession.mm",
333 "objc/components/audio/RTCAudioSessionConfiguration.h",
334 "objc/components/audio/RTCAudioSessionConfiguration.m",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100335 ]
Joe Chen0b3a6e32019-12-26 23:01:42 -0800336
Anders Carlsson358f2e02018-06-04 10:24:37 +0200337 configs += [
338 "..:common_objc",
339 ":used_from_extension",
340 ]
denicija59ee91b2017-06-05 05:48:47 -0700341
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100342 public_configs = [ ":common_config_objc" ]
Anders Carlsson8ecfd802017-09-15 14:07:30 +0200343
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200344 frameworks = [ "AVFoundation.framework" ]
Jiawei Ouc9e6b962018-10-09 12:33:06 -0700345
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100346 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200347 ":base_objc",
348 ":helpers_objc",
Artem Titov94b57c02019-03-21 13:35:10 +0100349 "../rtc_base",
Florent Castellibddfe022022-04-04 15:03:10 +0200350 "../rtc_base:atomicops",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100351 "../rtc_base:checks",
352 "../rtc_base:rtc_base_approved",
Niels Möller072c0082021-02-15 16:30:44 +0100353 "../rtc_base/synchronization:mutex",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100354 ]
Byoungchan Lee0a54e7a2021-09-06 22:32:52 +0900355
356 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
denicija59ee91b2017-06-05 05:48:47 -0700357 }
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700358
359 rtc_source_set("network_monitor_observer") {
360 visibility = [ ":*" ]
361
362 sources = [ "objc/native/src/network_monitor_observer.h" ]
363
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100364 deps = [
365 "../rtc_base",
366 "../rtc_base:network_constants",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200367 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100368 "../rtc_base:threading",
369 ]
Ali Tofigh7fa90572022-03-17 15:47:49 +0100370
371 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700372 }
373
374 rtc_library("network_monitor_objc") {
375 visibility = [ "*" ]
376
377 sources = [
378 "objc/components/network/RTCNetworkMonitor+Private.h",
379 "objc/components/network/RTCNetworkMonitor.h",
380 "objc/components/network/RTCNetworkMonitor.mm",
381 ]
382
383 configs += [ ":used_from_extension" ]
384
385 frameworks = [ "Network.framework" ]
386
387 deps = [
388 ":base_objc",
389 ":helpers_objc",
390 ":network_monitor_observer",
Ali Tofigh7fa90572022-03-17 15:47:49 +0100391 "../rtc_base:stringutils",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -0700392 "../rtc_base/system:gcd_helpers",
393 ]
394 }
denicija59ee91b2017-06-05 05:48:47 -0700395 }
zhihuanga4c113a2017-06-28 14:05:44 -0700396
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200397 rtc_library("videosource_objc") {
zhihuanga4c113a2017-06-28 14:05:44 -0700398 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200399 "objc/api/peerconnection/RTCVideoSource+Private.h",
400 "objc/api/peerconnection/RTCVideoSource.h",
401 "objc/api/peerconnection/RTCVideoSource.mm",
zhihuanga4c113a2017-06-28 14:05:44 -0700402 ]
403
404 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200405 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100406 ":mediasource_objc",
407 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100408 ":videoframebuffer_objc",
zhihuanga4c113a2017-06-28 14:05:44 -0700409 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +0200410 "../api:media_stream_interface",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200411 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200412 "../api/video:video_rtp_headers",
zhihuanga4c113a2017-06-28 14:05:44 -0700413 "../common_video",
414 "../media:rtc_media_base",
Harald Alvestrande5a73f52022-03-28 12:06:34 +0000415 "../pc:video_track_source_proxy",
Artem Titov94b57c02019-03-21 13:35:10 +0100416 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100417 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +0100418 "../rtc_base:threading",
Mirko Bonadei401d0562017-12-14 11:24:00 +0100419 "//third_party/libyuv",
zhihuanga4c113a2017-06-28 14:05:44 -0700420 ]
421
Anders Carlsson358f2e02018-06-04 10:24:37 +0200422 configs += [
423 "..:common_objc",
424 ":used_from_extension",
425 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700426 }
427
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200428 rtc_library("videoframebuffer_objc") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200429 visibility = [ "*" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100430 sources = [
Anders Carlsson4e5af962018-09-03 14:44:50 +0200431 "objc/api/video_frame_buffer/RTCNativeI420Buffer+Private.h",
432 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
433 "objc/api/video_frame_buffer/RTCNativeI420Buffer.mm",
434 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
435 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200436 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
437 "objc/components/video_frame_buffer/RTCCVPixelBuffer.mm",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100438 ]
439 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200440 ":base_objc",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200441 "../rtc_base:logging",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200442 "//api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200443 "//api/video:video_rtp_headers",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100444 "//common_video",
445 "//rtc_base:checks",
446 "//rtc_base:rtc_base_approved",
447 "//third_party/libyuv",
448 ]
Anders Carlsson358f2e02018-06-04 10:24:37 +0200449 configs += [
450 "..:common_objc",
451 ":used_from_extension",
452 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200453 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100454 "VideoToolbox.framework",
Oleh Prypinb3f78de2019-07-18 22:25:48 +0200455 "CoreGraphics.framework",
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100456 "CoreVideo.framework",
457 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100458 }
459
Jordan Rose53d3fc92021-07-06 12:16:41 -0700460 rtc_library("opengl_objc") {
kthelgason2f088792017-05-30 01:48:47 -0700461 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200462 "objc/components/renderer/opengl/RTCDefaultShader.h",
463 "objc/components/renderer/opengl/RTCDefaultShader.mm",
464 "objc/components/renderer/opengl/RTCI420TextureCache.h",
465 "objc/components/renderer/opengl/RTCI420TextureCache.mm",
466 "objc/components/renderer/opengl/RTCOpenGLDefines.h",
467 "objc/components/renderer/opengl/RTCShader.h",
468 "objc/components/renderer/opengl/RTCShader.mm",
469 "objc/components/renderer/opengl/RTCVideoViewShading.h",
kthelgason2f088792017-05-30 01:48:47 -0700470 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200471 frameworks = [ "CoreVideo.framework" ]
denicijad2088152017-04-28 02:14:54 -0700472 if (is_ios) {
denicija070d5e32017-02-26 11:44:13 -0800473 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200474 "objc/components/renderer/opengl/RTCNV12TextureCache.h",
475 "objc/components/renderer/opengl/RTCNV12TextureCache.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700476 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200477 frameworks += [
mbonadei2c8ac1b2017-05-31 05:14:26 -0700478 "GLKit.framework",
479 "OpenGLES.framework",
480 "QuartzCore.framework",
481 ]
482 } else if (is_mac) {
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200483 frameworks += [
mbonadei2c8ac1b2017-05-31 05:14:26 -0700484 "CoreMedia.framework",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700485 "OpenGL.framework",
denicija070d5e32017-02-26 11:44:13 -0800486 ]
487 }
Mirko Bonadei6b09c452021-07-05 16:47:49 +0200488
489 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
490 # workaround.
Björn Terelius02768ae2021-07-02 16:19:32 +0200491 defines = [ "GLES_SILENCE_DEPRECATION" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700492
kthelgason2f088792017-05-30 01:48:47 -0700493 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200494 ":base_objc",
495 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100496 ":mediaconstraints_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100497 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100498 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100499 ":videosource_objc",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700500 "../api:libjingle_peerconnection_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200501 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200502 "../api/video:video_rtp_headers",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700503 "../common_video",
504 "../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100505 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100506 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200507 "../rtc_base:logging",
tkchin9eeb6242016-04-27 01:54:20 -0700508 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200509 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700510
Anders Carlsson358f2e02018-06-04 10:24:37 +0200511 configs += [
512 "..:common_objc",
513 ":used_from_extension",
514 ]
ehmaldonadoda8dcfb2017-01-04 07:11:23 -0800515 }
ehmaldonadoda8dcfb2017-01-04 07:11:23 -0800516
Jordan Rose53d3fc92021-07-06 12:16:41 -0700517 rtc_library("opengl_ui_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000518 visibility = [ "*" ]
Jake Brombergfb7fd242021-06-14 13:44:25 -0700519 allow_poison = [
520 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
521 "default_task_queue",
522 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700523 if (is_ios) {
524 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200525 "objc/components/renderer/opengl/RTCDisplayLinkTimer.h",
526 "objc/components/renderer/opengl/RTCDisplayLinkTimer.m",
527 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
528 "objc/components/renderer/opengl/RTCEAGLVideoView.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700529 ]
Mirko Bonadei6b09c452021-07-05 16:47:49 +0200530
531 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
532 # workaround.
Björn Terelius02768ae2021-07-02 16:19:32 +0200533 defines = [ "GLES_SILENCE_DEPRECATION" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700534 }
535 if (is_mac) {
536 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200537 "objc/components/renderer/opengl/RTCNSGLVideoView.h",
538 "objc/components/renderer/opengl/RTCNSGLVideoView.m",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700539 ]
540 }
541 configs += [ "..:common_objc" ]
542 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200543 ":base_objc",
544 ":helpers_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -0700545 ":metal_objc",
Jordan Rose53d3fc92021-07-06 12:16:41 -0700546 ":opengl_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100547 ":videocapture_objc",
548 ":videoframebuffer_objc",
mbonadei2c8ac1b2017-05-31 05:14:26 -0700549 ]
550 }
kthelgasonebc34e72016-09-15 04:30:18 -0700551
Jake Brombergfb7fd242021-06-14 13:44:25 -0700552 rtc_library("metal_objc") {
553 visibility = [ "*" ]
554 allow_poison = [
555 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
556 "default_task_queue",
557 ]
558 sources = [
559 "objc/components/renderer/metal/RTCMTLI420Renderer.h",
560 "objc/components/renderer/metal/RTCMTLI420Renderer.mm",
561 "objc/components/renderer/metal/RTCMTLNV12Renderer.h",
562 "objc/components/renderer/metal/RTCMTLNV12Renderer.mm",
563 "objc/components/renderer/metal/RTCMTLRGBRenderer.h",
564 "objc/components/renderer/metal/RTCMTLRGBRenderer.mm",
565 "objc/components/renderer/metal/RTCMTLRenderer+Private.h",
566 "objc/components/renderer/metal/RTCMTLRenderer.h",
567 "objc/components/renderer/metal/RTCMTLRenderer.mm",
568 ]
569 frameworks = [
570 "CoreVideo.framework",
571 "Metal.framework",
572 "MetalKit.framework",
573 ]
574 if (is_ios) {
575 sources += [
576 "objc/components/renderer/metal/RTCMTLVideoView.h",
577 "objc/components/renderer/metal/RTCMTLVideoView.m",
Danil Chapovalov41300af2019-07-10 12:44:43 +0200578 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700579 }
Jake Brombergfb7fd242021-06-14 13:44:25 -0700580 if (is_mac) {
581 sources += [
582 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
583 "objc/components/renderer/metal/RTCMTLNSVideoView.m",
584 ]
585 frameworks += [ "AppKit.framework" ]
586 }
587 deps = [
588 ":base_objc",
589 ":peerconnectionfactory_base_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -0700590 ":videoframebuffer_objc",
591 "../api/video:video_frame",
592 "../api/video:video_rtp_headers",
593 "../rtc_base:checks",
594 "../rtc_base:rtc_base_approved",
595 ]
596 configs += [ "..:common_objc" ]
597 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -0700598 }
599
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200600 # TODO(bugs.webrtc.org/9627): Remove this target.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200601 rtc_library("videocapturebase_objc") {
Anders Carlsson73119182018-03-15 09:41:03 +0100602 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100603 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson73119182018-03-15 09:41:03 +0100604
605 configs += [ "..:common_objc" ]
606
607 public_configs = [ ":common_config_objc" ]
608
609 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200610 ":base_objc",
Anders Carlsson73119182018-03-15 09:41:03 +0100611 ":videoframebuffer_objc",
612 ]
613 }
614
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200615 rtc_library("videocapture_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000616 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +0100617 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadei2c8ac1b2017-05-31 05:14:26 -0700618 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200619 "objc/components/capturer/RTCCameraVideoCapturer.h",
620 "objc/components/capturer/RTCCameraVideoCapturer.m",
Mirko Bonadei19640aa2020-10-19 16:12:43 +0200621 "objc/components/capturer/RTCFileVideoCapturer.h",
622 "objc/components/capturer/RTCFileVideoCapturer.m",
zhihuanga4c113a2017-06-28 14:05:44 -0700623 ]
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +0200624 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100625 "AVFoundation.framework",
626 "CoreVideo.framework",
Mirko Bonadei19640aa2020-10-19 16:12:43 +0200627 "QuartzCore.framework",
Kári Tristan Helgason8a1e35c2019-03-07 10:44:26 +0100628 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700629
zhihuanga4c113a2017-06-28 14:05:44 -0700630 configs += [ "..:common_objc" ]
631
kthelgason36d658d2017-08-24 05:43:45 -0700632 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700633
zhihuanga4c113a2017-06-28 14:05:44 -0700634 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200635 ":base_objc",
636 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100637 ":videoframebuffer_objc",
Yura Yaroshevichebf739b2020-03-16 18:00:59 +0300638 "../rtc_base/system:gcd_helpers",
zhihuanga4c113a2017-06-28 14:05:44 -0700639 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700640 }
641
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200642 rtc_library("videocodec_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200643 visibility = [ "*" ]
Mirko Bonadei96ede162018-09-06 13:45:44 +0200644 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100645 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200646 "objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h",
647 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
648 "objc/components/video_codec/RTCCodecSpecificInfoH264.mm",
649 "objc/components/video_codec/RTCH264ProfileLevelId.h",
650 "objc/components/video_codec/RTCH264ProfileLevelId.mm",
zhihuanga4c113a2017-06-28 14:05:44 -0700651 ]
Yura Yaroshevich0f77fea2018-04-26 15:41:01 +0300652 if (is_ios) {
653 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200654 "objc/components/video_codec/UIDevice+H264Profile.h",
655 "objc/components/video_codec/UIDevice+H264Profile.mm",
Yura Yaroshevich0f77fea2018-04-26 15:41:01 +0300656 ]
657 }
Mirko Bonadeifc52b912019-03-01 10:32:56 +0100658
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100659 public_configs = [ ":common_config_objc" ]
660 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200661 ":base_objc",
662 ":helpers_objc",
kthelgasonfb143122017-07-25 07:55:58 -0700663 "../api/video_codecs:video_codecs_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100664 "../common_video",
zhihuanga4c113a2017-06-28 14:05:44 -0700665 "../media:rtc_media_base",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100666 "../modules/video_coding:video_codec_interface",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200667 "../rtc_base:checks",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100668 "../rtc_base:rtc_base_approved",
zhihuanga4c113a2017-06-28 14:05:44 -0700669 ]
670 }
671
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200672 rtc_library("default_codec_factory_objc") {
Anders Carlssondd8c1652018-01-30 10:32:13 +0100673 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200674 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
675 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.m",
676 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
677 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.m",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100678 ]
679
680 deps = [
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300681 ":av1",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200682 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100683 ":native_video",
684 ":videocodec_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200685 ":videotoolbox_objc",
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +0200686 ":vp8",
687 ":vp9",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200688 ":vpx_codec_constants",
689 ]
690 }
691
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200692 rtc_library("vpx_codec_constants") {
Mirko Bonadei96ede162018-09-06 13:45:44 +0200693 configs += [ "..:no_global_constructors" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200694 sources = [
695 "objc/api/video_codec/RTCVideoCodecConstants.h",
696 "objc/api/video_codec/RTCVideoCodecConstants.mm",
697 ]
698
699 deps = [
700 ":base_objc",
701 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100702 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100703 }
704
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200705 rtc_library("vp8") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100706 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200707 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100708 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200709 "objc/api/video_codec/RTCVideoDecoderVP8.h",
710 "objc/api/video_codec/RTCVideoDecoderVP8.mm",
711 "objc/api/video_codec/RTCVideoEncoderVP8.h",
712 "objc/api/video_codec/RTCVideoEncoderVP8.mm",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100713 ]
714
Anders Carlssondd8c1652018-01-30 10:32:13 +0100715 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200716 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100717 ":wrapped_native_codec_objc",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100718 "../modules/video_coding:webrtc_vp8",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100719 ]
720 }
721
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200722 rtc_library("vp9") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100723 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200724 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 10:32:13 +0100725 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200726 "objc/api/video_codec/RTCVideoDecoderVP9.h",
727 "objc/api/video_codec/RTCVideoDecoderVP9.mm",
728 "objc/api/video_codec/RTCVideoEncoderVP9.h",
729 "objc/api/video_codec/RTCVideoEncoderVP9.mm",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100730 ]
731
Anders Carlssondd8c1652018-01-30 10:32:13 +0100732 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200733 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100734 ":wrapped_native_codec_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200735 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100736 "../modules/video_coding:webrtc_vp9",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100737 ]
738 }
739
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300740 rtc_library("av1") {
741 visibility = [ "*" ]
742 allow_poison = [ "software_video_codecs" ]
743 sources = [
744 "objc/api/video_codec/RTCVideoDecoderAV1.h",
745 "objc/api/video_codec/RTCVideoDecoderAV1.mm",
746 "objc/api/video_codec/RTCVideoEncoderAV1.h",
747 "objc/api/video_codec/RTCVideoEncoderAV1.mm",
748 ]
749
750 deps = [
751 ":base_objc",
752 ":wrapped_native_codec_objc",
753 "../media:rtc_media_base",
754 "../modules/video_coding/codecs/av1:libaom_av1_decoder",
philipel95701502022-01-18 18:47:52 +0100755 "../modules/video_coding/codecs/av1:libaom_av1_encoder_if_supported",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +0300756 ]
757 }
758
zhihuanga4c113a2017-06-28 14:05:44 -0700759 # Build the PeerConnectionFactory without audio/video support.
760 # This target depends on the objc_peeerconnectionfactory_base which still
761 # includes some audio/video related objects such as RTCAudioSource because
762 # these objects are just thin wrappers of native C++ interfaces required
763 # when implementing webrtc::PeerConnectionFactoryInterface and
764 # webrtc::PeerConnectionInterface.
Kári Tristan Helgasona2d89fc2018-03-06 10:18:43 +0100765 # The applications which only use WebRTC DataChannel can depend on this.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200766 rtc_library("peerconnectionfactory_no_media_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000767 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +0200768 allow_poison = [
769 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
770 "default_task_queue",
771 ]
zhihuanga4c113a2017-06-28 14:05:44 -0700772 defines = [ "HAVE_NO_MEDIA" ]
773
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100774 sources = [ "objc/helpers/noop.mm" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700775
kthelgason36d658d2017-08-24 05:43:45 -0700776 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700777
zhihuanga4c113a2017-06-28 14:05:44 -0700778 deps = [
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100779 ":native_api",
780 ":native_video",
kthelgason36d658d2017-08-24 05:43:45 -0700781 ":peerconnectionfactory_base_objc",
zhihuanga4c113a2017-06-28 14:05:44 -0700782 "../api:libjingle_peerconnection_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100783 "../rtc_base",
zhihuanga4c113a2017-06-28 14:05:44 -0700784 ]
785 }
786
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200787 rtc_library("mediaconstraints_objc") {
Mirko Bonadei96ede162018-09-06 13:45:44 +0200788 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100789 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200790 "objc/api/peerconnection/RTCMediaConstraints+Private.h",
791 "objc/api/peerconnection/RTCMediaConstraints.h",
792 "objc/api/peerconnection/RTCMediaConstraints.mm",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100793 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100794
795 public_configs = [ ":common_config_objc" ]
796 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200797 ":base_objc",
798 ":helpers_objc",
Niels Möllerdac03d92019-02-13 08:52:27 +0100799 ":media_constraints",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100800 ]
801 }
802
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200803 # TODO(bugs.webrtc.org/9627): Remove, targets should depend on base_objc.
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200804 rtc_library("videorenderer_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200805 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100806 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100807
808 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100809 public_configs = [ ":common_config_objc" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200810
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +0100811 deps = [ ":base_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100812 }
813
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200814 rtc_library("videorendereradapter_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200815 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +0100816 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson9823ee42018-03-07 10:32:03 +0100817 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200818 "objc/api/RTCVideoRendererAdapter+Private.h",
819 "objc/api/RTCVideoRendererAdapter.h",
820 "objc/api/RTCVideoRendererAdapter.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100821 ]
822
823 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100824 public_configs = [ ":common_config_objc" ]
825
826 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200827 ":base_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100828 ":native_api",
829 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100830 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +0200831 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100832 ]
833 }
834
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200835 rtc_library("mediasource_objc") {
Anders Carlsson9823ee42018-03-07 10:32:03 +0100836 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200837 "objc/api/peerconnection/RTCMediaSource+Private.h",
838 "objc/api/peerconnection/RTCMediaSource.h",
839 "objc/api/peerconnection/RTCMediaSource.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100840 ]
841
Anders Carlsson358f2e02018-06-04 10:24:37 +0200842 configs += [
843 "..:common_objc",
844 ":used_from_extension",
845 ]
Anders Carlsson9823ee42018-03-07 10:32:03 +0100846 public_configs = [ ":common_config_objc" ]
847
848 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200849 ":base_objc",
Niels Möllere942b142019-09-17 14:30:41 +0200850 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100851 "../rtc_base:checks",
852 ]
853 }
854
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200855 rtc_library("base_native_additions_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200856 sources = [
857 "objc/api/peerconnection/RTCEncodedImage+Private.h",
858 "objc/api/peerconnection/RTCEncodedImage+Private.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200859 "objc/api/peerconnection/RTCVideoCodecInfo+Private.h",
860 "objc/api/peerconnection/RTCVideoCodecInfo+Private.mm",
861 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.h",
862 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.mm",
863 ]
864
865 configs += [ "..:common_objc" ]
866
867 public_configs = [ ":common_config_objc" ]
868
869 deps = [
870 ":base_objc",
871 ":helpers_objc",
Niels Möller4dc66c52018-10-05 14:17:58 +0200872 "../api/video:encoded_image",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200873 "../api/video_codecs:video_codecs_api",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200874 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +0100875 "../rtc_base",
Florent Castellif86f6f92022-04-05 02:54:12 +0200876 "../rtc_base:refcount",
Florent Castellie10a9f62022-04-04 17:04:37 +0200877 "../rtc_base:safe_conversions",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200878 ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200879 }
880
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200881 rtc_library("peerconnectionfactory_base_objc") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200882 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 12:44:43 +0200883 allow_poison = [
884 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
885 "default_task_queue",
886 ]
Byoungchan Lee524a4222021-11-19 19:03:49 +0900887 configs += [ "..:no_global_constructors" ]
zhihuanga4c113a2017-06-28 14:05:44 -0700888 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200889 "objc/api/peerconnection/RTCAudioSource+Private.h",
890 "objc/api/peerconnection/RTCAudioSource.h",
891 "objc/api/peerconnection/RTCAudioSource.mm",
892 "objc/api/peerconnection/RTCAudioTrack+Private.h",
893 "objc/api/peerconnection/RTCAudioTrack.h",
894 "objc/api/peerconnection/RTCAudioTrack.mm",
895 "objc/api/peerconnection/RTCCertificate.h",
896 "objc/api/peerconnection/RTCCertificate.mm",
897 "objc/api/peerconnection/RTCConfiguration+Native.h",
898 "objc/api/peerconnection/RTCConfiguration+Private.h",
899 "objc/api/peerconnection/RTCConfiguration.h",
900 "objc/api/peerconnection/RTCConfiguration.mm",
Benjamin Wright8c27cca2018-10-25 10:16:44 -0700901 "objc/api/peerconnection/RTCCryptoOptions.h",
902 "objc/api/peerconnection/RTCCryptoOptions.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200903 "objc/api/peerconnection/RTCDataChannel+Private.h",
904 "objc/api/peerconnection/RTCDataChannel.h",
905 "objc/api/peerconnection/RTCDataChannel.mm",
906 "objc/api/peerconnection/RTCDataChannelConfiguration+Private.h",
907 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
908 "objc/api/peerconnection/RTCDataChannelConfiguration.mm",
909 "objc/api/peerconnection/RTCDtmfSender+Private.h",
910 "objc/api/peerconnection/RTCDtmfSender.h",
911 "objc/api/peerconnection/RTCDtmfSender.mm",
912 "objc/api/peerconnection/RTCFieldTrials.h",
913 "objc/api/peerconnection/RTCFieldTrials.mm",
914 "objc/api/peerconnection/RTCIceCandidate+Private.h",
915 "objc/api/peerconnection/RTCIceCandidate.h",
916 "objc/api/peerconnection/RTCIceCandidate.mm",
Jaehyun Kod2110982021-11-30 19:01:43 +0900917 "objc/api/peerconnection/RTCIceCandidateErrorEvent+Private.h",
918 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
919 "objc/api/peerconnection/RTCIceCandidateErrorEvent.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200920 "objc/api/peerconnection/RTCIceServer+Private.h",
921 "objc/api/peerconnection/RTCIceServer.h",
922 "objc/api/peerconnection/RTCIceServer.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200923 "objc/api/peerconnection/RTCLegacyStatsReport+Private.h",
924 "objc/api/peerconnection/RTCLegacyStatsReport.h",
925 "objc/api/peerconnection/RTCLegacyStatsReport.mm",
926 "objc/api/peerconnection/RTCMediaStream+Private.h",
927 "objc/api/peerconnection/RTCMediaStream.h",
928 "objc/api/peerconnection/RTCMediaStream.mm",
929 "objc/api/peerconnection/RTCMediaStreamTrack+Private.h",
930 "objc/api/peerconnection/RTCMediaStreamTrack.h",
931 "objc/api/peerconnection/RTCMediaStreamTrack.mm",
932 "objc/api/peerconnection/RTCMetrics.h",
933 "objc/api/peerconnection/RTCMetrics.mm",
934 "objc/api/peerconnection/RTCMetricsSampleInfo+Private.h",
935 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
936 "objc/api/peerconnection/RTCMetricsSampleInfo.mm",
937 "objc/api/peerconnection/RTCPeerConnection+DataChannel.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200938 "objc/api/peerconnection/RTCPeerConnection+Private.h",
939 "objc/api/peerconnection/RTCPeerConnection+Stats.mm",
940 "objc/api/peerconnection/RTCPeerConnection.h",
941 "objc/api/peerconnection/RTCPeerConnection.mm",
942 "objc/api/peerconnection/RTCPeerConnectionFactory+Native.h",
943 "objc/api/peerconnection/RTCPeerConnectionFactory+Private.h",
944 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
945 "objc/api/peerconnection/RTCPeerConnectionFactory.mm",
946 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.h",
947 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.mm",
948 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.h",
949 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.mm",
950 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions+Private.h",
951 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
952 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.mm",
953 "objc/api/peerconnection/RTCRtcpParameters+Private.h",
954 "objc/api/peerconnection/RTCRtcpParameters.h",
955 "objc/api/peerconnection/RTCRtcpParameters.mm",
956 "objc/api/peerconnection/RTCRtpCodecParameters+Private.h",
957 "objc/api/peerconnection/RTCRtpCodecParameters.h",
958 "objc/api/peerconnection/RTCRtpCodecParameters.mm",
959 "objc/api/peerconnection/RTCRtpEncodingParameters+Private.h",
960 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
961 "objc/api/peerconnection/RTCRtpEncodingParameters.mm",
962 "objc/api/peerconnection/RTCRtpHeaderExtension+Private.h",
963 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
964 "objc/api/peerconnection/RTCRtpHeaderExtension.mm",
965 "objc/api/peerconnection/RTCRtpParameters+Private.h",
966 "objc/api/peerconnection/RTCRtpParameters.h",
967 "objc/api/peerconnection/RTCRtpParameters.mm",
Benjamin Wrightddf1a3e2018-10-02 10:20:58 -0700968 "objc/api/peerconnection/RTCRtpReceiver+Native.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200969 "objc/api/peerconnection/RTCRtpReceiver+Private.h",
970 "objc/api/peerconnection/RTCRtpReceiver.h",
971 "objc/api/peerconnection/RTCRtpReceiver.mm",
Benjamin Wrightddf1a3e2018-10-02 10:20:58 -0700972 "objc/api/peerconnection/RTCRtpSender+Native.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200973 "objc/api/peerconnection/RTCRtpSender+Private.h",
974 "objc/api/peerconnection/RTCRtpSender.h",
975 "objc/api/peerconnection/RTCRtpSender.mm",
976 "objc/api/peerconnection/RTCRtpTransceiver+Private.h",
977 "objc/api/peerconnection/RTCRtpTransceiver.h",
978 "objc/api/peerconnection/RTCRtpTransceiver.mm",
979 "objc/api/peerconnection/RTCSSLAdapter.h",
980 "objc/api/peerconnection/RTCSSLAdapter.mm",
981 "objc/api/peerconnection/RTCSessionDescription+Private.h",
982 "objc/api/peerconnection/RTCSessionDescription.h",
983 "objc/api/peerconnection/RTCSessionDescription.mm",
Peter Hanspersbed86042019-02-21 17:27:09 +0100984 "objc/api/peerconnection/RTCStatisticsReport+Private.h",
985 "objc/api/peerconnection/RTCStatisticsReport.h",
986 "objc/api/peerconnection/RTCStatisticsReport.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +0200987 "objc/api/peerconnection/RTCTracing.h",
988 "objc/api/peerconnection/RTCTracing.mm",
989 "objc/api/peerconnection/RTCVideoTrack+Private.h",
990 "objc/api/peerconnection/RTCVideoTrack.h",
991 "objc/api/peerconnection/RTCVideoTrack.mm",
kthelgason5fe4d492016-12-05 11:27:30 -0800992 ]
kthelgasonebc34e72016-09-15 04:30:18 -0700993
Anders Carlsson358f2e02018-06-04 10:24:37 +0200994 configs += [
995 "..:common_objc",
996 ":used_from_extension",
997 ]
kthelgason36d658d2017-08-24 05:43:45 -0700998 public_configs = [ ":common_config_objc" ]
kthelgasonc0977102017-04-24 00:57:16 -0700999
mbonadei2c8ac1b2017-05-31 05:14:26 -07001000 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001001 ":base_native_additions_objc",
1002 ":base_objc",
1003 ":file_logger_objc",
1004 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001005 ":mediaconstraints_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001006 ":mediasource_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001007 ":native_api",
1008 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001009 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001010 ":videorendereradapter_objc",
1011 ":videosource_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001012 ":videotoolbox_objc",
Mirko Bonadeie51f7852017-12-06 11:23:19 +01001013 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +02001014 "../api:media_stream_interface",
Niels Möller695cf6a2019-05-13 12:27:23 +02001015 "../api:rtc_event_log_output_file",
Peter Hanspersbed86042019-02-21 17:27:09 +01001016 "../api:rtc_stats_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +02001017 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001018 "../api:scoped_refptr",
Jiawei Ouae810c12018-06-20 16:18:59 -07001019 "../api/audio_codecs:audio_codecs_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001020 "../api/audio_codecs:builtin_audio_decoder_factory",
Jiawei Ouae810c12018-06-20 16:18:59 -07001021 "../api/audio_codecs:builtin_audio_encoder_factory",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +02001022 "../api/crypto:frame_decryptor_interface",
1023 "../api/crypto:frame_encryptor_interface",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +02001024 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalovaaa11432019-05-17 13:20:14 +02001025 "../api/task_queue:default_task_queue_factory",
Erik Språngceb44952020-09-22 11:36:35 +02001026 "../api/transport:field_trial_based_config",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001027 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001028 "../api/video:video_rtp_headers",
Anders Carlsson7e042812017-10-05 16:55:38 +02001029 "../api/video_codecs:video_codecs_api",
Anders Carlssone5960ce2017-06-22 15:26:30 +02001030 "../common_video",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001031 "../media:rtc_media_base",
Jiawei Ouae810c12018-06-20 16:18:59 -07001032 "../modules/audio_device:audio_device_api",
Artem Titov94b57c02019-03-21 13:35:10 +01001033 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +00001034 "../modules/audio_processing:api",
Patrik Höglund99175c62018-01-08 11:05:10 +01001035 "../modules/video_coding:video_codec_interface",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +00001036 "../pc:peer_connection_factory",
1037 "../pc:webrtc_sdp",
Artem Titov94b57c02019-03-21 13:35:10 +01001038 "../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001039 "../rtc_base:checks",
Florent Castellia30aef32022-04-19 17:47:13 +02001040 "../rtc_base:event_tracer",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001041 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001042 "../rtc_base:network_constants",
Florent Castellie10a9f62022-04-04 17:04:37 +02001043 "../rtc_base:safe_conversions",
Florent Castellidd837e22022-04-04 17:16:15 +02001044 "../rtc_base:timeutils",
Harald Alvestrandc1e8aeb2022-03-31 19:53:50 +00001045 "../stats:rtc_stats",
Mirko Bonadei17f48782018-09-28 08:51:10 +02001046 "../system_wrappers:field_trial",
1047 "../system_wrappers:metrics",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001048 ]
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001049
1050 if (is_ios) {
1051 deps += [ ":native_api_audio_device_module" ]
1052 }
kthelgasonebc34e72016-09-15 04:30:18 -07001053 }
Zeke Chindd0e1e02016-10-11 13:27:26 -07001054
mbonadei2c8ac1b2017-05-31 05:14:26 -07001055 if (rtc_include_tests) {
Daniela012b56b2017-11-15 13:15:24 +01001056 if (is_ios) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001057 rtc_library("sdk_unittests_sources") {
Danielaae012cf2017-10-12 13:46:00 +02001058 testonly = true
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001059 include_dirs = [ "objc/" ]
Daniela012b56b2017-11-15 13:15:24 +01001060
Danielaae012cf2017-10-12 13:46:00 +02001061 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001062 "objc/unittests/ObjCVideoTrackSource_xctest.mm",
1063 "objc/unittests/RTCCVPixelBuffer_xctest.mm",
1064 "objc/unittests/RTCCallbackLogger_xctest.m",
Kári Tristan Helgasonecbdbf62020-02-20 07:34:45 -08001065 "objc/unittests/RTCEncodedImage_xctest.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001066 "objc/unittests/RTCFileVideoCapturer_xctest.mm",
1067 "objc/unittests/RTCH264ProfileLevelId_xctest.m",
Jake Brombergfb7fd242021-06-14 13:44:25 -07001068 "objc/unittests/RTCMTLVideoView_xctest.m",
Aaron Goldenfb4e9bc2019-01-04 12:03:31 -08001069 "objc/unittests/RTCNV12TextureCache_xctest.m",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001070 "objc/unittests/RTCPeerConnectionFactory_xctest.m",
1071 "objc/unittests/frame_buffer_helpers.h",
1072 "objc/unittests/frame_buffer_helpers.mm",
Artem Titarenko42b43152018-10-29 18:18:09 +01001073 "objc/unittests/nalu_rewriter_xctest.mm",
Danielaae012cf2017-10-12 13:46:00 +02001074 ]
Daniela012b56b2017-11-15 13:15:24 +01001075
Mirko Bonadei6b09c452021-07-05 16:47:49 +02001076 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
1077 # workaround.
1078 defines = [ "GLES_SILENCE_DEPRECATION" ]
1079
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001080 # TODO(peterhanspers): Reenable these tests on simulator.
1081 # See bugs.webrtc.org/7812
Lahiru Ginnaliya Gamathige1d0e7b62020-10-20 02:43:02 -07001082 if (target_environment != "simulator") {
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001083 sources += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001084 "objc/unittests/RTCAudioDeviceModule_xctest.mm",
1085 "objc/unittests/RTCAudioDevice_xctest.mm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001086 ]
1087 }
1088
Danielaae012cf2017-10-12 13:46:00 +02001089 deps = [
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001090 ":audio_device",
Joe Chen0b3a6e32019-12-26 23:01:42 -08001091 ":audio_session_objc",
Kári Tristan Helgasonecbdbf62020-02-20 07:34:45 -08001092 ":base_native_additions_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001093 ":base_objc",
1094 ":callback_logger_objc",
Anders Carlssondc6b4772018-01-15 13:31:03 +01001095 ":framework_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001096 ":mediaconstraints_objc",
Jake Brombergfb7fd242021-06-14 13:44:25 -07001097 ":metal_objc",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001098 ":native_api",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001099 ":native_api_audio_device_module",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001100 ":native_video",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001101 ":peerconnectionfactory_base_objc",
Artem Titarenko42b43152018-10-29 18:18:09 +01001102 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001103 ":videocapture_objc",
Anders Carlsson79ce8202018-06-01 12:51:09 +02001104 ":videocodec_objc",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001105 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001106 ":videosource_objc",
Danielaae012cf2017-10-12 13:46:00 +02001107 ":videotoolbox_objc",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001108 "../api:scoped_refptr",
Byoungchan Lee43bd7602019-10-08 23:58:41 +09001109 "../api/task_queue:default_task_queue_factory",
Ilya Nikolaevskiy38e9b062020-10-08 14:36:33 +00001110 "../api/video:video_frame",
Artem Titov94b57c02019-03-21 13:35:10 +01001111 "../common_video",
Danielaae012cf2017-10-12 13:46:00 +02001112 "../media:rtc_media_base",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001113 "../media:rtc_media_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +01001114 "../rtc_base",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001115 "../rtc_base:gunit_helpers",
Florent Castelli4467ad72022-04-04 15:18:46 +02001116 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 02:54:12 +02001117 "../rtc_base:refcount",
Byoungchan Lee83ceb902021-11-16 11:31:57 +09001118 "../rtc_base/system:unused",
Artem Titov94b57c02019-03-21 13:35:10 +01001119 "../system_wrappers",
Anders Carlssonfe9d8172018-04-03 11:40:39 +02001120 "//third_party/libyuv",
Danielaae012cf2017-10-12 13:46:00 +02001121 ]
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001122
Jordan Rose53d3fc92021-07-06 12:16:41 -07001123 if (rtc_ios_macos_use_opengl_rendering) {
1124 deps += [ ":opengl_objc" ]
1125 }
1126
Danielaae012cf2017-10-12 13:46:00 +02001127 public_deps = [
1128 "//build/config/ios:xctest",
1129 "//third_party/ocmock",
1130 ]
1131 }
1132
Daniela012b56b2017-11-15 13:15:24 +01001133 bundle_data("sdk_unittests_bundle_data") {
Daniela012b56b2017-11-15 13:15:24 +01001134 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001135 "objc/unittests/audio_short16.pcm",
1136 "objc/unittests/audio_short44.pcm",
1137 "objc/unittests/audio_short48.pcm",
Peter Hanspers8d95e3b2018-05-15 10:22:36 +02001138
1139 # Sample video taken from https://media.xiph.org/video/derf/
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001140 "objc/unittests/foreman.mp4",
Daniela012b56b2017-11-15 13:15:24 +01001141 ]
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001142 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
Daniela012b56b2017-11-15 13:15:24 +01001143 }
1144
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001145 # These tests use static linking.
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001146 rtc_test("sdk_unittests") {
1147 is_xctest = true
Danielaae012cf2017-10-12 13:46:00 +02001148 info_plist = "//test/ios/Info.plist"
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001149 sources = [ "objc/unittests/main.mm" ]
Daniela012b56b2017-11-15 13:15:24 +01001150
Artem Titarenkoa2bc3622019-08-19 14:24:00 +02001151 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Danielaae012cf2017-10-12 13:46:00 +02001152 deps = [
Yura Yaroshevich5297bd22018-06-19 12:51:51 +03001153 ":peerconnectionfactory_base_objc",
Daniela012b56b2017-11-15 13:15:24 +01001154 ":sdk_unittests_bundle_data",
Danielaae012cf2017-10-12 13:46:00 +02001155 ":sdk_unittests_sources",
Niels Möller5a8f8602019-06-12 11:30:59 +02001156 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001157 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001158 "//test:test_support",
Danielaae012cf2017-10-12 13:46:00 +02001159 ]
1160 ldflags = [ "-all_load" ]
1161 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001162
1163 # These tests link to the framework.
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001164 rtc_test("sdk_framework_unittests") {
1165 is_xctest = true
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001166 info_plist = "//test/ios/Info.plist"
1167 sources = [
1168 "objc/unittests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001169 "objc/unittests/main.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001170 ]
1171
Artem Titarenkoa2bc3622019-08-19 14:24:00 +02001172 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001173 deps = [
1174 ":framework_objc+link",
1175 ":ios_framework_bundle",
Niels Möller5a8f8602019-06-12 11:30:59 +02001176 "../rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001177 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 12:29:29 +01001178 "//test:test_support",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001179 ]
1180 }
Danielaae012cf2017-10-12 13:46:00 +02001181 }
1182
1183 # TODO(denicija): once all tests are migrated to xctest remove this source set.
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001184 rtc_library("rtc_unittests_objc") {
mbonadei2c8ac1b2017-05-31 05:14:26 -07001185 testonly = true
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001186
mbonadei2c8ac1b2017-05-31 05:14:26 -07001187 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001188 "objc/unittests/RTCCertificateTest.mm",
1189 "objc/unittests/RTCConfigurationTest.mm",
1190 "objc/unittests/RTCDataChannelConfigurationTest.mm",
1191 "objc/unittests/RTCIceCandidateTest.mm",
1192 "objc/unittests/RTCIceServerTest.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001193 "objc/unittests/RTCMediaConstraintsTest.mm",
1194 "objc/unittests/RTCPeerConnectionFactoryBuilderTest.mm",
1195 "objc/unittests/RTCPeerConnectionTest.mm",
1196 "objc/unittests/RTCSessionDescriptionTest.mm",
1197 "objc/unittests/RTCTracingTest.mm",
1198 "objc/unittests/objc_video_decoder_factory_tests.mm",
1199 "objc/unittests/objc_video_encoder_factory_tests.mm",
1200 "objc/unittests/scoped_cftyperef_tests.mm",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001201 ]
Anders Carlssone7dd83f2018-01-19 11:28:44 +01001202 if (is_ios) {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001203 sources += [ "objc/unittests/RTCCameraVideoCapturerTests.mm" ]
oprypin45197522017-06-22 01:47:20 -07001204 }
mbonadeid7620582017-05-30 01:50:35 -07001205
mbonadei2c8ac1b2017-05-31 05:14:26 -07001206 # |-ObjC| flag needed to make sure category method implementations
1207 # are included:
1208 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
1209 ldflags = [ "-ObjC" ]
magjed3149e092017-05-08 05:32:05 -07001210
mbonadei2c8ac1b2017-05-31 05:14:26 -07001211 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001212 ":base_objc",
1213 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001214 ":mediaconstraints_objc",
1215 ":native_api",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001216 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001217 ":peerconnectionfactory_base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001218 ":videocapture_objc",
1219 ":videocodec_objc",
1220 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001221 ":videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -07001222 ":videotoolbox_objc",
Piotr (Peter) Slatalae0c2e972018-10-08 09:43:21 -07001223 "../api:libjingle_peerconnection_api",
Jiawei Ouae810c12018-06-20 16:18:59 -07001224 "../api/audio_codecs:audio_codecs_api",
1225 "../api/audio_codecs:builtin_audio_decoder_factory",
1226 "../api/audio_codecs:builtin_audio_encoder_factory",
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +02001227 "../api/video_codecs:video_codecs_api",
kthelgasonebd4f792017-09-04 04:36:21 -07001228 "../media:rtc_media_base",
Jiawei Ouae810c12018-06-20 16:18:59 -07001229 "../modules/audio_device:audio_device_api",
Artem Titov94b57c02019-03-21 13:35:10 +01001230 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +00001231 "../modules/audio_processing:api",
Patrik Höglund99175c62018-01-08 11:05:10 +01001232 "../modules/video_coding:video_codec_interface",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001233 "../rtc_base:gunit_helpers",
Byoungchan Lee0a54e7a2021-09-06 22:32:52 +09001234 "../rtc_base:rtc_event",
Niels Möllera12c42a2018-07-25 16:05:48 +02001235 "../rtc_base/system:unused",
Yves Gerey21cddff2018-10-30 21:12:42 +01001236 "../test:test_support",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001237 "//third_party/ocmock",
1238 ]
magjed3149e092017-05-08 05:32:05 -07001239
denicija59ee91b2017-06-05 05:48:47 -07001240 if (is_ios) {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001241 sources += [ "objc/unittests/RTCAudioSessionTest.mm" ]
Joe Chen0b3a6e32019-12-26 23:01:42 -08001242 deps += [ ":audio_session_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001243 }
mbonadei2c8ac1b2017-05-31 05:14:26 -07001244 }
kthelgason2f088792017-05-30 01:48:47 -07001245 }
1246
mbonadei2c8ac1b2017-05-31 05:14:26 -07001247 if (is_ios) {
Byoungchan Lee26b23b82022-04-08 18:23:14 +09001248 apple_framework_bundle_with_umbrella_header("framework_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001249 info_plist = "objc/Info.plist"
mbonadei2c8ac1b2017-05-31 05:14:26 -07001250 output_name = "WebRTC"
Magnus Jedvertf83dc8b2017-08-29 09:49:43 +00001251
mbonadei2c8ac1b2017-05-31 05:14:26 -07001252 common_objc_headers = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001253 "objc/base/RTCCodecSpecificInfo.h",
1254 "objc/base/RTCEncodedImage.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001255 "objc/base/RTCI420Buffer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001256 "objc/base/RTCLogging.h",
1257 "objc/base/RTCMacros.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001258 "objc/base/RTCMutableI420Buffer.h",
1259 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001260 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001261 "objc/base/RTCVideoCapturer.h",
1262 "objc/base/RTCVideoCodecInfo.h",
1263 "objc/base/RTCVideoDecoder.h",
1264 "objc/base/RTCVideoDecoderFactory.h",
1265 "objc/base/RTCVideoEncoder.h",
1266 "objc/base/RTCVideoEncoderFactory.h",
1267 "objc/base/RTCVideoEncoderQpThresholds.h",
1268 "objc/base/RTCVideoEncoderSettings.h",
1269 "objc/base/RTCVideoFrame.h",
1270 "objc/base/RTCVideoFrameBuffer.h",
1271 "objc/base/RTCVideoRenderer.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001272 "objc/base/RTCYUVPlanarBuffer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001273 "objc/components/audio/RTCAudioSession.h",
1274 "objc/components/audio/RTCAudioSessionConfiguration.h",
1275 "objc/components/capturer/RTCCameraVideoCapturer.h",
1276 "objc/components/capturer/RTCFileVideoCapturer.h",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001277 "objc/components/network/RTCNetworkMonitor.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001278 "objc/components/renderer/metal/RTCMTLVideoView.h",
1279 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
1280 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1281 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1282 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1283 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1284 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1285 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1286 "objc/components/video_codec/RTCVideoDecoderH264.h",
1287 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1288 "objc/components/video_codec/RTCVideoEncoderH264.h",
1289 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1290 "objc/helpers/RTCCameraPreviewView.h",
1291 "objc/helpers/RTCDispatcher.h",
1292 "objc/helpers/UIDevice+RTCDevice.h",
1293 "objc/api/peerconnection/RTCAudioSource.h",
1294 "objc/api/peerconnection/RTCAudioTrack.h",
1295 "objc/api/peerconnection/RTCConfiguration.h",
1296 "objc/api/peerconnection/RTCDataChannel.h",
1297 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1298 "objc/api/peerconnection/RTCFieldTrials.h",
1299 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 19:01:43 +09001300 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001301 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001302 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1303 "objc/api/peerconnection/RTCMediaConstraints.h",
1304 "objc/api/peerconnection/RTCMediaSource.h",
1305 "objc/api/peerconnection/RTCMediaStream.h",
1306 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1307 "objc/api/peerconnection/RTCMetrics.h",
1308 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1309 "objc/api/peerconnection/RTCPeerConnection.h",
1310 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1311 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1312 "objc/api/peerconnection/RTCRtcpParameters.h",
1313 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1314 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1315 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1316 "objc/api/peerconnection/RTCRtpParameters.h",
1317 "objc/api/peerconnection/RTCRtpReceiver.h",
1318 "objc/api/peerconnection/RTCRtpSender.h",
1319 "objc/api/peerconnection/RTCRtpTransceiver.h",
1320 "objc/api/peerconnection/RTCDtmfSender.h",
1321 "objc/api/peerconnection/RTCSSLAdapter.h",
1322 "objc/api/peerconnection/RTCSessionDescription.h",
CZ Theng682dabd2019-10-21 11:25:18 +08001323 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001324 "objc/api/peerconnection/RTCTracing.h",
1325 "objc/api/peerconnection/RTCCertificate.h",
Benjamin Wright8c27cca2018-10-25 10:16:44 -07001326 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001327 "objc/api/peerconnection/RTCVideoSource.h",
1328 "objc/api/peerconnection/RTCVideoTrack.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001329 "objc/api/video_codec/RTCVideoCodecConstants.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001330 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1331 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001332 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001333 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1334 "objc/api/video_codec/RTCVideoEncoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001335 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson4e5af962018-09-03 14:44:50 +02001336 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1337 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001338 ]
Magnus Jedvert8b4e92d2018-04-13 15:36:43 +02001339
mbonadei2c8ac1b2017-05-31 05:14:26 -07001340 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001341 common_objc_headers += [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001342 "objc/api/logging/RTCCallbackLogger.h",
1343 "objc/api/peerconnection/RTCFileLogger.h",
Anders Carlsson3b3364e2018-01-30 15:46:13 +01001344 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001345 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001346
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001347 sources = common_objc_headers
1348 public_headers = common_objc_headers
1349
mbonadei2c8ac1b2017-05-31 05:14:26 -07001350 ldflags = [
1351 "-all_load",
1352 "-install_name",
1353 "@rpath/$output_name.framework/$output_name",
1354 ]
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001355
mbonadei2c8ac1b2017-05-31 05:14:26 -07001356 deps = [
kthelgason36d658d2017-08-24 05:43:45 -07001357 ":audio_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001358 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001359 ":default_codec_factory_objc",
Mirko Bonadei91d39752022-01-19 08:43:17 +01001360 ":metal_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001361 ":native_api",
1362 ":native_video",
1363 ":peerconnectionfactory_base_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001364 ":videocapture_objc",
1365 ":videocodec_objc",
1366 ":videotoolbox_objc",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001367 "../rtc_base:rtc_base_approved",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001368 ]
Jordan Rose53d3fc92021-07-06 12:16:41 -07001369 if (rtc_ios_macos_use_opengl_rendering) {
1370 deps += [ ":opengl_ui_objc" ]
1371 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001372 if (!build_with_chromium) {
1373 deps += [
1374 ":callback_logger_objc",
1375 ":file_logger_objc",
1376 ]
1377 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001378
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001379 frameworks = [
mbonadei2c8ac1b2017-05-31 05:14:26 -07001380 "AVFoundation.framework",
1381 "CoreGraphics.framework",
1382 "CoreMedia.framework",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001383 ]
1384
Byoungchan Lee26b23b82022-04-08 18:23:14 +09001385 configs = [
Anders Carlsson358f2e02018-06-04 10:24:37 +02001386 "..:common_objc",
1387 ":used_from_extension",
1388 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001389
kthelgason36d658d2017-08-24 05:43:45 -07001390 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001391 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001392
1393 bundle_data("ios_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001394 deps = [ "../sdk:framework_objc" ]
1395 sources = [ "$root_build_dir/WebRTC.framework" ]
1396 outputs = [ "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001397 }
1398 }
1399
1400 if (is_mac) {
Byoungchan Lee26b23b82022-04-08 18:23:14 +09001401 apple_framework_bundle_with_umbrella_header("mac_framework_objc") {
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001402 info_plist = "objc/Info.plist"
1403 output_name = "WebRTC"
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001404
Anders Carlsson37bbf792018-09-05 16:29:27 +02001405 sources = [
1406 "objc/api/peerconnection/RTCAudioSource.h",
1407 "objc/api/peerconnection/RTCAudioTrack.h",
1408 "objc/api/peerconnection/RTCCertificate.h",
1409 "objc/api/peerconnection/RTCConfiguration.h",
Benjamin Wright8c27cca2018-10-25 10:16:44 -07001410 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001411 "objc/api/peerconnection/RTCDataChannel.h",
1412 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1413 "objc/api/peerconnection/RTCDtmfSender.h",
1414 "objc/api/peerconnection/RTCFieldTrials.h",
1415 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 19:01:43 +09001416 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001417 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001418 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1419 "objc/api/peerconnection/RTCMediaConstraints.h",
1420 "objc/api/peerconnection/RTCMediaSource.h",
1421 "objc/api/peerconnection/RTCMediaStream.h",
1422 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1423 "objc/api/peerconnection/RTCMetrics.h",
1424 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1425 "objc/api/peerconnection/RTCPeerConnection.h",
1426 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1427 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1428 "objc/api/peerconnection/RTCRtcpParameters.h",
1429 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1430 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1431 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1432 "objc/api/peerconnection/RTCRtpParameters.h",
1433 "objc/api/peerconnection/RTCRtpReceiver.h",
1434 "objc/api/peerconnection/RTCRtpSender.h",
1435 "objc/api/peerconnection/RTCRtpTransceiver.h",
1436 "objc/api/peerconnection/RTCSSLAdapter.h",
1437 "objc/api/peerconnection/RTCSessionDescription.h",
Saúl Ibarra Corretgéf7aa2672021-07-28 23:09:14 +02001438 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001439 "objc/api/peerconnection/RTCTracing.h",
1440 "objc/api/peerconnection/RTCVideoSource.h",
1441 "objc/api/peerconnection/RTCVideoTrack.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001442 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001443 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1444 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 12:29:42 +03001445 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001446 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1447 "objc/api/video_codec/RTCVideoEncoderVP9.h",
1448 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1449 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
1450 "objc/base/RTCCodecSpecificInfo.h",
1451 "objc/base/RTCEncodedImage.h",
1452 "objc/base/RTCI420Buffer.h",
1453 "objc/base/RTCLogging.h",
1454 "objc/base/RTCMacros.h",
1455 "objc/base/RTCMutableI420Buffer.h",
1456 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001457 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson37bbf792018-09-05 16:29:27 +02001458 "objc/base/RTCVideoCapturer.h",
1459 "objc/base/RTCVideoCodecInfo.h",
1460 "objc/base/RTCVideoDecoder.h",
1461 "objc/base/RTCVideoDecoderFactory.h",
1462 "objc/base/RTCVideoEncoder.h",
1463 "objc/base/RTCVideoEncoderFactory.h",
1464 "objc/base/RTCVideoEncoderQpThresholds.h",
1465 "objc/base/RTCVideoEncoderSettings.h",
1466 "objc/base/RTCVideoFrame.h",
1467 "objc/base/RTCVideoFrameBuffer.h",
1468 "objc/base/RTCVideoRenderer.h",
1469 "objc/base/RTCYUVPlanarBuffer.h",
1470 "objc/components/capturer/RTCCameraVideoCapturer.h",
1471 "objc/components/capturer/RTCFileVideoCapturer.h",
1472 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
1473 "objc/components/renderer/opengl/RTCNSGLVideoView.h",
1474 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1475 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1476 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1477 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1478 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1479 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1480 "objc/components/video_codec/RTCVideoDecoderH264.h",
1481 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1482 "objc/components/video_codec/RTCVideoEncoderH264.h",
1483 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1484 "objc/helpers/RTCDispatcher.h",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001485 ]
Anders Carlsson37bbf792018-09-05 16:29:27 +02001486 if (!build_with_chromium) {
1487 sources += [
1488 "objc/api/logging/RTCCallbackLogger.h",
1489 "objc/api/peerconnection/RTCFileLogger.h",
1490 ]
1491 }
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001492
1493 deps = [
1494 ":base_objc",
1495 ":default_codec_factory_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001496 ":native_api",
1497 ":native_video",
Jordan Rose53d3fc92021-07-06 12:16:41 -07001498 ":opengl_ui_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001499 ":peerconnectionfactory_base_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001500 ":videocapture_objc",
1501 ":videocodec_objc",
1502 ":videotoolbox_objc",
1503 "../rtc_base:rtc_base_approved",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001504 ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001505 if (!build_with_chromium) {
1506 deps += [
1507 ":callback_logger_objc",
1508 ":file_logger_objc",
1509 ]
1510 }
1511
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001512 frameworks = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001513 "AVFoundation.framework",
1514 "CoreGraphics.framework",
1515 "CoreMedia.framework",
1516 "OpenGL.framework",
1517 ]
1518
Anders Carlsson37bbf792018-09-05 16:29:27 +02001519 configs = [ "..:common_objc" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001520
1521 public_configs = [ ":common_config_objc" ]
1522 }
1523
1524 bundle_data("mac_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 14:41:10 +01001525 deps = [ "../sdk:mac_framework_objc" ]
1526 sources = [ "$root_build_dir/WebRTC.framework" ]
1527 outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001528 }
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001529 }
1530
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001531 rtc_library("wrapped_native_codec_objc") {
Anders Carlsson9823ee42018-03-07 10:32:03 +01001532 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001533 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.h",
1534 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.mm",
1535 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.h",
1536 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.mm",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001537 ]
1538
1539 configs += [ "..:common_objc" ]
1540 public_configs = [ ":common_config_objc" ]
1541
Anders Carlsson9823ee42018-03-07 10:32:03 +01001542 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001543 ":base_objc",
1544 ":helpers_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001545 "../api/video_codecs:video_codecs_api",
1546 "../media:rtc_media_base",
1547 ]
1548 }
1549
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001550 # The native API is currently experimental and may change without notice.
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001551 rtc_library("native_api") {
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001552 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +01001553 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001554 sources = [
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001555 "objc/native/api/network_monitor_factory.h",
1556 "objc/native/api/network_monitor_factory.mm",
Yury Yaroshevich19a6e942022-03-11 09:22:08 +01001557 "objc/native/api/ssl_certificate_verifier.h",
1558 "objc/native/api/ssl_certificate_verifier.mm",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001559 "objc/native/api/video_capturer.h",
1560 "objc/native/api/video_capturer.mm",
1561 "objc/native/api/video_decoder_factory.h",
1562 "objc/native/api/video_decoder_factory.mm",
1563 "objc/native/api/video_encoder_factory.h",
1564 "objc/native/api/video_encoder_factory.mm",
1565 "objc/native/api/video_frame.h",
1566 "objc/native/api/video_frame.mm",
1567 "objc/native/api/video_frame_buffer.h",
1568 "objc/native/api/video_frame_buffer.mm",
1569 "objc/native/api/video_renderer.h",
1570 "objc/native/api/video_renderer.mm",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001571 ]
1572
1573 configs += [ "..:common_objc" ]
1574
1575 public_configs = [ ":common_config_objc" ]
1576
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001577 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001578 ":base_objc",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001579 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001580 ":videoframebuffer_objc",
Anders Carlsson73119182018-03-15 09:41:03 +01001581 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 14:30:41 +02001582 "../api:media_stream_interface",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001583 "../api:scoped_refptr",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001584 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001585 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001586 "../api/video_codecs:video_codecs_api",
1587 "../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +01001588 "../rtc_base",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001589 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 02:54:12 +02001590 "../rtc_base:refcount",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001591 "../rtc_base:threading",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001592 ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001593 if (is_ios) {
1594 deps += [ ":native_network_monitor" ]
1595 }
Mirko Bonadei2dcf3482020-06-05 14:30:41 +02001596 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001597 }
1598
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001599 if (is_ios) {
1600 rtc_library("native_network_monitor") {
1601 visibility = [ "*" ]
1602
1603 sources = [
1604 "objc/native/src/objc_network_monitor.h",
1605 "objc/native/src/objc_network_monitor.mm",
1606 ]
1607
1608 deps = [
1609 ":network_monitor_objc",
1610 ":network_monitor_observer",
Jonas Orelande62c2f22022-03-29 11:04:48 +02001611 "../api:field_trials_view",
Artem Titovd15a5752021-02-10 14:31:24 +01001612 "../api:sequence_checker",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001613 "../rtc_base",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001614 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +02001615 "../rtc_base:macromagic",
Florent Castelli57aa81b2022-04-04 17:14:02 +02001616 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +01001617 "../rtc_base:threading",
Niels Möllerbe140b42021-03-11 10:24:06 +01001618 "../rtc_base/task_utils:pending_task_safety_flag",
1619 "../rtc_base/task_utils:to_queued_task",
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001620 ]
Ali Tofigh7fa90572022-03-17 15:47:49 +01001621
1622 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 16:41:54 -07001623 }
1624 }
1625
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001626 rtc_library("native_video") {
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001627 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001628 "objc/native/src/objc_frame_buffer.h",
1629 "objc/native/src/objc_frame_buffer.mm",
1630 "objc/native/src/objc_video_decoder_factory.h",
1631 "objc/native/src/objc_video_decoder_factory.mm",
1632 "objc/native/src/objc_video_encoder_factory.h",
1633 "objc/native/src/objc_video_encoder_factory.mm",
1634 "objc/native/src/objc_video_frame.h",
1635 "objc/native/src/objc_video_frame.mm",
1636 "objc/native/src/objc_video_renderer.h",
1637 "objc/native/src/objc_video_renderer.mm",
1638 "objc/native/src/objc_video_track_source.h",
1639 "objc/native/src/objc_video_track_source.mm",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001640 ]
1641
1642 configs += [ "..:common_objc" ]
1643
1644 public_configs = [ ":common_config_objc" ]
1645
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001646 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001647 ":base_native_additions_objc",
1648 ":base_objc",
1649 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001650 ":videocodec_objc",
1651 ":videoframebuffer_objc",
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001652 ":vpx_codec_constants",
Anders Carlsson9823ee42018-03-07 10:32:03 +01001653 ":wrapped_native_codec_objc",
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001654 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +02001655 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001656 "../api/video_codecs:video_codecs_api",
1657 "../common_video",
1658 "../media:rtc_audio_video",
1659 "../media:rtc_media_base",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001660 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +01001661 "../rtc_base",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001662 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001663 "../rtc_base:logging",
Florent Castellib1dc4e42022-04-14 13:20:12 +02001664 "../rtc_base:timestamp_aligner",
Florent Castellidd837e22022-04-04 17:16:15 +02001665 "../rtc_base:timeutils",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +01001666 ]
1667 }
1668
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001669 rtc_library("video_toolbox_cc") {
Artem Titarenko42b43152018-10-29 18:18:09 +01001670 visibility = [
Mirko Bonadei08574ae2020-09-16 07:22:57 +00001671 ":sdk_unittests_sources",
Mirko Bonadeiaef8a212020-09-16 15:09:53 +02001672 ":videotoolbox_objc",
Artem Titarenko42b43152018-10-29 18:18:09 +01001673 ]
mbonadei2c8ac1b2017-05-31 05:14:26 -07001674 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001675 "objc/components/video_codec/helpers.cc",
1676 "objc/components/video_codec/helpers.h",
1677 "objc/components/video_codec/nalu_rewriter.cc",
1678 "objc/components/video_codec/nalu_rewriter.h",
mbonadeic0af5ac2017-08-24 12:26:05 -07001679 ]
1680 deps = [
1681 "../common_video",
mbonadeic0af5ac2017-08-24 12:26:05 -07001682 "../modules/video_coding:webrtc_h264",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001683 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001684 "../rtc_base:logging",
mbonadeic0af5ac2017-08-24 12:26:05 -07001685 "../rtc_base:rtc_base_approved",
1686 ]
mbonadeic0af5ac2017-08-24 12:26:05 -07001687 }
1688
Mirko Bonadei86d053c2019-10-17 21:32:04 +02001689 rtc_library("videotoolbox_objc") {
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001690 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 14:23:23 +01001691 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadeic0af5ac2017-08-24 12:26:05 -07001692 sources = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001693 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1694 "objc/components/video_codec/RTCVideoDecoderFactoryH264.m",
1695 "objc/components/video_codec/RTCVideoDecoderH264.h",
1696 "objc/components/video_codec/RTCVideoDecoderH264.mm",
1697 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1698 "objc/components/video_codec/RTCVideoEncoderFactoryH264.m",
1699 "objc/components/video_codec/RTCVideoEncoderH264.h",
1700 "objc/components/video_codec/RTCVideoEncoderH264.mm",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001701 ]
1702
Anders Carlsson358f2e02018-06-04 10:24:37 +02001703 configs += [
1704 "..:common_objc",
1705 ":used_from_extension",
1706 ]
1707
1708 if (is_ios && rtc_apprtcmobile_broadcast_extension) {
1709 defines = [ "RTC_APPRTCMOBILE_BROADCAST_EXTENSION" ]
1710 }
mbonadei2c8ac1b2017-05-31 05:14:26 -07001711
1712 deps = [
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001713 ":base_native_additions_objc",
1714 ":base_objc",
1715 ":helpers_objc",
mbonadeic0af5ac2017-08-24 12:26:05 -07001716 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +01001717 ":videocodec_objc",
1718 ":videoframebuffer_objc",
Johannes Kronc3fcee72021-04-19 09:09:26 +02001719 "../api/video_codecs:video_codecs_api",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001720 "../common_video",
Patrik Höglund99175c62018-01-08 11:05:10 +01001721 "../modules/video_coding:video_codec_interface",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001722 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +02001723 "../rtc_base:logging",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001724 "../rtc_base:rtc_base_approved",
Florent Castellidd837e22022-04-04 17:16:15 +02001725 "../rtc_base:timeutils",
Mirko Bonadei401d0562017-12-14 11:24:00 +01001726 "//third_party/libyuv",
mbonadei2c8ac1b2017-05-31 05:14:26 -07001727 ]
1728
Sylvain Defresnec7f0dff2020-07-03 10:19:30 +02001729 frameworks = [
mbonadei2c8ac1b2017-05-31 05:14:26 -07001730 "CoreFoundation.framework",
1731 "CoreMedia.framework",
1732 "CoreVideo.framework",
1733 "VideoToolbox.framework",
1734 ]
Kári Tristan Helgasoncbe74352016-11-09 10:43:26 +01001735 }
1736 }
tkchin9eeb6242016-04-27 01:54:20 -07001737}