blob: 4f5ceb5ed3d940f1fb7ac8021bdacc9c28da6a7a [file] [log] [blame]
tkchin9eeb6242016-04-27 08:54:201# 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
philipel4eab9f42022-05-31 15:24:449import("//third_party/libaom/options.gni")
mbonadei9aa3f0a2017-01-24 14:58:2210import("../webrtc.gni")
kthelgasonebc34e72016-09-15 11:30:1811if (is_ios) {
oprypin45197522017-06-22 08:47:2012 import("//build/config/ios/ios_sdk.gni")
Mirko Bonadei2ff3f492018-11-22 08:00:1313 import("//build/config/ios/rules.gni")
kthelgasonebc34e72016-09-15 11:30:1814}
Anders Carlsson7bca8ca2018-08-30 07:30:2915if (is_mac) {
16 import("//build/config/mac/rules.gni")
kthelgason2f088792017-05-30 08:48:4717}
18
kjellander6ceab082016-10-28 12:44:0319group("sdk") {
Henrik Kjellandera7d0df72017-06-27 06:56:4620 public_deps = []
21 if (!build_with_chromium) {
22 if (is_android) {
23 public_deps += [ "android" ]
24 }
25 if (is_ios) {
kthelgason36d658d2017-08-24 12:43:4526 public_deps += [ ":framework_objc" ]
Henrik Kjellandera7d0df72017-06-27 06:56:4627 }
kjellander6ceab082016-10-28 12:44:0328 }
29}
30
Mirko Bonadei86d053c2019-10-17 19:32:0431rtc_library("media_constraints") {
Niels Möllerdac03d92019-02-13 07:52:2732 sources = [
33 "media_constraints.cc",
34 "media_constraints.h",
35 ]
36 deps = [
37 "../api:audio_options_api",
38 "../api:libjingle_peerconnection_api",
Niels Möllerdac03d92019-02-13 07:52:2739 ]
Mirko Bonadei2dcf3482020-06-05 12:30:4140 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möllerdac03d92019-02-13 07:52:2741}
42
Mirko Bonadei86d053c2019-10-17 19:32:0443rtc_library("sdk_tests") {
Niels Möllerdac03d92019-02-13 07:52:2744 testonly = true
Danil Chapovalov64f1f3f2020-01-16 13:41:1045 sources = [ "media_constraints_unittest.cc" ]
Niels Möllerdac03d92019-02-13 07:52:2746 deps = [
47 ":media_constraints",
48 "../test:test_support",
49 ]
50}
51
kthelgasoncc2d1c62016-11-09 15:44:2752if (is_ios || is_mac) {
kthelgason36d658d2017-08-24 12:43:4553 config("common_config_objc") {
kjellander080a1e32016-05-25 18:37:1154 include_dirs = [
Anders Carlsson7bca8ca2018-08-30 07:30:2955 "objc",
56
57 # This is needed so that framework headers can include base headers
58 # without pathname (so it works from within the framework module).
59 "objc/base",
kjellander080a1e32016-05-25 18:37:1160 ]
Kári Tristan Helgason47d3a012017-10-24 13:28:5161 cflags = [
Jiawei Ou4aeb35b2018-11-09 21:55:4562 "-Wimplicit-retain-self",
Kári Tristan Helgason47d3a012017-10-24 13:28:5163 "-Wstrict-overflow",
64 "-Wmissing-field-initializers",
65 ]
Artem Titarenko17ad64e2018-09-19 15:53:5966
67 if (use_clang_coverage) {
68 configs = [ "//build/config/coverage:default_coverage" ]
69 }
kjellander080a1e32016-05-25 18:37:1170 }
71
Anders Carlsson358f2e02018-06-04 08:24:3772 config("used_from_extension") {
73 if (is_ios && rtc_apprtcmobile_broadcast_extension) {
74 cflags = [ "-fapplication-extension" ]
75 }
76 }
77
Anders Carlsson7bca8ca2018-08-30 07:30:2978 # TODO(bugs.webrtc.org/9627): Remove this when unused. Targets should depend on base_objc
79 # or helpers_objc directly instead.
Mirko Bonadei86d053c2019-10-17 19:32:0480 rtc_library("common_objc") {
Mirko Bonadei2ad8c432018-08-09 08:54:4081 visibility = [ "*" ]
Anders Carlsson7bca8ca2018-08-30 07:30:2982
Danil Chapovalov64f1f3f2020-01-16 13:41:1083 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson7bca8ca2018-08-30 07:30:2984
85 public_configs = [ ":common_config_objc" ]
86
87 deps = [
88 ":base_objc",
89 ":helpers_objc",
90 ]
91 }
92
Mirko Bonadei86d053c2019-10-17 19:32:0493 rtc_library("base_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:2994 visibility = [ "*" ]
95 sources = [
96 "objc/base/RTCCodecSpecificInfo.h",
97 "objc/base/RTCEncodedImage.h",
98 "objc/base/RTCEncodedImage.m",
99 "objc/base/RTCI420Buffer.h",
100 "objc/base/RTCLogging.h",
101 "objc/base/RTCLogging.mm",
102 "objc/base/RTCMacros.h",
103 "objc/base/RTCMutableI420Buffer.h",
104 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 08:22:08105 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson7bca8ca2018-08-30 07:30:29106 "objc/base/RTCVideoCapturer.h",
107 "objc/base/RTCVideoCapturer.m",
108 "objc/base/RTCVideoCodecInfo.h",
109 "objc/base/RTCVideoCodecInfo.m",
110 "objc/base/RTCVideoDecoder.h",
111 "objc/base/RTCVideoDecoderFactory.h",
112 "objc/base/RTCVideoEncoder.h",
113 "objc/base/RTCVideoEncoderFactory.h",
114 "objc/base/RTCVideoEncoderQpThresholds.h",
115 "objc/base/RTCVideoEncoderQpThresholds.m",
116 "objc/base/RTCVideoEncoderSettings.h",
117 "objc/base/RTCVideoEncoderSettings.m",
118 "objc/base/RTCVideoFrame.h",
119 "objc/base/RTCVideoFrame.mm",
120 "objc/base/RTCVideoFrameBuffer.h",
121 "objc/base/RTCVideoRenderer.h",
122 "objc/base/RTCYUVPlanarBuffer.h",
tkchin9eeb6242016-04-27 08:54:20123 ]
denicijad2088152017-04-28 09:14:54124
mbonadei1e060c62017-04-21 07:02:02125 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:42126 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30127 "../rtc_base:logging",
mbonadei1e060c62017-04-21 07:02:02128 ]
Anders Carlsson358f2e02018-06-04 08:24:37129 configs += [
130 "..:common_objc",
131 ":used_from_extension",
132 ]
kthelgasonc0977102017-04-24 07:57:16133
kthelgason36d658d2017-08-24 12:43:45134 public_configs = [ ":common_config_objc" ]
Anders Carlsson7bca8ca2018-08-30 07:30:29135 }
136
Mirko Bonadei86d053c2019-10-17 19:32:04137 rtc_library("helpers_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:29138 sources = [
Artem Titov63ee39d2022-05-13 14:46:42139 "objc/helpers/AVCaptureSession+DevicePosition.h",
140 "objc/helpers/AVCaptureSession+DevicePosition.mm",
141 "objc/helpers/NSString+StdString.h",
142 "objc/helpers/NSString+StdString.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29143 "objc/helpers/RTCDispatcher+Private.h",
144 "objc/helpers/RTCDispatcher.h",
145 "objc/helpers/RTCDispatcher.m",
Anders Carlsson7bca8ca2018-08-30 07:30:29146 "objc/helpers/scoped_cftyperef.h",
147 ]
148
149 deps = [
150 ":base_objc",
151 "../rtc_base:checks",
152 ]
153
Ali Tofigh6364d082022-03-14 12:32:04154 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
155
Sylvain Defresnec7f0dff2020-07-03 08:19:30156 frameworks = [
Anders Carlsson7bca8ca2018-08-30 07:30:29157 "AVFoundation.framework",
158 "CoreMedia.framework",
Florent Castellia6b99242023-01-16 10:53:26159 "Foundation.framework",
Anders Carlsson7bca8ca2018-08-30 07:30:29160 ]
161
162 configs += [
163 "..:common_objc",
164 ":used_from_extension",
165 ]
166
167 public_configs = [ ":common_config_objc" ]
denicijad2088152017-04-28 09:14:54168
kjellander3bcedd32016-06-08 08:14:15169 if (is_ios) {
170 sources += [
Anders Carlsson7bca8ca2018-08-30 07:30:29171 "objc/helpers/RTCCameraPreviewView.h",
172 "objc/helpers/RTCCameraPreviewView.m",
173 "objc/helpers/UIDevice+RTCDevice.h",
174 "objc/helpers/UIDevice+RTCDevice.mm",
175 ]
Florent Castellia6b99242023-01-16 10:53:26176 frameworks += [ "UIKit.framework" ]
Anders Carlsson7bca8ca2018-08-30 07:30:29177 }
178 }
179
180 if (!build_with_chromium) {
Mirko Bonadei86d053c2019-10-17 19:32:04181 rtc_library("callback_logger_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:29182 sources = [
183 "objc/api/logging/RTCCallbackLogger.h",
184 "objc/api/logging/RTCCallbackLogger.mm",
185 ]
186
187 deps = [
188 ":base_objc",
Ali Tofigh6364d082022-03-14 12:32:04189 ":helpers_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:29190 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09191 "../rtc_base:log_sinks",
Anders Carlsson7bca8ca2018-08-30 07:30:29192 "../rtc_base:logging",
Anders Carlsson7bca8ca2018-08-30 07:30:29193 ]
194
195 configs += [
196 "..:common_objc",
197 ":used_from_extension",
kjellander3bcedd32016-06-08 08:14:15198 ]
Ali Tofigh6364d082022-03-14 12:32:04199
200 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
denicijad2088152017-04-28 09:14:54201 }
202
Mirko Bonadei86d053c2019-10-17 19:32:04203 rtc_library("file_logger_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:29204 sources = [
205 "objc/api/peerconnection/RTCFileLogger.h",
206 "objc/api/peerconnection/RTCFileLogger.mm",
207 ]
208
209 deps = [
210 ":base_objc",
211 "../rtc_base:checks",
Florent Castellia138c6c2023-01-04 11:01:09212 "../rtc_base:file_rotating_stream",
213 "../rtc_base:log_sinks",
Anders Carlsson7bca8ca2018-08-30 07:30:29214 "../rtc_base:logging",
Anders Carlsson7bca8ca2018-08-30 07:30:29215 ]
216
217 configs += [
218 "..:common_objc",
219 ":used_from_extension",
kthelgason2f088792017-05-30 08:48:47220 ]
221 }
222 }
223
mbonadei2c8ac1b2017-05-31 12:14:26224 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22225 if (is_ios) {
Mirko Bonadei86d053c2019-10-17 19:32:04226 rtc_library("native_api_audio_device_module") {
Peter Hanspers8d95e3b2018-05-15 08:22:36227 visibility = [ "*" ]
228
229 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29230 "objc/native/api/audio_device_module.h",
231 "objc/native/api/audio_device_module.mm",
Peter Hanspers8d95e3b2018-05-15 08:22:36232 ]
233
234 deps = [
235 ":audio_device",
Niels Möller105711e2022-06-14 13:48:26236 "../api:make_ref_counted",
Peter Hanspers8d95e3b2018-05-15 08:22:36237 "../modules/audio_device:audio_device_api",
238 "../modules/audio_device:audio_device_generic",
239 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30240 "../rtc_base:logging",
Peter Hanspers8d95e3b2018-05-15 08:22:36241 "../system_wrappers",
Peter Hanspers8d95e3b2018-05-15 08:22:36242 ]
Peter Hanspers8d95e3b2018-05-15 08:22:36243 }
244
245 rtc_source_set("audio_session_observer") {
246 visibility = [ ":*" ]
247
Danil Chapovalov64f1f3f2020-01-16 13:41:10248 sources = [ "objc/native/src/audio/audio_session_observer.h" ]
Peter Hanspers8d95e3b2018-05-15 08:22:36249
Florent Castellia6b99242023-01-16 10:53:26250 deps = [ "../rtc_base:threading" ]
Peter Hanspers8d95e3b2018-05-15 08:22:36251 }
252
Kári Tristan Helgasonba50cb32023-06-28 12:32:04253 rtc_library("opengl_ui_objc") {
254 visibility = [ "*" ]
255 allow_poison = [
256 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
257 "default_task_queue",
258 ]
259 sources = [
260 "objc/components/renderer/opengl/RTCDisplayLinkTimer.h",
261 "objc/components/renderer/opengl/RTCDisplayLinkTimer.m",
262 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
263 "objc/components/renderer/opengl/RTCEAGLVideoView.m",
264 ]
265
266 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
267 # workaround.
268 defines = [ "GLES_SILENCE_DEPRECATION" ]
269 configs += [ "..:common_objc" ]
270 deps = [
271 ":base_objc",
272 ":helpers_objc",
273 ":metal_objc",
274 ":opengl_objc",
275 ":videocapture_objc",
276 ":videoframebuffer_objc",
277 ]
278 }
279
Mirko Bonadei86d053c2019-10-17 19:32:04280 rtc_library("audio_device") {
Peter Hanspers8d95e3b2018-05-15 08:22:36281 visibility = [ "*" ]
282
283 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29284 "objc/native/src/audio/audio_device_ios.h",
285 "objc/native/src/audio/audio_device_ios.mm",
286 "objc/native/src/audio/audio_device_module_ios.h",
287 "objc/native/src/audio/audio_device_module_ios.mm",
288 "objc/native/src/audio/helpers.h",
289 "objc/native/src/audio/helpers.mm",
290 "objc/native/src/audio/voice_processing_audio_unit.h",
291 "objc/native/src/audio/voice_processing_audio_unit.mm",
Peter Hanspers8d95e3b2018-05-15 08:22:36292 ]
293
294 deps = [
295 ":audio_objc",
296 ":audio_session_observer",
Anders Carlsson7bca8ca2018-08-30 07:30:29297 ":base_objc",
Peter Hanspers8d95e3b2018-05-15 08:22:36298 "../api:array_view",
Danil Chapovalov4a29edc2022-09-05 15:41:02299 "../api:scoped_refptr",
Florent Castelli8d4e9fb2022-04-04 15:18:21300 "../api:sequence_checker",
Danil Chapovalova6cb1502019-06-27 13:16:34301 "../api/task_queue",
302 "../api/task_queue:default_task_queue_factory",
Danil Chapovalov4a29edc2022-09-05 15:41:02303 "../api/task_queue:pending_task_safety_flag",
Peter Hanspers8d95e3b2018-05-15 08:22:36304 "../modules/audio_device:audio_device_api",
305 "../modules/audio_device:audio_device_buffer",
Artem Titov415e30f2023-06-29 14:58:57306 "../modules/audio_device:audio_device_config",
Peter Hanspers8d95e3b2018-05-15 08:22:36307 "../modules/audio_device:audio_device_generic",
Florent Castelli3a9e6872022-04-26 20:54:59308 "../rtc_base:buffer",
Peter Hanspers8d95e3b2018-05-15 08:22:36309 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30310 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 13:18:46311 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 00:54:12312 "../rtc_base:refcount",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01313 "../rtc_base:threading",
Florent Castellidd837e22022-04-04 15:16:15314 "../rtc_base:timeutils",
Kári Tristan Helgasonf49429d2019-03-28 10:03:27315 "../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 06:51:10316 "../system_wrappers:metrics",
Peter Hanspers8d95e3b2018-05-15 08:22:36317 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41318 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
Peter Hanspers8d95e3b2018-05-15 08:22:36319
Sylvain Defresnec7f0dff2020-07-03 08:19:30320 frameworks = [ "AudioToolbox.framework" ]
Mirko Bonadeia0e4ce02023-04-03 06:53:02321 if (is_mac) {
322 frameworks += [ "AudioUnit.framework" ]
323 }
Peter Hanspers8d95e3b2018-05-15 08:22:36324 }
325
Joe Chen0b3a6e32019-12-27 07:01:42326 # This target exists to expose :audio_session_objc and
327 # :audio_session_delegate_adapter_objc for backward compatibility,
328 # and should be deprecated.
329 group("audio_objc") {
330 public_deps = [ # no-presubmit-check TODO(webrtc:11238)
331 ":audio_session_delegate_adapter_objc",
332 ":audio_session_objc",
333 ]
334 }
335
336 rtc_library("audio_session_delegate_adapter_objc") {
337 sources = [
338 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.h",
339 "objc/components/audio/RTCNativeAudioSessionDelegateAdapter.mm",
340 ]
341
342 configs += [
343 "..:common_objc",
344 ":used_from_extension",
345 ]
346
347 public_configs = [ ":common_config_objc" ]
348
349 deps = [
350 ":audio_session_objc",
351 ":audio_session_observer",
352 ":base_objc",
353 ]
354 }
355
356 rtc_library("audio_session_objc") {
Joe Chen3b19b272020-01-09 16:31:06357 visibility = [ "*" ]
358
Kári Tristan Helgason99bf77c2018-02-16 09:49:22359 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29360 "objc/components/audio/RTCAudioSession+Configuration.mm",
361 "objc/components/audio/RTCAudioSession+Private.h",
362 "objc/components/audio/RTCAudioSession.h",
363 "objc/components/audio/RTCAudioSession.mm",
364 "objc/components/audio/RTCAudioSessionConfiguration.h",
365 "objc/components/audio/RTCAudioSessionConfiguration.m",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22366 ]
Joe Chen0b3a6e32019-12-27 07:01:42367
Anders Carlsson358f2e02018-06-04 08:24:37368 configs += [
369 "..:common_objc",
370 ":used_from_extension",
371 ]
denicija59ee91b2017-06-05 12:48:47372
Kári Tristan Helgason99bf77c2018-02-16 09:49:22373 public_configs = [ ":common_config_objc" ]
Anders Carlsson8ecfd802017-09-15 12:07:30374
Sylvain Defresnec7f0dff2020-07-03 08:19:30375 frameworks = [ "AVFoundation.framework" ]
Jiawei Ouc9e6b962018-10-09 19:33:06376
Kári Tristan Helgason99bf77c2018-02-16 09:49:22377 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29378 ":base_objc",
379 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22380 "../rtc_base:checks",
Niels Möller072c0082021-02-15 15:30:44381 "../rtc_base/synchronization:mutex",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22382 ]
Byoungchan Lee0a54e7a2021-09-06 13:32:52383
384 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
denicija59ee91b2017-06-05 12:48:47385 }
Taylor Brandstetterea7fbfb2020-08-19 23:41:54386
387 rtc_source_set("network_monitor_observer") {
388 visibility = [ ":*" ]
389
390 sources = [ "objc/native/src/network_monitor_observer.h" ]
391
Mirko Bonadeie5f4c6b2021-01-15 09:41:01392 deps = [
Mirko Bonadeie5f4c6b2021-01-15 09:41:01393 "../rtc_base:network_constants",
Florent Castelli57aa81b2022-04-04 15:14:02394 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01395 "../rtc_base:threading",
396 ]
Ali Tofigh7fa90572022-03-17 14:47:49397
398 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 23:41:54399 }
400
401 rtc_library("network_monitor_objc") {
402 visibility = [ "*" ]
403
404 sources = [
405 "objc/components/network/RTCNetworkMonitor+Private.h",
406 "objc/components/network/RTCNetworkMonitor.h",
407 "objc/components/network/RTCNetworkMonitor.mm",
408 ]
409
410 configs += [ ":used_from_extension" ]
411
412 frameworks = [ "Network.framework" ]
413
414 deps = [
415 ":base_objc",
416 ":helpers_objc",
417 ":network_monitor_observer",
Ali Tofigh7fa90572022-03-17 14:47:49418 "../rtc_base:stringutils",
Taylor Brandstetterea7fbfb2020-08-19 23:41:54419 "../rtc_base/system:gcd_helpers",
420 ]
421 }
Kári Tristan Helgasonbecfe2e2023-06-30 11:41:30422
423 rtc_library("opengl_objc") {
424 sources = [
425 "objc/components/renderer/opengl/RTCDefaultShader.h",
426 "objc/components/renderer/opengl/RTCDefaultShader.mm",
427 "objc/components/renderer/opengl/RTCI420TextureCache.h",
428 "objc/components/renderer/opengl/RTCI420TextureCache.mm",
429 "objc/components/renderer/opengl/RTCNV12TextureCache.h",
430 "objc/components/renderer/opengl/RTCNV12TextureCache.m",
431 "objc/components/renderer/opengl/RTCOpenGLDefines.h",
432 "objc/components/renderer/opengl/RTCShader.h",
433 "objc/components/renderer/opengl/RTCShader.mm",
434 "objc/components/renderer/opengl/RTCVideoViewShading.h",
435 ]
436 frameworks = [
437 "CoreVideo.framework",
438 "GLKit.framework",
439 "OpenGLES.framework",
440 "QuartzCore.framework",
441 ]
442
443 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
444 # workaround.
445 defines = [ "GLES_SILENCE_DEPRECATION" ]
446
447 deps = [
448 ":base_objc",
449 ":helpers_objc",
450 ":mediaconstraints_objc",
451 ":native_video",
452 ":videoframebuffer_objc",
453 ":videosource_objc",
454 "../api:libjingle_peerconnection_api",
455 "../api/video:video_frame",
456 "../api/video:video_rtp_headers",
457 "../common_video",
458 "../media:rtc_media_base",
459 "../rtc_base:checks",
460 "../rtc_base:logging",
461 ]
462 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
463
464 configs += [
465 "..:common_objc",
466 ":used_from_extension",
467 ]
468 }
denicija59ee91b2017-06-05 12:48:47469 }
zhihuanga4c113a2017-06-28 21:05:44470
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35471 rtc_source_set("audio_device_api_objc") {
472 visibility = [ "*" ]
473
474 sources = [ "objc/components/audio/RTCAudioDevice.h" ]
475
476 public_configs = [ ":common_config_objc" ]
477
478 frameworks = [ "AudioToolbox.framework" ]
479
480 deps = [ ":base_objc" ]
481 }
482
Yury Yarosheviche21a3cb2022-08-24 15:46:08483 rtc_library("audio_device_objc") {
484 visibility = [ "*" ]
Yury Yaroshevich5027c1a2022-08-31 08:04:38485 allow_poison = [ "default_task_queue" ]
Yury Yarosheviche21a3cb2022-08-24 15:46:08486 sources = [
487 "objc/native/src/objc_audio_device.h",
488 "objc/native/src/objc_audio_device.mm",
Yury Yaroshevich5027c1a2022-08-31 08:04:38489 "objc/native/src/objc_audio_device_delegate.h",
490 "objc/native/src/objc_audio_device_delegate.mm",
Yury Yarosheviche21a3cb2022-08-24 15:46:08491 ]
492
493 deps = [
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35494 ":audio_device_api_objc",
Yury Yaroshevich5027c1a2022-08-31 08:04:38495 "../api:array_view",
496 "../api:make_ref_counted",
497 "../api:refcountedbase",
498 "../api:scoped_refptr",
499 "../api:sequence_checker",
500 "../api/task_queue",
501 "../api/task_queue:default_task_queue_factory",
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35502 "../modules/audio_device:audio_device_api",
Yury Yaroshevich5027c1a2022-08-31 08:04:38503 "../modules/audio_device:audio_device_buffer",
504 "../rtc_base:buffer",
505 "../rtc_base:checks",
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35506 "../rtc_base:logging",
Yury Yaroshevich5027c1a2022-08-31 08:04:38507 "../rtc_base:safe_minmax",
508 "../rtc_base:threading",
509 "../rtc_base:timeutils",
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35510 ]
Mirko Bonadeia0e4ce02023-04-03 06:53:02511 if (is_mac) {
512 frameworks = [ "AudioUnit.framework" ]
513 }
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35514 }
515
516 rtc_library("objc_audio_device_module") {
517 visibility = [ "*" ]
Yury Yaroshevich5027c1a2022-08-31 08:04:38518 allow_poison = [ "default_task_queue" ]
Yury Yaroshevich1d0b0ae2022-08-29 10:22:35519 sources = [
520 "objc/native/api/objc_audio_device_module.h",
521 "objc/native/api/objc_audio_device_module.mm",
522 ]
523
524 deps = [
525 ":audio_device_api_objc",
526 ":audio_device_objc",
527 "../api:make_ref_counted",
Yury Yarosheviche21a3cb2022-08-24 15:46:08528 "../modules/audio_device:audio_device_api",
529 "../rtc_base:logging",
530 ]
Mirko Bonadeia0e4ce02023-04-03 06:53:02531 if (is_mac) {
532 frameworks = [ "AudioUnit.framework" ]
533 }
Yury Yarosheviche21a3cb2022-08-24 15:46:08534 }
535
Mirko Bonadei86d053c2019-10-17 19:32:04536 rtc_library("videosource_objc") {
zhihuanga4c113a2017-06-28 21:05:44537 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29538 "objc/api/peerconnection/RTCVideoSource+Private.h",
539 "objc/api/peerconnection/RTCVideoSource.h",
540 "objc/api/peerconnection/RTCVideoSource.mm",
zhihuanga4c113a2017-06-28 21:05:44541 ]
542
543 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29544 ":base_objc",
Anders Carlsson9823ee42018-03-07 09:32:03545 ":mediasource_objc",
546 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22547 ":videoframebuffer_objc",
zhihuanga4c113a2017-06-28 21:05:44548 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 12:30:41549 "../api:media_stream_interface",
Niels Möllerc6ce9c52018-05-11 09:15:30550 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38551 "../api/video:video_rtp_headers",
zhihuanga4c113a2017-06-28 21:05:44552 "../common_video",
553 "../media:rtc_media_base",
Harald Alvestrande5a73f52022-03-28 12:06:34554 "../pc:video_track_source_proxy",
Patrik Höglunda8005cf2017-12-13 15:05:42555 "../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01556 "../rtc_base:threading",
Mirko Bonadei401d0562017-12-14 10:24:00557 "//third_party/libyuv",
zhihuanga4c113a2017-06-28 21:05:44558 ]
559
Anders Carlsson358f2e02018-06-04 08:24:37560 configs += [
561 "..:common_objc",
562 ":used_from_extension",
563 ]
zhihuanga4c113a2017-06-28 21:05:44564 }
565
Mirko Bonadei86d053c2019-10-17 19:32:04566 rtc_library("videoframebuffer_objc") {
Mirko Bonadei2ad8c432018-08-09 08:54:40567 visibility = [ "*" ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22568 sources = [
Anders Carlsson4e5af962018-09-03 12:44:50569 "objc/api/video_frame_buffer/RTCNativeI420Buffer+Private.h",
570 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
571 "objc/api/video_frame_buffer/RTCNativeI420Buffer.mm",
572 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
573 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29574 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
575 "objc/components/video_frame_buffer/RTCCVPixelBuffer.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22576 ]
577 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29578 ":base_objc",
Florent Castelli0af55ba2022-04-04 13:06:30579 "../rtc_base:logging",
Niels Möllerc6ce9c52018-05-11 09:15:30580 "//api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38581 "//api/video:video_rtp_headers",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22582 "//common_video",
583 "//rtc_base:checks",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22584 "//third_party/libyuv",
585 ]
Anders Carlsson358f2e02018-06-04 08:24:37586 configs += [
587 "..:common_objc",
588 ":used_from_extension",
589 ]
Sylvain Defresnec7f0dff2020-07-03 08:19:30590 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 09:44:26591 "VideoToolbox.framework",
Oleh Prypinb3f78de2019-07-18 20:25:48592 "CoreGraphics.framework",
Kári Tristan Helgason8a1e35c2019-03-07 09:44:26593 "CoreVideo.framework",
594 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22595 }
596
Jake Brombergfb7fd242021-06-14 20:44:25597 rtc_library("metal_objc") {
598 visibility = [ "*" ]
599 allow_poison = [
600 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
601 "default_task_queue",
602 ]
603 sources = [
604 "objc/components/renderer/metal/RTCMTLI420Renderer.h",
605 "objc/components/renderer/metal/RTCMTLI420Renderer.mm",
606 "objc/components/renderer/metal/RTCMTLNV12Renderer.h",
607 "objc/components/renderer/metal/RTCMTLNV12Renderer.mm",
608 "objc/components/renderer/metal/RTCMTLRGBRenderer.h",
609 "objc/components/renderer/metal/RTCMTLRGBRenderer.mm",
610 "objc/components/renderer/metal/RTCMTLRenderer+Private.h",
611 "objc/components/renderer/metal/RTCMTLRenderer.h",
612 "objc/components/renderer/metal/RTCMTLRenderer.mm",
613 ]
614 frameworks = [
615 "CoreVideo.framework",
616 "Metal.framework",
617 "MetalKit.framework",
618 ]
619 if (is_ios) {
620 sources += [
621 "objc/components/renderer/metal/RTCMTLVideoView.h",
622 "objc/components/renderer/metal/RTCMTLVideoView.m",
Danil Chapovalov41300af2019-07-10 10:44:43623 ]
mbonadei2c8ac1b2017-05-31 12:14:26624 }
Jake Brombergfb7fd242021-06-14 20:44:25625 if (is_mac) {
626 sources += [
627 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
628 "objc/components/renderer/metal/RTCMTLNSVideoView.m",
629 ]
630 frameworks += [ "AppKit.framework" ]
631 }
632 deps = [
633 ":base_objc",
634 ":peerconnectionfactory_base_objc",
Jake Brombergfb7fd242021-06-14 20:44:25635 ":videoframebuffer_objc",
636 "../api/video:video_frame",
637 "../api/video:video_rtp_headers",
638 "../rtc_base:checks",
Jake Brombergfb7fd242021-06-14 20:44:25639 ]
640 configs += [ "..:common_objc" ]
641 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:26642 }
643
Anders Carlsson7bca8ca2018-08-30 07:30:29644 # TODO(bugs.webrtc.org/9627): Remove this target.
Mirko Bonadei86d053c2019-10-17 19:32:04645 rtc_library("videocapturebase_objc") {
Anders Carlsson73119182018-03-15 08:41:03646 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 13:41:10647 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson73119182018-03-15 08:41:03648
649 configs += [ "..:common_objc" ]
650
651 public_configs = [ ":common_config_objc" ]
652
653 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29654 ":base_objc",
Anders Carlsson73119182018-03-15 08:41:03655 ":videoframebuffer_objc",
656 ]
657 }
658
Mirko Bonadei86d053c2019-10-17 19:32:04659 rtc_library("videocapture_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53660 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 13:23:23661 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadei2c8ac1b2017-05-31 12:14:26662 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29663 "objc/components/capturer/RTCCameraVideoCapturer.h",
664 "objc/components/capturer/RTCCameraVideoCapturer.m",
Mirko Bonadei19640aa2020-10-19 14:12:43665 "objc/components/capturer/RTCFileVideoCapturer.h",
666 "objc/components/capturer/RTCFileVideoCapturer.m",
zhihuanga4c113a2017-06-28 21:05:44667 ]
Sylvain Defresnec7f0dff2020-07-03 08:19:30668 frameworks = [
Kári Tristan Helgason8a1e35c2019-03-07 09:44:26669 "AVFoundation.framework",
670 "CoreVideo.framework",
Mirko Bonadei19640aa2020-10-19 14:12:43671 "QuartzCore.framework",
Kári Tristan Helgason8a1e35c2019-03-07 09:44:26672 ]
zhihuanga4c113a2017-06-28 21:05:44673
zhihuanga4c113a2017-06-28 21:05:44674 configs += [ "..:common_objc" ]
675
kthelgason36d658d2017-08-24 12:43:45676 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 21:05:44677
zhihuanga4c113a2017-06-28 21:05:44678 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29679 ":base_objc",
680 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22681 ":videoframebuffer_objc",
Yura Yaroshevichebf739b2020-03-16 15:00:59682 "../rtc_base/system:gcd_helpers",
zhihuanga4c113a2017-06-28 21:05:44683 ]
zhihuanga4c113a2017-06-28 21:05:44684 }
685
Mirko Bonadei86d053c2019-10-17 19:32:04686 rtc_library("videocodec_objc") {
Karl Wibergbb23c832018-04-22 17:55:00687 visibility = [ "*" ]
Mirko Bonadei96ede16a2018-09-06 11:45:44688 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22689 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29690 "objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h",
691 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
692 "objc/components/video_codec/RTCCodecSpecificInfoH264.mm",
693 "objc/components/video_codec/RTCH264ProfileLevelId.h",
694 "objc/components/video_codec/RTCH264ProfileLevelId.mm",
zhihuanga4c113a2017-06-28 21:05:44695 ]
Yura Yaroshevich0f77fea2018-04-26 12:41:01696 if (is_ios) {
697 sources += [
Artem Titov63ee39d2022-05-13 14:46:42698 "objc/components/video_codec/UIDevice+H264Profile.h",
699 "objc/components/video_codec/UIDevice+H264Profile.mm",
Yura Yaroshevich0f77fea2018-04-26 12:41:01700 ]
701 }
Mirko Bonadeifc52b912019-03-01 09:32:56702
Kári Tristan Helgason99bf77c2018-02-16 09:49:22703 public_configs = [ ":common_config_objc" ]
704 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29705 ":base_objc",
706 ":helpers_objc",
kthelgasonfb143122017-07-25 14:55:58707 "../api/video_codecs:video_codecs_api",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22708 "../common_video",
Harald Alvestrand794d5992022-12-16 09:54:57709 "../media:media_constants",
zhihuanga4c113a2017-06-28 21:05:44710 "../media:rtc_media_base",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22711 "../modules/video_coding:video_codec_interface",
Anders Carlsson7bca8ca2018-08-30 07:30:29712 "../rtc_base:checks",
zhihuanga4c113a2017-06-28 21:05:44713 ]
714 }
715
Mirko Bonadei86d053c2019-10-17 19:32:04716 rtc_library("default_codec_factory_objc") {
Anders Carlssondd8c1652018-01-30 09:32:13717 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29718 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
719 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.m",
720 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
721 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.m",
Anders Carlssondd8c1652018-01-30 09:32:13722 ]
723
724 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29725 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22726 ":native_video",
727 ":videocodec_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:29728 ":videotoolbox_objc",
Magnus Jedvert8b4e92d2018-04-13 13:36:43729 ":vp8",
730 ":vp9",
Anders Carlsson7bca8ca2018-08-30 07:30:29731 ":vpx_codec_constants",
732 ]
Philip Eliasson91c05ab2022-06-22 12:24:59733
734 defines = []
735 if (enable_libaom) {
736 defines += [ "RTC_USE_LIBAOM_AV1_ENCODER" ]
737 deps += [ ":libaom_av1_encoder" ]
738 }
philipeld44badf2022-07-04 08:44:14739
740 if (rtc_include_dav1d_in_internal_decoder_factory) {
741 deps += [ ":dav1d_decoder" ]
742 }
Anders Carlsson7bca8ca2018-08-30 07:30:29743 }
744
Mirko Bonadei86d053c2019-10-17 19:32:04745 rtc_library("vpx_codec_constants") {
Mirko Bonadei96ede16a2018-09-06 11:45:44746 configs += [ "..:no_global_constructors" ]
Anders Carlsson7bca8ca2018-08-30 07:30:29747 sources = [
748 "objc/api/video_codec/RTCVideoCodecConstants.h",
749 "objc/api/video_codec/RTCVideoCodecConstants.mm",
750 ]
751
752 deps = [
753 ":base_objc",
Harald Alvestrand794d5992022-12-16 09:54:57754 "../media:media_constants",
Anders Carlsson7bca8ca2018-08-30 07:30:29755 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 09:32:13756 ]
Anders Carlssondd8c1652018-01-30 09:32:13757 }
758
Mirko Bonadei86d053c2019-10-17 19:32:04759 rtc_library("vp8") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22760 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 02:31:53761 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 09:32:13762 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29763 "objc/api/video_codec/RTCVideoDecoderVP8.h",
764 "objc/api/video_codec/RTCVideoDecoderVP8.mm",
765 "objc/api/video_codec/RTCVideoEncoderVP8.h",
766 "objc/api/video_codec/RTCVideoEncoderVP8.mm",
Anders Carlssondd8c1652018-01-30 09:32:13767 ]
768
Anders Carlssondd8c1652018-01-30 09:32:13769 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29770 ":base_objc",
Anders Carlsson9823ee42018-03-07 09:32:03771 ":wrapped_native_codec_objc",
Anders Carlssondd8c1652018-01-30 09:32:13772 "../modules/video_coding:webrtc_vp8",
Anders Carlssondd8c1652018-01-30 09:32:13773 ]
774 }
775
Mirko Bonadei86d053c2019-10-17 19:32:04776 rtc_library("vp9") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22777 visibility = [ "*" ]
Karl Wiberg7ba22b82018-04-27 02:31:53778 allow_poison = [ "software_video_codecs" ]
Anders Carlssondd8c1652018-01-30 09:32:13779 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29780 "objc/api/video_codec/RTCVideoDecoderVP9.h",
781 "objc/api/video_codec/RTCVideoDecoderVP9.mm",
782 "objc/api/video_codec/RTCVideoEncoderVP9.h",
783 "objc/api/video_codec/RTCVideoEncoderVP9.mm",
Anders Carlssondd8c1652018-01-30 09:32:13784 ]
785
Anders Carlssondd8c1652018-01-30 09:32:13786 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29787 ":base_objc",
Anders Carlsson9823ee42018-03-07 09:32:03788 ":wrapped_native_codec_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:29789 "../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 09:32:13790 "../modules/video_coding:webrtc_vp9",
Anders Carlssondd8c1652018-01-30 09:32:13791 ]
792 }
793
philipeld44badf2022-07-04 08:44:14794 rtc_library("dav1d_decoder") {
Yura Yaroshevich8cfb2872021-03-03 09:29:42795 visibility = [ "*" ]
796 allow_poison = [ "software_video_codecs" ]
797 sources = [
798 "objc/api/video_codec/RTCVideoDecoderAV1.h",
799 "objc/api/video_codec/RTCVideoDecoderAV1.mm",
Yura Yaroshevich8cfb2872021-03-03 09:29:42800 ]
801
802 deps = [
803 ":base_objc",
804 ":wrapped_native_codec_objc",
805 "../media:rtc_media_base",
philipeld44badf2022-07-04 08:44:14806 "../modules/video_coding/codecs/av1:dav1d_decoder",
Yura Yaroshevich8cfb2872021-03-03 09:29:42807 ]
Philip Eliasson91c05ab2022-06-22 12:24:59808 }
philipel4eab9f42022-05-31 15:24:44809
Philip Eliasson91c05ab2022-06-22 12:24:59810 rtc_library("libaom_av1_encoder") {
811 visibility = [ "*" ]
812 allow_poison = [ "software_video_codecs" ]
813 sources = [
814 "objc/api/video_codec/RTCVideoEncoderAV1.h",
815 "objc/api/video_codec/RTCVideoEncoderAV1.mm",
816 ]
817
818 deps = [
819 ":base_objc",
820 ":wrapped_native_codec_objc",
821 "../media:rtc_media_base",
822 "../modules/video_coding/codecs/av1:libaom_av1_encoder",
823 ]
Yura Yaroshevich8cfb2872021-03-03 09:29:42824 }
825
Mirko Bonadei86d053c2019-10-17 19:32:04826 rtc_library("mediaconstraints_objc") {
Mirko Bonadei96ede16a2018-09-06 11:45:44827 configs += [ "..:no_global_constructors" ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22828 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29829 "objc/api/peerconnection/RTCMediaConstraints+Private.h",
830 "objc/api/peerconnection/RTCMediaConstraints.h",
831 "objc/api/peerconnection/RTCMediaConstraints.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22832 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22833
834 public_configs = [ ":common_config_objc" ]
835 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29836 ":base_objc",
837 ":helpers_objc",
Niels Möllerdac03d92019-02-13 07:52:27838 ":media_constraints",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22839 ]
840 }
841
Anders Carlsson7bca8ca2018-08-30 07:30:29842 # TODO(bugs.webrtc.org/9627): Remove, targets should depend on base_objc.
Mirko Bonadei86d053c2019-10-17 19:32:04843 rtc_library("videorenderer_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:29844 visibility = [ "*" ]
Danil Chapovalov64f1f3f2020-01-16 13:41:10845 sources = [ "objc/helpers/noop.mm" ]
Anders Carlsson9823ee42018-03-07 09:32:03846
847 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 09:32:03848 public_configs = [ ":common_config_objc" ]
Anders Carlsson7bca8ca2018-08-30 07:30:29849
Danil Chapovalov64f1f3f2020-01-16 13:41:10850 deps = [ ":base_objc" ]
Anders Carlsson9823ee42018-03-07 09:32:03851 }
852
Mirko Bonadei86d053c2019-10-17 19:32:04853 rtc_library("videorendereradapter_objc") {
Karl Wibergbb23c832018-04-22 17:55:00854 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 13:23:23855 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson9823ee42018-03-07 09:32:03856 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29857 "objc/api/RTCVideoRendererAdapter+Private.h",
858 "objc/api/RTCVideoRendererAdapter.h",
859 "objc/api/RTCVideoRendererAdapter.mm",
Anders Carlsson9823ee42018-03-07 09:32:03860 ]
861
862 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 09:32:03863 public_configs = [ ":common_config_objc" ]
864
865 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29866 ":base_objc",
Anders Carlsson9823ee42018-03-07 09:32:03867 ":native_api",
868 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03869 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 12:30:41870 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 09:32:03871 ]
872 }
873
Mirko Bonadei86d053c2019-10-17 19:32:04874 rtc_library("mediasource_objc") {
Anders Carlsson9823ee42018-03-07 09:32:03875 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29876 "objc/api/peerconnection/RTCMediaSource+Private.h",
877 "objc/api/peerconnection/RTCMediaSource.h",
878 "objc/api/peerconnection/RTCMediaSource.mm",
Anders Carlsson9823ee42018-03-07 09:32:03879 ]
880
Anders Carlsson358f2e02018-06-04 08:24:37881 configs += [
882 "..:common_objc",
883 ":used_from_extension",
884 ]
Anders Carlsson9823ee42018-03-07 09:32:03885 public_configs = [ ":common_config_objc" ]
886
887 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:29888 ":base_objc",
Niels Möllere942b142019-09-17 12:30:41889 "../api:media_stream_interface",
Anders Carlsson9823ee42018-03-07 09:32:03890 "../rtc_base:checks",
891 ]
892 }
893
Mirko Bonadei86d053c2019-10-17 19:32:04894 rtc_library("base_native_additions_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:29895 sources = [
896 "objc/api/peerconnection/RTCEncodedImage+Private.h",
897 "objc/api/peerconnection/RTCEncodedImage+Private.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29898 "objc/api/peerconnection/RTCVideoCodecInfo+Private.h",
899 "objc/api/peerconnection/RTCVideoCodecInfo+Private.mm",
900 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.h",
901 "objc/api/peerconnection/RTCVideoEncoderSettings+Private.mm",
902 ]
903
904 configs += [ "..:common_objc" ]
905
906 public_configs = [ ":common_config_objc" ]
907
908 deps = [
909 ":base_objc",
910 ":helpers_objc",
Niels Möller4dc66c52018-10-05 12:17:58911 "../api/video:encoded_image",
Anders Carlsson7bca8ca2018-08-30 07:30:29912 "../api/video_codecs:video_codecs_api",
Anders Carlsson7bca8ca2018-08-30 07:30:29913 "../modules/video_coding:video_codec_interface",
Florent Castellif86f6f92022-04-05 00:54:12914 "../rtc_base:refcount",
Florent Castellie10a9f62022-04-04 15:04:37915 "../rtc_base:safe_conversions",
Anders Carlsson7bca8ca2018-08-30 07:30:29916 ]
Anders Carlsson7bca8ca2018-08-30 07:30:29917 }
918
Mirko Bonadei86d053c2019-10-17 19:32:04919 rtc_library("peerconnectionfactory_base_objc") {
Karl Wibergbb23c832018-04-22 17:55:00920 visibility = [ "*" ]
Danil Chapovalov41300af2019-07-10 10:44:43921 allow_poison = [
922 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
923 "default_task_queue",
924 ]
Byoungchan Lee524a4222021-11-19 10:03:49925 configs += [ "..:no_global_constructors" ]
zhihuanga4c113a2017-06-28 21:05:44926 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:29927 "objc/api/peerconnection/RTCAudioSource+Private.h",
928 "objc/api/peerconnection/RTCAudioSource.h",
929 "objc/api/peerconnection/RTCAudioSource.mm",
930 "objc/api/peerconnection/RTCAudioTrack+Private.h",
931 "objc/api/peerconnection/RTCAudioTrack.h",
932 "objc/api/peerconnection/RTCAudioTrack.mm",
933 "objc/api/peerconnection/RTCCertificate.h",
934 "objc/api/peerconnection/RTCCertificate.mm",
935 "objc/api/peerconnection/RTCConfiguration+Native.h",
936 "objc/api/peerconnection/RTCConfiguration+Private.h",
937 "objc/api/peerconnection/RTCConfiguration.h",
938 "objc/api/peerconnection/RTCConfiguration.mm",
Benjamin Wright8c27cca2018-10-25 17:16:44939 "objc/api/peerconnection/RTCCryptoOptions.h",
940 "objc/api/peerconnection/RTCCryptoOptions.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29941 "objc/api/peerconnection/RTCDataChannel+Private.h",
942 "objc/api/peerconnection/RTCDataChannel.h",
943 "objc/api/peerconnection/RTCDataChannel.mm",
944 "objc/api/peerconnection/RTCDataChannelConfiguration+Private.h",
945 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
946 "objc/api/peerconnection/RTCDataChannelConfiguration.mm",
947 "objc/api/peerconnection/RTCDtmfSender+Private.h",
948 "objc/api/peerconnection/RTCDtmfSender.h",
949 "objc/api/peerconnection/RTCDtmfSender.mm",
950 "objc/api/peerconnection/RTCFieldTrials.h",
951 "objc/api/peerconnection/RTCFieldTrials.mm",
952 "objc/api/peerconnection/RTCIceCandidate+Private.h",
953 "objc/api/peerconnection/RTCIceCandidate.h",
954 "objc/api/peerconnection/RTCIceCandidate.mm",
Jaehyun Kod2110982021-11-30 10:01:43955 "objc/api/peerconnection/RTCIceCandidateErrorEvent+Private.h",
956 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
957 "objc/api/peerconnection/RTCIceCandidateErrorEvent.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29958 "objc/api/peerconnection/RTCIceServer+Private.h",
959 "objc/api/peerconnection/RTCIceServer.h",
960 "objc/api/peerconnection/RTCIceServer.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29961 "objc/api/peerconnection/RTCLegacyStatsReport+Private.h",
962 "objc/api/peerconnection/RTCLegacyStatsReport.h",
963 "objc/api/peerconnection/RTCLegacyStatsReport.mm",
964 "objc/api/peerconnection/RTCMediaStream+Private.h",
965 "objc/api/peerconnection/RTCMediaStream.h",
966 "objc/api/peerconnection/RTCMediaStream.mm",
967 "objc/api/peerconnection/RTCMediaStreamTrack+Private.h",
968 "objc/api/peerconnection/RTCMediaStreamTrack.h",
969 "objc/api/peerconnection/RTCMediaStreamTrack.mm",
970 "objc/api/peerconnection/RTCMetrics.h",
971 "objc/api/peerconnection/RTCMetrics.mm",
972 "objc/api/peerconnection/RTCMetricsSampleInfo+Private.h",
973 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
974 "objc/api/peerconnection/RTCMetricsSampleInfo.mm",
975 "objc/api/peerconnection/RTCPeerConnection+DataChannel.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:29976 "objc/api/peerconnection/RTCPeerConnection+Private.h",
977 "objc/api/peerconnection/RTCPeerConnection+Stats.mm",
978 "objc/api/peerconnection/RTCPeerConnection.h",
979 "objc/api/peerconnection/RTCPeerConnection.mm",
980 "objc/api/peerconnection/RTCPeerConnectionFactory+Native.h",
981 "objc/api/peerconnection/RTCPeerConnectionFactory+Private.h",
982 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
983 "objc/api/peerconnection/RTCPeerConnectionFactory.mm",
984 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.h",
985 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder+DefaultComponents.mm",
986 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.h",
987 "objc/api/peerconnection/RTCPeerConnectionFactoryBuilder.mm",
988 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions+Private.h",
989 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
990 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.mm",
991 "objc/api/peerconnection/RTCRtcpParameters+Private.h",
992 "objc/api/peerconnection/RTCRtcpParameters.h",
993 "objc/api/peerconnection/RTCRtcpParameters.mm",
994 "objc/api/peerconnection/RTCRtpCodecParameters+Private.h",
995 "objc/api/peerconnection/RTCRtpCodecParameters.h",
996 "objc/api/peerconnection/RTCRtpCodecParameters.mm",
997 "objc/api/peerconnection/RTCRtpEncodingParameters+Private.h",
998 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
999 "objc/api/peerconnection/RTCRtpEncodingParameters.mm",
1000 "objc/api/peerconnection/RTCRtpHeaderExtension+Private.h",
1001 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1002 "objc/api/peerconnection/RTCRtpHeaderExtension.mm",
1003 "objc/api/peerconnection/RTCRtpParameters+Private.h",
1004 "objc/api/peerconnection/RTCRtpParameters.h",
1005 "objc/api/peerconnection/RTCRtpParameters.mm",
Benjamin Wrightddf1a3e2018-10-02 17:20:581006 "objc/api/peerconnection/RTCRtpReceiver+Native.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291007 "objc/api/peerconnection/RTCRtpReceiver+Private.h",
1008 "objc/api/peerconnection/RTCRtpReceiver.h",
1009 "objc/api/peerconnection/RTCRtpReceiver.mm",
Benjamin Wrightddf1a3e2018-10-02 17:20:581010 "objc/api/peerconnection/RTCRtpSender+Native.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291011 "objc/api/peerconnection/RTCRtpSender+Private.h",
1012 "objc/api/peerconnection/RTCRtpSender.h",
1013 "objc/api/peerconnection/RTCRtpSender.mm",
1014 "objc/api/peerconnection/RTCRtpTransceiver+Private.h",
1015 "objc/api/peerconnection/RTCRtpTransceiver.h",
1016 "objc/api/peerconnection/RTCRtpTransceiver.mm",
1017 "objc/api/peerconnection/RTCSSLAdapter.h",
1018 "objc/api/peerconnection/RTCSSLAdapter.mm",
1019 "objc/api/peerconnection/RTCSessionDescription+Private.h",
1020 "objc/api/peerconnection/RTCSessionDescription.h",
1021 "objc/api/peerconnection/RTCSessionDescription.mm",
Peter Hanspersbed86042019-02-21 16:27:091022 "objc/api/peerconnection/RTCStatisticsReport+Private.h",
1023 "objc/api/peerconnection/RTCStatisticsReport.h",
1024 "objc/api/peerconnection/RTCStatisticsReport.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291025 "objc/api/peerconnection/RTCTracing.h",
1026 "objc/api/peerconnection/RTCTracing.mm",
1027 "objc/api/peerconnection/RTCVideoTrack+Private.h",
1028 "objc/api/peerconnection/RTCVideoTrack.h",
1029 "objc/api/peerconnection/RTCVideoTrack.mm",
kthelgason5fe4d492016-12-05 19:27:301030 ]
kthelgasonebc34e72016-09-15 11:30:181031
Anders Carlsson358f2e02018-06-04 08:24:371032 configs += [
1033 "..:common_objc",
1034 ":used_from_extension",
1035 ]
kthelgason36d658d2017-08-24 12:43:451036 public_configs = [ ":common_config_objc" ]
kthelgasonc0977102017-04-24 07:57:161037
mbonadei2c8ac1b2017-05-31 12:14:261038 deps = [
Yury Yaroshevich1d0b0ae2022-08-29 10:22:351039 ":audio_device_api_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291040 ":base_native_additions_objc",
1041 ":base_objc",
1042 ":file_logger_objc",
1043 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221044 ":mediaconstraints_objc",
Anders Carlsson9823ee42018-03-07 09:32:031045 ":mediasource_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:051046 ":native_api",
1047 ":native_video",
Yury Yaroshevich1d0b0ae2022-08-29 10:22:351048 ":objc_audio_device_module",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221049 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:031050 ":videorendereradapter_objc",
1051 ":videosource_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291052 ":videotoolbox_objc",
Florent Castelliacabb362022-10-18 15:05:161053 "../api:dtmf_sender_interface",
Mirko Bonadeie51f7852017-12-06 10:23:191054 "../api:libjingle_peerconnection_api",
Niels Möllere942b142019-09-17 12:30:411055 "../api:media_stream_interface",
Niels Möller695cf6a2019-05-13 10:27:231056 "../api:rtc_event_log_output_file",
Peter Hanspersbed86042019-02-21 16:27:091057 "../api:rtc_stats_api",
Niels Möller6dcd4dc2019-08-26 08:45:281058 "../api:rtp_parameters",
Florent Castelliacabb362022-10-18 15:05:161059 "../api:rtp_sender_interface",
Mirko Bonadeid9708072019-01-25 19:26:481060 "../api:scoped_refptr",
Jiawei Ouae810c12018-06-20 23:18:591061 "../api/audio_codecs:audio_codecs_api",
Karl Wiberg5817d3d2018-04-06 08:06:421062 "../api/audio_codecs:builtin_audio_decoder_factory",
Jiawei Ouae810c12018-06-20 23:18:591063 "../api/audio_codecs:builtin_audio_encoder_factory",
Mirko Bonadeieaaaf412019-09-13 12:42:151064 "../api/crypto:frame_decryptor_interface",
1065 "../api/crypto:frame_encryptor_interface",
Danil Chapovalov4ba04b72019-06-26 13:49:471066 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalovaaa11432019-05-17 11:20:141067 "../api/task_queue:default_task_queue_factory",
Erik Språngceb44952020-09-22 09:36:351068 "../api/transport:field_trial_based_config",
Niels Möllerc6ce9c52018-05-11 09:15:301069 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:381070 "../api/video:video_rtp_headers",
Anders Carlsson7e042812017-10-05 14:55:381071 "../api/video_codecs:video_codecs_api",
Anders Carlssone5960ce2017-06-22 13:26:301072 "../common_video",
Harald Alvestrand794d5992022-12-16 09:54:571073 "../media:media_constants",
Mirko Bonadei2fdf2222022-06-24 08:00:491074 "../media:rtc_audio_video",
mbonadei2c8ac1b2017-05-31 12:14:261075 "../media:rtc_media_base",
Jiawei Ouae810c12018-06-20 23:18:591076 "../modules/audio_device:audio_device_api",
Artem Titov94b57c02019-03-21 12:35:101077 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:541078 "../modules/audio_processing:api",
Patrik Höglund99175c62018-01-08 10:05:101079 "../modules/video_coding:video_codec_interface",
Harald Alvestrandc1e8aeb2022-03-31 19:53:501080 "../pc:peer_connection_factory",
1081 "../pc:webrtc_sdp",
Patrik Höglunda8005cf2017-12-13 15:05:421082 "../rtc_base:checks",
Florent Castellia30aef32022-04-19 15:47:131083 "../rtc_base:event_tracer",
Florent Castelli0af55ba2022-04-04 13:06:301084 "../rtc_base:logging",
Mirko Bonadeie5f4c6b2021-01-15 09:41:011085 "../rtc_base:network_constants",
Florent Castellia138c6c2023-01-04 11:01:091086 "../rtc_base:rtc_certificate_generator",
Florent Castellie10a9f62022-04-04 15:04:371087 "../rtc_base:safe_conversions",
Florent Castellia138c6c2023-01-04 11:01:091088 "../rtc_base:ssl",
Ali Tofigh969c13562022-05-13 08:26:581089 "../rtc_base:stringutils",
Byoungchan Lee2b46a582022-06-21 00:19:341090 "../rtc_base:threading",
Florent Castellidd837e22022-04-04 15:16:151091 "../rtc_base:timeutils",
Harald Alvestrandc1e8aeb2022-03-31 19:53:501092 "../stats:rtc_stats",
Mirko Bonadei17f48782018-09-28 06:51:101093 "../system_wrappers:field_trial",
1094 "../system_wrappers:metrics",
mbonadei2c8ac1b2017-05-31 12:14:261095 ]
Peter Hanspers8d95e3b2018-05-15 08:22:361096
1097 if (is_ios) {
1098 deps += [ ":native_api_audio_device_module" ]
1099 }
kthelgasonebc34e72016-09-15 11:30:181100 }
Zeke Chindd0e1e02016-10-11 20:27:261101
mbonadei2c8ac1b2017-05-31 12:14:261102 if (rtc_include_tests) {
Daniela012b56b2017-11-15 12:15:241103 if (is_ios) {
Mirko Bonadei86d053c2019-10-17 19:32:041104 rtc_library("sdk_unittests_sources") {
Danielaae012cf2017-10-12 11:46:001105 testonly = true
Anders Carlsson7bca8ca2018-08-30 07:30:291106 include_dirs = [ "objc/" ]
Daniela012b56b2017-11-15 12:15:241107
Danielaae012cf2017-10-12 11:46:001108 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291109 "objc/unittests/ObjCVideoTrackSource_xctest.mm",
Byoungchan Lee2e631f52023-02-10 07:08:361110 "objc/unittests/RTCAudioDeviceModule_xctest.mm",
1111 "objc/unittests/RTCAudioDevice_xctest.mm",
Byoungchan Leec8a6fb22022-05-13 10:59:491112 "objc/unittests/RTCAudioSessionTest.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291113 "objc/unittests/RTCCVPixelBuffer_xctest.mm",
1114 "objc/unittests/RTCCallbackLogger_xctest.m",
Byoungchan Leec8a6fb22022-05-13 10:59:491115 "objc/unittests/RTCCameraVideoCapturerTests.mm",
1116 "objc/unittests/RTCCertificateTest.mm",
1117 "objc/unittests/RTCConfigurationTest.mm",
1118 "objc/unittests/RTCDataChannelConfigurationTest.mm",
Kári Tristan Helgasonecbdbf62020-02-20 15:34:451119 "objc/unittests/RTCEncodedImage_xctest.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291120 "objc/unittests/RTCFileVideoCapturer_xctest.mm",
1121 "objc/unittests/RTCH264ProfileLevelId_xctest.m",
Byoungchan Leec8a6fb22022-05-13 10:59:491122 "objc/unittests/RTCIceCandidateTest.mm",
1123 "objc/unittests/RTCIceServerTest.mm",
Jake Brombergfb7fd242021-06-14 20:44:251124 "objc/unittests/RTCMTLVideoView_xctest.m",
Byoungchan Leec8a6fb22022-05-13 10:59:491125 "objc/unittests/RTCMediaConstraintsTest.mm",
Aaron Goldenfb4e9bc2019-01-04 20:03:311126 "objc/unittests/RTCNV12TextureCache_xctest.m",
Byoungchan Leec8a6fb22022-05-13 10:59:491127 "objc/unittests/RTCPeerConnectionFactoryBuilderTest.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291128 "objc/unittests/RTCPeerConnectionFactory_xctest.m",
Byoungchan Leec8a6fb22022-05-13 10:59:491129 "objc/unittests/RTCPeerConnectionTest.mm",
1130 "objc/unittests/RTCSessionDescriptionTest.mm",
1131 "objc/unittests/RTCTracingTest.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291132 "objc/unittests/frame_buffer_helpers.h",
1133 "objc/unittests/frame_buffer_helpers.mm",
Artem Titarenko42b43152018-10-29 17:18:091134 "objc/unittests/nalu_rewriter_xctest.mm",
Byoungchan Leec8a6fb22022-05-13 10:59:491135 "objc/unittests/objc_video_decoder_factory_tests.mm",
1136 "objc/unittests/objc_video_encoder_factory_tests.mm",
1137 "objc/unittests/scoped_cftyperef_tests.mm",
Danielaae012cf2017-10-12 11:46:001138 ]
Daniela012b56b2017-11-15 12:15:241139
Mirko Bonadei6b09c452021-07-05 14:47:491140 # TODO(bugs.webrtc.org/12937): Remove OpenGL deprecation warning
1141 # workaround.
1142 defines = [ "GLES_SILENCE_DEPRECATION" ]
1143
Danielaae012cf2017-10-12 11:46:001144 deps = [
Peter Hanspers8d95e3b2018-05-15 08:22:361145 ":audio_device",
Joe Chen0b3a6e32019-12-27 07:01:421146 ":audio_session_objc",
Kári Tristan Helgasonecbdbf62020-02-20 15:34:451147 ":base_native_additions_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291148 ":base_objc",
1149 ":callback_logger_objc",
Anders Carlssondc6b4772018-01-15 12:31:031150 ":framework_objc",
Byoungchan Leec8a6fb22022-05-13 10:59:491151 ":helpers_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291152 ":mediaconstraints_objc",
Jake Brombergfb7fd242021-06-14 20:44:251153 ":metal_objc",
Anders Carlssonfe9d8172018-04-03 09:40:391154 ":native_api",
Peter Hanspers8d95e3b2018-05-15 08:22:361155 ":native_api_audio_device_module",
Anders Carlssonfe9d8172018-04-03 09:40:391156 ":native_video",
Anders Carlsson7bca8ca2018-08-30 07:30:291157 ":peerconnectionfactory_base_objc",
Artem Titarenko42b43152018-10-29 17:18:091158 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221159 ":videocapture_objc",
Anders Carlsson79ce8202018-06-01 10:51:091160 ":videocodec_objc",
Anders Carlssonfe9d8172018-04-03 09:40:391161 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:031162 ":videosource_objc",
Danielaae012cf2017-10-12 11:46:001163 ":videotoolbox_objc",
Mirko Bonadeid9708072019-01-25 19:26:481164 "../api:scoped_refptr",
Byoungchan Leec8a6fb22022-05-13 10:59:491165 "../api/audio_codecs:builtin_audio_decoder_factory",
1166 "../api/audio_codecs:builtin_audio_encoder_factory",
Byoungchan Lee43bd7602019-10-08 14:58:411167 "../api/task_queue:default_task_queue_factory",
Ilya Nikolaevskiy38e9b062020-10-08 14:36:331168 "../api/video:video_frame",
Byoungchan Leec8a6fb22022-05-13 10:59:491169 "../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 12:35:101170 "../common_video",
Harald Alvestrand794d5992022-12-16 09:54:571171 "../media:codec",
Danielaae012cf2017-10-12 11:46:001172 "../media:rtc_media_base",
Anders Carlssonfe9d8172018-04-03 09:40:391173 "../media:rtc_media_tests_utils",
Byoungchan Leec8a6fb22022-05-13 10:59:491174 "../modules/audio_device:audio_device_api",
1175 "../modules/audio_processing:api",
1176 "../modules/video_coding:video_codec_interface",
Mirko Bonadeie3abb812018-11-23 12:15:081177 "../rtc_base:gunit_helpers",
Florent Castelli4467ad72022-04-04 13:18:461178 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 00:54:121179 "../rtc_base:refcount",
Byoungchan Leec8a6fb22022-05-13 10:59:491180 "../rtc_base:rtc_event",
Byoungchan Lee83ceb902021-11-16 02:31:571181 "../rtc_base/system:unused",
Artem Titov94b57c02019-03-21 12:35:101182 "../system_wrappers",
Anders Carlssonfe9d8172018-04-03 09:40:391183 "//third_party/libyuv",
Danielaae012cf2017-10-12 11:46:001184 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:221185
Kári Tristan Helgasonba50cb32023-06-28 12:32:041186 if (rtc_ios_use_opengl_rendering) {
Jordan Rose53d3fc92021-07-06 19:16:411187 deps += [ ":opengl_objc" ]
1188 }
1189
Danielaae012cf2017-10-12 11:46:001190 public_deps = [
1191 "//build/config/ios:xctest",
1192 "//third_party/ocmock",
1193 ]
1194 }
1195
Daniela012b56b2017-11-15 12:15:241196 bundle_data("sdk_unittests_bundle_data") {
Daniela012b56b2017-11-15 12:15:241197 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291198 "objc/unittests/audio_short16.pcm",
1199 "objc/unittests/audio_short44.pcm",
1200 "objc/unittests/audio_short48.pcm",
Peter Hanspers8d95e3b2018-05-15 08:22:361201
1202 # Sample video taken from https://media.xiph.org/video/derf/
Anders Carlsson7bca8ca2018-08-30 07:30:291203 "objc/unittests/foreman.mp4",
Daniela012b56b2017-11-15 12:15:241204 ]
Danil Chapovalov64f1f3f2020-01-16 13:41:101205 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
Daniela012b56b2017-11-15 12:15:241206 }
1207
Anders Carlsson7bca8ca2018-08-30 07:30:291208 # These tests use static linking.
Mirko Bonadeiaef8a212020-09-16 13:09:531209 rtc_test("sdk_unittests") {
1210 is_xctest = true
Danielaae012cf2017-10-12 11:46:001211 info_plist = "//test/ios/Info.plist"
Danil Chapovalov64f1f3f2020-01-16 13:41:101212 sources = [ "objc/unittests/main.mm" ]
Daniela012b56b2017-11-15 12:15:241213
Artem Titarenkoa2bc3622019-08-19 12:24:001214 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Danielaae012cf2017-10-12 11:46:001215 deps = [
Yura Yaroshevich5297bd22018-06-19 09:51:511216 ":peerconnectionfactory_base_objc",
Daniela012b56b2017-11-15 12:15:241217 ":sdk_unittests_bundle_data",
Danielaae012cf2017-10-12 11:46:001218 ":sdk_unittests_sources",
Mirko Bonadeie5f4c6b2021-01-15 09:41:011219 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 11:29:291220 "//test:test_support",
Danielaae012cf2017-10-12 11:46:001221 ]
1222 ldflags = [ "-all_load" ]
1223 }
Anders Carlsson7bca8ca2018-08-30 07:30:291224
1225 # These tests link to the framework.
Mirko Bonadeiaef8a212020-09-16 13:09:531226 rtc_test("sdk_framework_unittests") {
1227 is_xctest = true
Anders Carlsson7bca8ca2018-08-30 07:30:291228 info_plist = "//test/ios/Info.plist"
1229 sources = [
1230 "objc/unittests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m",
Artem Titarenko34fc3462018-11-06 11:29:291231 "objc/unittests/main.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291232 ]
1233
Artem Titarenkoa2bc3622019-08-19 12:24:001234 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=generic-unit-test" ]
Anders Carlsson7bca8ca2018-08-30 07:30:291235 deps = [
1236 ":framework_objc+link",
1237 ":ios_framework_bundle",
Mirko Bonadeie5f4c6b2021-01-15 09:41:011238 "../rtc_base:threading",
Artem Titarenko34fc3462018-11-06 11:29:291239 "//test:test_support",
Anders Carlsson7bca8ca2018-08-30 07:30:291240 ]
1241 }
Danielaae012cf2017-10-12 11:46:001242 }
kthelgason2f088792017-05-30 08:48:471243 }
1244
mbonadei2c8ac1b2017-05-31 12:14:261245 if (is_ios) {
Byoungchan Lee26b23b82022-04-08 09:23:141246 apple_framework_bundle_with_umbrella_header("framework_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:291247 info_plist = "objc/Info.plist"
mbonadei2c8ac1b2017-05-31 12:14:261248 output_name = "WebRTC"
Magnus Jedvertf83dc8b2017-08-29 09:49:431249
mbonadei2c8ac1b2017-05-31 12:14:261250 common_objc_headers = [
Anders Carlsson7bca8ca2018-08-30 07:30:291251 "objc/base/RTCCodecSpecificInfo.h",
1252 "objc/base/RTCEncodedImage.h",
Anders Carlsson4e5af962018-09-03 12:44:501253 "objc/base/RTCI420Buffer.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291254 "objc/base/RTCLogging.h",
1255 "objc/base/RTCMacros.h",
Anders Carlsson4e5af962018-09-03 12:44:501256 "objc/base/RTCMutableI420Buffer.h",
1257 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 08:22:081258 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291259 "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 12:44:501270 "objc/base/RTCYUVPlanarBuffer.h",
Yury Yaroshevich1d0b0ae2022-08-29 10:22:351271 "objc/components/audio/RTCAudioDevice.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291272 "objc/components/audio/RTCAudioSession.h",
1273 "objc/components/audio/RTCAudioSessionConfiguration.h",
1274 "objc/components/capturer/RTCCameraVideoCapturer.h",
1275 "objc/components/capturer/RTCFileVideoCapturer.h",
Taylor Brandstetterea7fbfb2020-08-19 23:41:541276 "objc/components/network/RTCNetworkMonitor.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291277 "objc/components/renderer/metal/RTCMTLVideoView.h",
1278 "objc/components/renderer/opengl/RTCEAGLVideoView.h",
1279 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1280 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1281 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1282 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1283 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1284 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1285 "objc/components/video_codec/RTCVideoDecoderH264.h",
1286 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1287 "objc/components/video_codec/RTCVideoEncoderH264.h",
1288 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1289 "objc/helpers/RTCCameraPreviewView.h",
1290 "objc/helpers/RTCDispatcher.h",
1291 "objc/helpers/UIDevice+RTCDevice.h",
1292 "objc/api/peerconnection/RTCAudioSource.h",
1293 "objc/api/peerconnection/RTCAudioTrack.h",
1294 "objc/api/peerconnection/RTCConfiguration.h",
1295 "objc/api/peerconnection/RTCDataChannel.h",
1296 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1297 "objc/api/peerconnection/RTCFieldTrials.h",
1298 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 10:01:431299 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291300 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291301 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1302 "objc/api/peerconnection/RTCMediaConstraints.h",
1303 "objc/api/peerconnection/RTCMediaSource.h",
1304 "objc/api/peerconnection/RTCMediaStream.h",
1305 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1306 "objc/api/peerconnection/RTCMetrics.h",
1307 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1308 "objc/api/peerconnection/RTCPeerConnection.h",
1309 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1310 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1311 "objc/api/peerconnection/RTCRtcpParameters.h",
1312 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1313 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1314 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1315 "objc/api/peerconnection/RTCRtpParameters.h",
1316 "objc/api/peerconnection/RTCRtpReceiver.h",
1317 "objc/api/peerconnection/RTCRtpSender.h",
1318 "objc/api/peerconnection/RTCRtpTransceiver.h",
1319 "objc/api/peerconnection/RTCDtmfSender.h",
1320 "objc/api/peerconnection/RTCSSLAdapter.h",
1321 "objc/api/peerconnection/RTCSessionDescription.h",
CZ Theng682dabd2019-10-21 03:25:181322 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291323 "objc/api/peerconnection/RTCTracing.h",
1324 "objc/api/peerconnection/RTCCertificate.h",
Benjamin Wright8c27cca2018-10-25 17:16:441325 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291326 "objc/api/peerconnection/RTCVideoSource.h",
1327 "objc/api/peerconnection/RTCVideoTrack.h",
Anders Carlsson4e5af962018-09-03 12:44:501328 "objc/api/video_codec/RTCVideoCodecConstants.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291329 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1330 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 09:29:421331 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291332 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1333 "objc/api/video_codec/RTCVideoEncoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 09:29:421334 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson4e5af962018-09-03 12:44:501335 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1336 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
mbonadei2c8ac1b2017-05-31 12:14:261337 ]
Magnus Jedvert8b4e92d2018-04-13 13:36:431338
mbonadei2c8ac1b2017-05-31 12:14:261339 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 09:49:221340 common_objc_headers += [
Anders Carlsson7bca8ca2018-08-30 07:30:291341 "objc/api/logging/RTCCallbackLogger.h",
1342 "objc/api/peerconnection/RTCFileLogger.h",
Anders Carlsson3b3364e2018-01-30 14:46:131343 ]
mbonadei2c8ac1b2017-05-31 12:14:261344 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:261345
Kári Tristan Helgason99bf77c2018-02-16 09:49:221346 sources = common_objc_headers
1347 public_headers = common_objc_headers
1348
mbonadei2c8ac1b2017-05-31 12:14:261349 ldflags = [
1350 "-all_load",
1351 "-install_name",
1352 "@rpath/$output_name.framework/$output_name",
1353 ]
Kári Tristan Helgasoncbe74352016-11-09 09:43:261354
mbonadei2c8ac1b2017-05-31 12:14:261355 deps = [
kthelgason36d658d2017-08-24 12:43:451356 ":audio_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291357 ":base_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221358 ":default_codec_factory_objc",
Mirko Bonadei91d39752022-01-19 07:43:171359 ":metal_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221360 ":native_api",
1361 ":native_video",
1362 ":peerconnectionfactory_base_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221363 ":videocapture_objc",
1364 ":videocodec_objc",
1365 ":videotoolbox_objc",
mbonadei2c8ac1b2017-05-31 12:14:261366 ]
Anders Carlsson7bca8ca2018-08-30 07:30:291367 if (!build_with_chromium) {
1368 deps += [
1369 ":callback_logger_objc",
1370 ":file_logger_objc",
1371 ]
1372 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:261373
Sylvain Defresnec7f0dff2020-07-03 08:19:301374 frameworks = [
mbonadei2c8ac1b2017-05-31 12:14:261375 "AVFoundation.framework",
1376 "CoreGraphics.framework",
1377 "CoreMedia.framework",
Florent Castellia6b99242023-01-16 10:53:261378 "Foundation.framework",
1379 "UIKit.framework",
mbonadei2c8ac1b2017-05-31 12:14:261380 ]
1381
Byoungchan Lee26b23b82022-04-08 09:23:141382 configs = [
Anders Carlsson358f2e02018-06-04 08:24:371383 "..:common_objc",
1384 ":used_from_extension",
1385 ]
mbonadei2c8ac1b2017-05-31 12:14:261386
kthelgason36d658d2017-08-24 12:43:451387 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:261388 }
Anders Carlsson7bca8ca2018-08-30 07:30:291389
1390 bundle_data("ios_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 13:41:101391 deps = [ "../sdk:framework_objc" ]
1392 sources = [ "$root_build_dir/WebRTC.framework" ]
1393 outputs = [ "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 07:30:291394 }
1395 }
1396
1397 if (is_mac) {
Byoungchan Lee26b23b82022-04-08 09:23:141398 apple_framework_bundle_with_umbrella_header("mac_framework_objc") {
Anders Carlsson7bca8ca2018-08-30 07:30:291399 info_plist = "objc/Info.plist"
1400 output_name = "WebRTC"
Anders Carlsson7bca8ca2018-08-30 07:30:291401
Anders Carlsson37bbf792018-09-05 14:29:271402 sources = [
1403 "objc/api/peerconnection/RTCAudioSource.h",
1404 "objc/api/peerconnection/RTCAudioTrack.h",
1405 "objc/api/peerconnection/RTCCertificate.h",
1406 "objc/api/peerconnection/RTCConfiguration.h",
Benjamin Wright8c27cca2018-10-25 17:16:441407 "objc/api/peerconnection/RTCCryptoOptions.h",
Anders Carlsson37bbf792018-09-05 14:29:271408 "objc/api/peerconnection/RTCDataChannel.h",
1409 "objc/api/peerconnection/RTCDataChannelConfiguration.h",
1410 "objc/api/peerconnection/RTCDtmfSender.h",
1411 "objc/api/peerconnection/RTCFieldTrials.h",
1412 "objc/api/peerconnection/RTCIceCandidate.h",
Jaehyun Kod2110982021-11-30 10:01:431413 "objc/api/peerconnection/RTCIceCandidateErrorEvent.h",
Anders Carlsson37bbf792018-09-05 14:29:271414 "objc/api/peerconnection/RTCIceServer.h",
Anders Carlsson37bbf792018-09-05 14:29:271415 "objc/api/peerconnection/RTCLegacyStatsReport.h",
1416 "objc/api/peerconnection/RTCMediaConstraints.h",
1417 "objc/api/peerconnection/RTCMediaSource.h",
1418 "objc/api/peerconnection/RTCMediaStream.h",
1419 "objc/api/peerconnection/RTCMediaStreamTrack.h",
1420 "objc/api/peerconnection/RTCMetrics.h",
1421 "objc/api/peerconnection/RTCMetricsSampleInfo.h",
1422 "objc/api/peerconnection/RTCPeerConnection.h",
1423 "objc/api/peerconnection/RTCPeerConnectionFactory.h",
1424 "objc/api/peerconnection/RTCPeerConnectionFactoryOptions.h",
1425 "objc/api/peerconnection/RTCRtcpParameters.h",
1426 "objc/api/peerconnection/RTCRtpCodecParameters.h",
1427 "objc/api/peerconnection/RTCRtpEncodingParameters.h",
1428 "objc/api/peerconnection/RTCRtpHeaderExtension.h",
1429 "objc/api/peerconnection/RTCRtpParameters.h",
1430 "objc/api/peerconnection/RTCRtpReceiver.h",
1431 "objc/api/peerconnection/RTCRtpSender.h",
1432 "objc/api/peerconnection/RTCRtpTransceiver.h",
1433 "objc/api/peerconnection/RTCSSLAdapter.h",
1434 "objc/api/peerconnection/RTCSessionDescription.h",
Saúl Ibarra Corretgéf7aa2672021-07-28 21:09:141435 "objc/api/peerconnection/RTCStatisticsReport.h",
Anders Carlsson37bbf792018-09-05 14:29:271436 "objc/api/peerconnection/RTCTracing.h",
1437 "objc/api/peerconnection/RTCVideoSource.h",
1438 "objc/api/peerconnection/RTCVideoTrack.h",
Yura Yaroshevich8cfb2872021-03-03 09:29:421439 "objc/api/video_codec/RTCVideoDecoderAV1.h",
Anders Carlsson37bbf792018-09-05 14:29:271440 "objc/api/video_codec/RTCVideoDecoderVP8.h",
1441 "objc/api/video_codec/RTCVideoDecoderVP9.h",
Yura Yaroshevich8cfb2872021-03-03 09:29:421442 "objc/api/video_codec/RTCVideoEncoderAV1.h",
Anders Carlsson37bbf792018-09-05 14:29:271443 "objc/api/video_codec/RTCVideoEncoderVP8.h",
1444 "objc/api/video_codec/RTCVideoEncoderVP9.h",
1445 "objc/api/video_frame_buffer/RTCNativeI420Buffer.h",
1446 "objc/api/video_frame_buffer/RTCNativeMutableI420Buffer.h",
1447 "objc/base/RTCCodecSpecificInfo.h",
1448 "objc/base/RTCEncodedImage.h",
1449 "objc/base/RTCI420Buffer.h",
1450 "objc/base/RTCLogging.h",
1451 "objc/base/RTCMacros.h",
1452 "objc/base/RTCMutableI420Buffer.h",
1453 "objc/base/RTCMutableYUVPlanarBuffer.h",
Yury Yaroshevich19a6e942022-03-11 08:22:081454 "objc/base/RTCSSLCertificateVerifier.h",
Anders Carlsson37bbf792018-09-05 14:29:271455 "objc/base/RTCVideoCapturer.h",
1456 "objc/base/RTCVideoCodecInfo.h",
1457 "objc/base/RTCVideoDecoder.h",
1458 "objc/base/RTCVideoDecoderFactory.h",
1459 "objc/base/RTCVideoEncoder.h",
1460 "objc/base/RTCVideoEncoderFactory.h",
1461 "objc/base/RTCVideoEncoderQpThresholds.h",
1462 "objc/base/RTCVideoEncoderSettings.h",
1463 "objc/base/RTCVideoFrame.h",
1464 "objc/base/RTCVideoFrameBuffer.h",
1465 "objc/base/RTCVideoRenderer.h",
1466 "objc/base/RTCYUVPlanarBuffer.h",
1467 "objc/components/capturer/RTCCameraVideoCapturer.h",
1468 "objc/components/capturer/RTCFileVideoCapturer.h",
1469 "objc/components/renderer/metal/RTCMTLNSVideoView.h",
Anders Carlsson37bbf792018-09-05 14:29:271470 "objc/components/renderer/opengl/RTCVideoViewShading.h",
1471 "objc/components/video_codec/RTCCodecSpecificInfoH264.h",
1472 "objc/components/video_codec/RTCDefaultVideoDecoderFactory.h",
1473 "objc/components/video_codec/RTCDefaultVideoEncoderFactory.h",
1474 "objc/components/video_codec/RTCH264ProfileLevelId.h",
1475 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1476 "objc/components/video_codec/RTCVideoDecoderH264.h",
1477 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1478 "objc/components/video_codec/RTCVideoEncoderH264.h",
1479 "objc/components/video_frame_buffer/RTCCVPixelBuffer.h",
1480 "objc/helpers/RTCDispatcher.h",
Anders Carlsson7bca8ca2018-08-30 07:30:291481 ]
Anders Carlsson37bbf792018-09-05 14:29:271482 if (!build_with_chromium) {
1483 sources += [
1484 "objc/api/logging/RTCCallbackLogger.h",
1485 "objc/api/peerconnection/RTCFileLogger.h",
1486 ]
1487 }
Anders Carlsson7bca8ca2018-08-30 07:30:291488
1489 deps = [
1490 ":base_objc",
1491 ":default_codec_factory_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291492 ":native_api",
1493 ":native_video",
1494 ":peerconnectionfactory_base_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291495 ":videocapture_objc",
1496 ":videocodec_objc",
1497 ":videotoolbox_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291498 ]
Anders Carlsson7bca8ca2018-08-30 07:30:291499 if (!build_with_chromium) {
1500 deps += [
1501 ":callback_logger_objc",
1502 ":file_logger_objc",
1503 ]
1504 }
1505
Sylvain Defresnec7f0dff2020-07-03 08:19:301506 frameworks = [
Anders Carlsson7bca8ca2018-08-30 07:30:291507 "AVFoundation.framework",
1508 "CoreGraphics.framework",
1509 "CoreMedia.framework",
1510 "OpenGL.framework",
1511 ]
1512
Anders Carlsson37bbf792018-09-05 14:29:271513 configs = [ "..:common_objc" ]
Anders Carlsson7bca8ca2018-08-30 07:30:291514
1515 public_configs = [ ":common_config_objc" ]
1516 }
1517
1518 bundle_data("mac_framework_bundle") {
Danil Chapovalov64f1f3f2020-01-16 13:41:101519 deps = [ "../sdk:mac_framework_objc" ]
1520 sources = [ "$root_build_dir/WebRTC.framework" ]
1521 outputs = [ "{{bundle_contents_dir}}/Frameworks/{{source_file_part}}" ]
Anders Carlsson7bca8ca2018-08-30 07:30:291522 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:261523 }
1524
Mirko Bonadei86d053c2019-10-17 19:32:041525 rtc_library("wrapped_native_codec_objc") {
Anders Carlsson9823ee42018-03-07 09:32:031526 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291527 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.h",
1528 "objc/api/video_codec/RTCWrappedNativeVideoDecoder.mm",
1529 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.h",
1530 "objc/api/video_codec/RTCWrappedNativeVideoEncoder.mm",
Anders Carlsson9823ee42018-03-07 09:32:031531 ]
1532
1533 configs += [ "..:common_objc" ]
1534 public_configs = [ ":common_config_objc" ]
1535
Anders Carlsson9823ee42018-03-07 09:32:031536 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:291537 ":base_objc",
1538 ":helpers_objc",
Anders Carlsson9823ee42018-03-07 09:32:031539 "../api/video_codecs:video_codecs_api",
Harald Alvestrand794d5992022-12-16 09:54:571540 "../media:codec",
Anders Carlsson9823ee42018-03-07 09:32:031541 "../media:rtc_media_base",
1542 ]
1543 }
1544
Anders Carlsson3ff50fb2018-02-01 14:47:051545 # The native API is currently experimental and may change without notice.
Mirko Bonadei86d053c2019-10-17 19:32:041546 rtc_library("native_api") {
Anders Carlsson3ff50fb2018-02-01 14:47:051547 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 13:23:231548 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Anders Carlsson3ff50fb2018-02-01 14:47:051549 sources = [
Taylor Brandstetterea7fbfb2020-08-19 23:41:541550 "objc/native/api/network_monitor_factory.h",
1551 "objc/native/api/network_monitor_factory.mm",
Yury Yaroshevich19a6e942022-03-11 08:22:081552 "objc/native/api/ssl_certificate_verifier.h",
1553 "objc/native/api/ssl_certificate_verifier.mm",
Anders Carlsson7bca8ca2018-08-30 07:30:291554 "objc/native/api/video_capturer.h",
1555 "objc/native/api/video_capturer.mm",
1556 "objc/native/api/video_decoder_factory.h",
1557 "objc/native/api/video_decoder_factory.mm",
1558 "objc/native/api/video_encoder_factory.h",
1559 "objc/native/api/video_encoder_factory.mm",
1560 "objc/native/api/video_frame.h",
1561 "objc/native/api/video_frame.mm",
1562 "objc/native/api/video_frame_buffer.h",
1563 "objc/native/api/video_frame_buffer.mm",
1564 "objc/native/api/video_renderer.h",
1565 "objc/native/api/video_renderer.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051566 ]
1567
1568 configs += [ "..:common_objc" ]
1569
1570 public_configs = [ ":common_config_objc" ]
1571
Anders Carlsson3ff50fb2018-02-01 14:47:051572 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:291573 ":base_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:051574 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221575 ":videoframebuffer_objc",
Anders Carlsson73119182018-03-15 08:41:031576 "../api:libjingle_peerconnection_api",
Niels Möller105711e2022-06-14 13:48:261577 "../api:make_ref_counted",
Niels Möllere942b142019-09-17 12:30:411578 "../api:media_stream_interface",
Mirko Bonadeid9708072019-01-25 19:26:481579 "../api:scoped_refptr",
Niels Möllerc6ce9c52018-05-11 09:15:301580 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:381581 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 14:47:051582 "../api/video_codecs:video_codecs_api",
1583 "../common_video",
Taylor Brandstetter9658f472023-04-07 21:24:581584 "../pc:video_track_source_proxy",
Florent Castelli3a9e6872022-04-26 20:54:591585 "../rtc_base:buffer",
Florent Castelli0af55ba2022-04-04 13:06:301586 "../rtc_base:logging",
Florent Castellia138c6c2023-01-04 11:01:091587 "../rtc_base:ssl",
Mirko Bonadeie5f4c6b2021-01-15 09:41:011588 "../rtc_base:threading",
Anders Carlsson3ff50fb2018-02-01 14:47:051589 ]
Taylor Brandstetterea7fbfb2020-08-19 23:41:541590 if (is_ios) {
1591 deps += [ ":native_network_monitor" ]
1592 }
Mirko Bonadei2dcf3482020-06-05 12:30:411593 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
Anders Carlsson3ff50fb2018-02-01 14:47:051594 }
1595
Taylor Brandstetterea7fbfb2020-08-19 23:41:541596 if (is_ios) {
1597 rtc_library("native_network_monitor") {
1598 visibility = [ "*" ]
1599
1600 sources = [
1601 "objc/native/src/objc_network_monitor.h",
1602 "objc/native/src/objc_network_monitor.mm",
1603 ]
1604
1605 deps = [
1606 ":network_monitor_objc",
1607 ":network_monitor_observer",
Jonas Orelande62c2f22022-03-29 09:04:481608 "../api:field_trials_view",
Artem Titovd15a5752021-02-10 13:31:241609 "../api:sequence_checker",
Artem Titovc374d112022-06-16 19:27:451610 "../api/task_queue:pending_task_safety_flag",
Florent Castelli0af55ba2022-04-04 13:06:301611 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 13:18:461612 "../rtc_base:macromagic",
Florent Castelli57aa81b2022-04-04 15:14:021613 "../rtc_base:stringutils",
Mirko Bonadeie5f4c6b2021-01-15 09:41:011614 "../rtc_base:threading",
Taylor Brandstetterea7fbfb2020-08-19 23:41:541615 ]
Ali Tofigh7fa90572022-03-17 14:47:491616
1617 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Taylor Brandstetterea7fbfb2020-08-19 23:41:541618 }
1619 }
1620
Mirko Bonadei86d053c2019-10-17 19:32:041621 rtc_library("native_video") {
Anders Carlsson3ff50fb2018-02-01 14:47:051622 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291623 "objc/native/src/objc_frame_buffer.h",
1624 "objc/native/src/objc_frame_buffer.mm",
1625 "objc/native/src/objc_video_decoder_factory.h",
1626 "objc/native/src/objc_video_decoder_factory.mm",
1627 "objc/native/src/objc_video_encoder_factory.h",
1628 "objc/native/src/objc_video_encoder_factory.mm",
1629 "objc/native/src/objc_video_frame.h",
1630 "objc/native/src/objc_video_frame.mm",
1631 "objc/native/src/objc_video_renderer.h",
1632 "objc/native/src/objc_video_renderer.mm",
1633 "objc/native/src/objc_video_track_source.h",
1634 "objc/native/src/objc_video_track_source.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051635 ]
1636
1637 configs += [ "..:common_objc" ]
1638
1639 public_configs = [ ":common_config_objc" ]
1640
Anders Carlsson3ff50fb2018-02-01 14:47:051641 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:291642 ":base_native_additions_objc",
1643 ":base_objc",
1644 ":helpers_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221645 ":videocodec_objc",
1646 ":videoframebuffer_objc",
Anders Carlsson7bca8ca2018-08-30 07:30:291647 ":vpx_codec_constants",
Anders Carlsson9823ee42018-03-07 09:32:031648 ":wrapped_native_codec_objc",
Niels Möller105711e2022-06-14 13:48:261649 "../api:make_ref_counted",
Niels Möllerc6ce9c52018-05-11 09:15:301650 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:381651 "../api/video:video_rtp_headers",
Anders Carlsson3ff50fb2018-02-01 14:47:051652 "../api/video_codecs:video_codecs_api",
1653 "../common_video",
Harald Alvestrand794d5992022-12-16 09:54:571654 "../media:codec",
Anders Carlsson3ff50fb2018-02-01 14:47:051655 "../media:rtc_audio_video",
1656 "../media:rtc_media_base",
Anders Carlsson3ff50fb2018-02-01 14:47:051657 "../modules/video_coding:video_codec_interface",
1658 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:301659 "../rtc_base:logging",
Florent Castellib1dc4e42022-04-14 11:20:121660 "../rtc_base:timestamp_aligner",
Florent Castellidd837e22022-04-04 15:16:151661 "../rtc_base:timeutils",
Anders Carlsson3ff50fb2018-02-01 14:47:051662 ]
1663 }
1664
Mirko Bonadei86d053c2019-10-17 19:32:041665 rtc_library("video_toolbox_cc") {
Artem Titarenko42b43152018-10-29 17:18:091666 visibility = [
Mirko Bonadei08574ae2020-09-16 07:22:571667 ":sdk_unittests_sources",
Mirko Bonadeiaef8a212020-09-16 13:09:531668 ":videotoolbox_objc",
Artem Titarenko42b43152018-10-29 17:18:091669 ]
mbonadei2c8ac1b2017-05-31 12:14:261670 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291671 "objc/components/video_codec/helpers.cc",
1672 "objc/components/video_codec/helpers.h",
1673 "objc/components/video_codec/nalu_rewriter.cc",
1674 "objc/components/video_codec/nalu_rewriter.h",
mbonadeic0af5ac2017-08-24 19:26:051675 ]
1676 deps = [
1677 "../common_video",
mbonadeic0af5ac2017-08-24 19:26:051678 "../modules/video_coding:webrtc_h264",
Florent Castelli3a9e6872022-04-26 20:54:591679 "../rtc_base:buffer",
Patrik Höglunda8005cf2017-12-13 15:05:421680 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:301681 "../rtc_base:logging",
mbonadeic0af5ac2017-08-24 19:26:051682 ]
mbonadeic0af5ac2017-08-24 19:26:051683 }
1684
Mirko Bonadei86d053c2019-10-17 19:32:041685 rtc_library("videotoolbox_objc") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:221686 visibility = [ "*" ]
Anders Carlsson45340ca2019-01-14 13:23:231687 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
mbonadeic0af5ac2017-08-24 19:26:051688 sources = [
Anders Carlsson7bca8ca2018-08-30 07:30:291689 "objc/components/video_codec/RTCVideoDecoderFactoryH264.h",
1690 "objc/components/video_codec/RTCVideoDecoderFactoryH264.m",
1691 "objc/components/video_codec/RTCVideoDecoderH264.h",
1692 "objc/components/video_codec/RTCVideoDecoderH264.mm",
1693 "objc/components/video_codec/RTCVideoEncoderFactoryH264.h",
1694 "objc/components/video_codec/RTCVideoEncoderFactoryH264.m",
1695 "objc/components/video_codec/RTCVideoEncoderH264.h",
1696 "objc/components/video_codec/RTCVideoEncoderH264.mm",
mbonadei2c8ac1b2017-05-31 12:14:261697 ]
1698
Anders Carlsson358f2e02018-06-04 08:24:371699 configs += [
1700 "..:common_objc",
1701 ":used_from_extension",
1702 ]
1703
1704 if (is_ios && rtc_apprtcmobile_broadcast_extension) {
1705 defines = [ "RTC_APPRTCMOBILE_BROADCAST_EXTENSION" ]
1706 }
mbonadei2c8ac1b2017-05-31 12:14:261707
1708 deps = [
Anders Carlsson7bca8ca2018-08-30 07:30:291709 ":base_native_additions_objc",
1710 ":base_objc",
1711 ":helpers_objc",
mbonadeic0af5ac2017-08-24 19:26:051712 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221713 ":videocodec_objc",
1714 ":videoframebuffer_objc",
Johannes Kronc3fcee72021-04-19 07:09:261715 "../api/video_codecs:video_codecs_api",
mbonadei2c8ac1b2017-05-31 12:14:261716 "../common_video",
Patrik Höglund99175c62018-01-08 10:05:101717 "../modules/video_coding:video_codec_interface",
Florent Castelli3a9e6872022-04-26 20:54:591718 "../rtc_base:buffer",
Patrik Höglunda8005cf2017-12-13 15:05:421719 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:301720 "../rtc_base:logging",
Florent Castellidd837e22022-04-04 15:16:151721 "../rtc_base:timeutils",
Mirko Bonadei401d0562017-12-14 10:24:001722 "//third_party/libyuv",
mbonadei2c8ac1b2017-05-31 12:14:261723 ]
1724
Sylvain Defresnec7f0dff2020-07-03 08:19:301725 frameworks = [
mbonadei2c8ac1b2017-05-31 12:14:261726 "CoreFoundation.framework",
1727 "CoreMedia.framework",
1728 "CoreVideo.framework",
1729 "VideoToolbox.framework",
1730 ]
Kári Tristan Helgasoncbe74352016-11-09 09:43:261731 }
1732 }
tkchin9eeb6242016-04-27 08:54:201733}