blob: bc7fa36fa28a117e9b806318366b80526ee0c201 [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
mbonadei9aa3f0a2017-01-24 14:58:229import("../webrtc.gni")
kthelgasonebc34e72016-09-15 11:30:1810if (is_ios) {
11 import("//build/config/ios/rules.gni")
oprypin45197522017-06-22 08:47:2012 import("//build/config/ios/ios_sdk.gni")
kthelgasonebc34e72016-09-15 11:30:1813}
tkchin9eeb6242016-04-27 08:54:2014
kthelgason2f088792017-05-30 08:48:4715declare_args() {
16 # Determine whether or not to include metal rendering
17 rtc_use_metal_rendering = is_mac || (is_ios && current_cpu == "arm64")
18}
19
kjellander6ceab082016-10-28 12:44:0320group("sdk") {
Henrik Kjellandera7d0df72017-06-27 06:56:4621 public_deps = []
22 if (!build_with_chromium) {
23 if (is_android) {
24 public_deps += [ "android" ]
25 }
26 if (is_ios) {
kthelgason36d658d2017-08-24 12:43:4527 public_deps += [ ":framework_objc" ]
Henrik Kjellandera7d0df72017-06-27 06:56:4628 }
kjellander6ceab082016-10-28 12:44:0329 }
30}
31
kthelgasoncc2d1c62016-11-09 15:44:2732if (is_ios || is_mac) {
kthelgason36d658d2017-08-24 12:43:4533 config("common_config_objc") {
kjellander080a1e32016-05-25 18:37:1134 include_dirs = [
35 "objc/Framework/Classes",
kthelgason2f088792017-05-30 08:48:4736 "objc/Framework/Classes/Audio",
37 "objc/Framework/Classes/Common",
38 "objc/Framework/Classes/Metal",
39 "objc/Framework/Classes/PeerConnection",
40 "objc/Framework/Classes/UI",
41 "objc/Framework/Classes/Video",
42 "objc/Framework/Classes/VideoToolbox",
kjellander080a1e32016-05-25 18:37:1143 "objc/Framework/Headers",
44 ]
Kári Tristan Helgason47d3a012017-10-24 13:28:5145 cflags = [
46 "-Wstrict-overflow",
47 "-Wmissing-field-initializers",
48 ]
kjellander080a1e32016-05-25 18:37:1149 }
50
kthelgason36d658d2017-08-24 12:43:4551 rtc_static_library("common_objc") {
tkchin9eeb6242016-04-27 08:54:2052 sources = [
kthelgason2f088792017-05-30 08:48:4753 "objc/Framework/Classes/Common/NSString+StdString.h",
54 "objc/Framework/Classes/Common/NSString+StdString.mm",
55 "objc/Framework/Classes/Common/RTCDispatcher+Private.h",
56 "objc/Framework/Classes/Common/RTCDispatcher.m",
57 "objc/Framework/Classes/Common/RTCFieldTrials.mm",
58 "objc/Framework/Classes/Common/RTCLogging.mm",
Anders Carlssonfc309752017-06-12 12:16:2059 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.h",
60 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.m",
kthelgason2f088792017-05-30 08:48:4761 "objc/Framework/Classes/Common/helpers.h",
62 "objc/Framework/Classes/Common/helpers.mm",
Kári Tristan Helgasona17ddcd2017-09-28 17:28:5263 "objc/Framework/Classes/Common/scoped_cftyperef.h",
tkchin9eeb6242016-04-27 08:54:2064 "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
65 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h",
66 "objc/Framework/Headers/WebRTC/RTCLogging.h",
67 "objc/Framework/Headers/WebRTC/RTCMacros.h",
tkchin9eeb6242016-04-27 08:54:2068 ]
denicijad2088152017-04-28 09:14:5469
mbonadei1e060c62017-04-21 07:02:0270 deps = [
Patrik Höglunda8005cf2017-12-13 15:05:4271 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:4772 "../rtc_base:rtc_base",
mbonadei1e060c62017-04-21 07:02:0273 ]
kthelgasonc0977102017-04-24 07:57:1674 configs += [ "..:common_objc" ]
75
kthelgason36d658d2017-08-24 12:43:4576 public_configs = [ ":common_config_objc" ]
denicijad2088152017-04-28 09:14:5477
kjellander3bcedd32016-06-08 08:14:1578 if (is_ios) {
79 sources += [
kthelgason2f088792017-05-30 08:48:4780 "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm",
tkchind7629102016-07-28 21:52:5581 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
kjellander3bcedd32016-06-08 08:14:1582 ]
denicijad2088152017-04-28 09:14:5483 }
84
kthelgason2f088792017-05-30 08:48:4785 if (!build_with_chromium) {
denicijad2088152017-04-28 09:14:5486 sources += [
Anders Carlsson3b3364e2018-01-30 14:46:1387 "objc/Framework/Classes/Common/RTCCallbackLogger.mm",
kthelgason2f088792017-05-30 08:48:4788 "objc/Framework/Classes/Common/RTCFileLogger.mm",
Anders Carlsson3b3364e2018-01-30 14:46:1389 "objc/Framework/Headers/WebRTC/RTCCallbackLogger.h",
kthelgason2f088792017-05-30 08:48:4790 "objc/Framework/Headers/WebRTC/RTCFileLogger.h",
91 ]
92 }
93 }
94
mbonadei2c8ac1b2017-05-31 12:14:2695 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 09:49:2296 if (is_ios) {
97 rtc_static_library("audio_objc") {
98 sources = [
99 "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm",
100 "objc/Framework/Classes/Audio/RTCAudioSession+Private.h",
101 "objc/Framework/Classes/Audio/RTCAudioSession.mm",
102 "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m",
103 "objc/Framework/Headers/WebRTC/RTCAudioSession.h",
104 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
105 ]
106 configs += [ "..:common_objc" ]
denicija59ee91b2017-06-05 12:48:47107
Kári Tristan Helgason99bf77c2018-02-16 09:49:22108 public_configs = [ ":common_config_objc" ]
Anders Carlsson8ecfd802017-09-15 12:07:30109
Kári Tristan Helgason99bf77c2018-02-16 09:49:22110 deps = [
111 ":common_objc",
112 "../rtc_base:checks",
113 "../rtc_base:rtc_base_approved",
114 ]
denicija59ee91b2017-06-05 12:48:47115
Kári Tristan Helgason99bf77c2018-02-16 09:49:22116 if (is_clang) {
117 # Suppress warnings from the Chromium Clang plugin
118 # (bugs.webrtc.org/163).
119 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
120 }
denicija59ee91b2017-06-05 12:48:47121 }
122 }
zhihuanga4c113a2017-06-28 21:05:44123
Anders Carlsson9823ee42018-03-07 09:32:03124 rtc_static_library("videosource_objc") {
zhihuanga4c113a2017-06-28 21:05:44125 sources = [
Anders Carlsson9823ee42018-03-07 09:32:03126 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h",
127 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm",
128 "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
zhihuanga4c113a2017-06-28 21:05:44129 ]
130
131 deps = [
kthelgason36d658d2017-08-24 12:43:45132 ":common_objc",
Anders Carlsson9823ee42018-03-07 09:32:03133 ":mediasource_objc",
134 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22135 ":videoframebuffer_objc",
zhihuanga4c113a2017-06-28 21:05:44136 "../api:libjingle_peerconnection_api",
137 "../api:video_frame_api",
Patrik Höglundb874a352017-11-27 13:32:41138 "../api:video_frame_api_i420",
zhihuanga4c113a2017-06-28 21:05:44139 "../common_video",
140 "../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 15:05:42141 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47142 "../rtc_base:rtc_base",
Mirko Bonadei401d0562017-12-14 10:24:00143 "//third_party/libyuv",
zhihuanga4c113a2017-06-28 21:05:44144 ]
145
146 configs += [ "..:common_objc" ]
147 if (!build_with_chromium && is_clang) {
148 # Suppress warnings from the Chromium Clang plugin
149 # (bugs.webrtc.org/163).
150 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
151 }
152 }
153
Kári Tristan Helgason99bf77c2018-02-16 09:49:22154 rtc_static_library("videoframebuffer_objc") {
155 sources = [
Kári Tristan Helgason99bf77c2018-02-16 09:49:22156 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm",
157 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm",
158 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h",
159 "objc/Framework/Classes/Video/RTCI420Buffer.mm",
160 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
161 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22162 ]
163 deps = [
164 ":common_objc",
165 "//api:video_frame_api",
166 "//api:video_frame_api_i420",
167 "//common_video",
168 "//rtc_base:checks",
169 "//rtc_base:rtc_base_approved",
170 "//third_party/libyuv",
171 ]
172 configs += [ "..:common_objc" ]
173 }
174
kthelgason36d658d2017-08-24 12:43:45175 rtc_static_library("video_objc") {
kthelgason2f088792017-05-30 08:48:47176 sources = [
jtteh3b673c62017-07-25 22:48:39177 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h",
178 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm",
mbonadei2c8ac1b2017-05-31 12:14:26179 "objc/Framework/Classes/Video/RTCDefaultShader.h",
180 "objc/Framework/Classes/Video/RTCDefaultShader.mm",
181 "objc/Framework/Classes/Video/RTCI420TextureCache.h",
182 "objc/Framework/Classes/Video/RTCI420TextureCache.mm",
183 "objc/Framework/Classes/Video/RTCOpenGLDefines.h",
184 "objc/Framework/Classes/Video/RTCShader.h",
185 "objc/Framework/Classes/Video/RTCShader.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22186 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h",
kthelgason2f088792017-05-30 08:48:47187 ]
mbonadei2c8ac1b2017-05-31 12:14:26188 libs = []
denicijad2088152017-04-28 09:14:54189 if (is_ios) {
denicija070d5e32017-02-26 19:44:13190 sources += [
mbonadei2c8ac1b2017-05-31 12:14:26191 "objc/Framework/Classes/Video/RTCNV12TextureCache.h",
192 "objc/Framework/Classes/Video/RTCNV12TextureCache.m",
193 ]
194 libs += [
195 "GLKit.framework",
196 "OpenGLES.framework",
197 "QuartzCore.framework",
198 ]
199 } else if (is_mac) {
mbonadei2c8ac1b2017-05-31 12:14:26200 libs += [
201 "CoreMedia.framework",
202 "CoreVideo.framework",
203 "OpenGL.framework",
denicija070d5e32017-02-26 19:44:13204 ]
205 }
mbonadei2c8ac1b2017-05-31 12:14:26206
kthelgason2f088792017-05-30 08:48:47207 deps = [
kthelgason36d658d2017-08-24 12:43:45208 ":common_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22209 ":mediaconstraints_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:05210 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22211 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03212 ":videosource_objc",
mbonadei2c8ac1b2017-05-31 12:14:26213 "../api:libjingle_peerconnection_api",
kwiberg84f6a3f2017-09-05 15:43:13214 "../api:optional",
Mirko Bonadei0594a7c2017-12-18 10:42:48215 "../api:video_frame_api",
mbonadei2c8ac1b2017-05-31 12:14:26216 "../common_video",
217 "../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 15:05:42218 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47219 "../rtc_base:rtc_base",
tkchin9eeb6242016-04-27 08:54:20220 ]
mbonadei2c8ac1b2017-05-31 12:14:26221
kthelgason2f088792017-05-30 08:48:47222 configs += [ "..:common_objc" ]
ehmaldonadoda8dcfb2017-01-04 15:11:23223 if (!build_with_chromium && is_clang) {
zhihuanga4c113a2017-06-28 21:05:44224 # Suppress warnings from the Chromium Clang plugin
225 # (bugs.webrtc.org/163).
ehmaldonadoda8dcfb2017-01-04 15:11:23226 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
227 }
228 }
ehmaldonadoda8dcfb2017-01-04 15:11:23229
kthelgason36d658d2017-08-24 12:43:45230 rtc_static_library("ui_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53231 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05232 allow_poison = [
233 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
234 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
235 ]
mbonadei2c8ac1b2017-05-31 12:14:26236 if (is_ios) {
237 sources = [
238 "objc/Framework/Classes/UI/RTCCameraPreviewView.m",
239 "objc/Framework/Classes/UI/RTCEAGLVideoView.m",
240 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
241 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
242 ]
243 }
244 if (is_mac) {
245 sources = [
246 "objc/Framework/Classes/UI/RTCNSGLVideoView.m",
247 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
248 ]
249 }
250 configs += [ "..:common_objc" ]
251 deps = [
kthelgason36d658d2017-08-24 12:43:45252 ":common_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22253 ":video_objc",
254 ":videocapture_objc",
255 ":videoframebuffer_objc",
mbonadei2c8ac1b2017-05-31 12:14:26256 ]
257 }
kthelgasonebc34e72016-09-15 11:30:18258
mbonadei2c8ac1b2017-05-31 12:14:26259 if (rtc_use_metal_rendering) {
kthelgason36d658d2017-08-24 12:43:45260 rtc_static_library("metal_objc") {
Mirko Bonadeid68956d2018-02-16 16:55:36261 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05262 allow_poison = [
263 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
264 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
265 ]
mbonadei2c8ac1b2017-05-31 12:14:26266 sources = [
267 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h",
268 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm",
269 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h",
270 "objc/Framework/Classes/Metal/RTCMTLRenderer.h",
271 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm",
272 ]
273 if (is_ios) {
274 sources += [
275 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h",
276 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm",
277 "objc/Framework/Classes/Metal/RTCMTLVideoView.m",
278 "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h",
279 ]
280 }
281 if (is_mac) {
282 sources += [
283 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m",
284 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h",
285 ]
286 }
287 libs = [
288 "CoreVideo.framework",
289 "Metal.framework",
290 "MetalKit.framework",
291 ]
292 deps = [
Kári Tristan Helgason99bf77c2018-02-16 09:49:22293 ":common_objc",
294 ":peerconnectionfactory_base_objc",
kthelgason36d658d2017-08-24 12:43:45295 ":video_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22296 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03297 ":videorenderer_objc",
mbonadei2c8ac1b2017-05-31 12:14:26298 "../api:video_frame_api",
Patrik Höglunda8005cf2017-12-13 15:05:42299 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47300 "../rtc_base:rtc_base_approved",
mbonadei2c8ac1b2017-05-31 12:14:26301 ]
302 configs += [ "..:common_objc" ]
kthelgason36d658d2017-08-24 12:43:45303 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:26304 }
305 }
306
Anders Carlsson73119182018-03-15 08:41:03307 rtc_static_library("videocapturebase_objc") {
308 visibility = [ "*" ]
309 sources = [
310 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m",
311 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h",
312 ]
313 libs = [ "AVFoundation.framework" ]
314
315 configs += [ "..:common_objc" ]
316
317 public_configs = [ ":common_config_objc" ]
318
319 deps = [
320 ":common_objc",
321 ":videoframebuffer_objc",
322 ]
323 }
324
Kári Tristan Helgason99bf77c2018-02-16 09:49:22325 rtc_static_library("videocapture_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53326 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05327 allow_poison = [
328 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
329 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
330 ]
mbonadei2c8ac1b2017-05-31 12:14:26331 sources = [
zhihuanga4c113a2017-06-28 21:05:44332 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m",
333 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
334 ]
335 if (is_ios) {
336 sources += [
zhihuanga4c113a2017-06-28 21:05:44337 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m",
Daniela012b56b2017-11-15 12:15:24338 "objc/Framework/Headers/WebRTC/RTCFileVideoCapturer.h",
zhihuanga4c113a2017-06-28 21:05:44339 ]
340 }
341 libs = [ "AVFoundation.framework" ]
342
zhihuanga4c113a2017-06-28 21:05:44343 configs += [ "..:common_objc" ]
344
kthelgason36d658d2017-08-24 12:43:45345 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 21:05:44346
347 if (!build_with_chromium && is_clang) {
348 # Suppress warnings from the Chromium Clang plugin
349 # (bugs.webrtc.org/163).
350 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
351 }
352
353 deps = [
kthelgason36d658d2017-08-24 12:43:45354 ":common_objc",
kthelgason36d658d2017-08-24 12:43:45355 ":video_objc",
Anders Carlsson73119182018-03-15 08:41:03356 ":videocapturebase_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22357 ":videoframebuffer_objc",
zhihuanga4c113a2017-06-28 21:05:44358 ]
zhihuanga4c113a2017-06-28 21:05:44359 }
360
Kári Tristan Helgason99bf77c2018-02-16 09:49:22361 rtc_static_library("videocodec_objc") {
Karl Wibergbb23c832018-04-22 17:55:00362 visibility = [ "*" ]
363 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
Kári Tristan Helgason99bf77c2018-02-16 09:49:22364 sources = [
365 "objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm",
366 "objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm",
367 "objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h",
368 "objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm",
kthelgasonfb143122017-07-25 14:55:58369 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22370 "objc/Framework/Classes/PeerConnection/RTCVideoEncoderSettings.mm",
371 "objc/Framework/Headers/WebRTC/RTCVideoCodec.h",
372 "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h",
373 "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h",
zhihuanga4c113a2017-06-28 21:05:44374 ]
Yura Yaroshevich0f77fea2018-04-26 12:41:01375 if (is_ios) {
376 sources += [
377 "objc/Framework/Classes/Video/UIDevice+H264Profile.h",
378 "objc/Framework/Classes/Video/UIDevice+H264Profile.mm",
379 ]
380 }
zhihuanga4c113a2017-06-28 21:05:44381 if (!build_with_chromium && is_clang) {
382 # Suppress warnings from the Chromium Clang plugin
383 # (bugs.webrtc.org/163).
384 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
385 }
Kári Tristan Helgason99bf77c2018-02-16 09:49:22386 public_configs = [ ":common_config_objc" ]
387 deps = [
kthelgason36d658d2017-08-24 12:43:45388 ":common_objc",
kthelgasonfb143122017-07-25 14:55:58389 "../api/video_codecs:video_codecs_api",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22390 "../common_video",
Yura Yaroshevich0f77fea2018-04-26 12:41:01391 "../media:rtc_h264_profile_id",
zhihuanga4c113a2017-06-28 21:05:44392 "../media:rtc_media_base",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22393 "../modules:module_api",
394 "../modules/video_coding:video_codec_interface",
395 "../rtc_base:rtc_base_approved",
kthelgasonfb143122017-07-25 14:55:58396 "../system_wrappers:field_trial_api",
zhihuanga4c113a2017-06-28 21:05:44397 ]
398 }
399
Anders Carlssondd8c1652018-01-30 09:32:13400 rtc_static_library("default_codec_factory_objc") {
401 sources = [
402 "objc/Framework/Classes/PeerConnection/RTCDefaultVideoDecoderFactory.m",
403 "objc/Framework/Classes/PeerConnection/RTCDefaultVideoEncoderFactory.m",
404 ]
405
406 deps = [
407 ":common_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22408 ":native_video",
409 ":videocodec_objc",
Magnus Jedvert8b4e92d2018-04-13 13:36:43410 ":vp8",
411 ":vp9",
Anders Carlssondd8c1652018-01-30 09:32:13412 ]
Anders Carlssondd8c1652018-01-30 09:32:13413 }
414
415 rtc_static_library("vp8") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22416 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05417 allow_poison = [
418 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
419 "software_video_codecs",
420 ]
Anders Carlssondd8c1652018-01-30 09:32:13421 sources = [
422 "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP8.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22423 "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP8.h",
424 "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP8.h",
Anders Carlssondd8c1652018-01-30 09:32:13425 ]
426
427 if (!build_with_chromium && is_clang) {
428 # Suppress warnings from the Chromium Clang plugin
429 # (bugs.webrtc.org/163).
430 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
431 }
432
433 deps = [
Anders Carlsson9823ee42018-03-07 09:32:03434 ":wrapped_native_codec_objc",
Anders Carlssondd8c1652018-01-30 09:32:13435 "../modules/video_coding:webrtc_vp8",
436 "../system_wrappers:metrics_default",
437 ]
438 }
439
440 rtc_static_library("vp9") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22441 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05442 allow_poison = [
443 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
444 "software_video_codecs",
445 ]
Anders Carlssondd8c1652018-01-30 09:32:13446 sources = [
447 "objc/Framework/Classes/PeerConnection/RTCVideoCodecVP9.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22448 "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP9.h",
449 "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP9.h",
Anders Carlssondd8c1652018-01-30 09:32:13450 ]
451
452 if (!build_with_chromium && is_clang) {
453 # Suppress warnings from the Chromium Clang plugin
454 # (bugs.webrtc.org/163).
455 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
456 }
457
458 deps = [
Anders Carlsson9823ee42018-03-07 09:32:03459 ":wrapped_native_codec_objc",
Anders Carlssondd8c1652018-01-30 09:32:13460 "../modules/video_coding:webrtc_vp9",
461 "../system_wrappers:metrics_default",
462 ]
463 }
464
zhihuanga4c113a2017-06-28 21:05:44465 # Build the PeerConnectionFactory without audio/video support.
466 # This target depends on the objc_peeerconnectionfactory_base which still
467 # includes some audio/video related objects such as RTCAudioSource because
468 # these objects are just thin wrappers of native C++ interfaces required
469 # when implementing webrtc::PeerConnectionFactoryInterface and
470 # webrtc::PeerConnectionInterface.
Kári Tristan Helgasona2d89fc2018-03-06 09:18:43471 # The applications which only use WebRTC DataChannel can depend on this.
kthelgason36d658d2017-08-24 12:43:45472 rtc_static_library("peerconnectionfactory_no_media_objc") {
Per Kjellandera7f2d842018-01-10 15:54:53473 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05474 allow_poison = [
475 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
476 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
477 ]
zhihuanga4c113a2017-06-28 21:05:44478 defines = [ "HAVE_NO_MEDIA" ]
479
480 sources = [
Kári Tristan Helgason99bf77c2018-02-16 09:49:22481 "objc/Framework/Classes/Common/noop.mm",
zhihuanga4c113a2017-06-28 21:05:44482 ]
483
kthelgason36d658d2017-08-24 12:43:45484 public_configs = [ ":common_config_objc" ]
zhihuanga4c113a2017-06-28 21:05:44485
486 if (!build_with_chromium && is_clang) {
487 # Suppress warnings from the Chromium Clang plugin
488 # (bugs.webrtc.org/163).
489 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
490 }
491
492 deps = [
Anders Carlsson3ff50fb2018-02-01 14:47:05493 ":native_api",
494 ":native_video",
kthelgason36d658d2017-08-24 12:43:45495 ":peerconnectionfactory_base_objc",
zhihuanga4c113a2017-06-28 21:05:44496 "../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 17:40:47497 "../rtc_base:rtc_base",
zhihuanga4c113a2017-06-28 21:05:44498 ]
499 }
500
Kári Tristan Helgason99bf77c2018-02-16 09:49:22501 rtc_static_library("mediaconstraints_objc") {
502 sources = [
503 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h",
504 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm",
505 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
506 ]
507 if (!build_with_chromium && is_clang) {
508 # Suppress warnings from the Chromium Clang plugin
509 # (bugs.webrtc.org/163).
510 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
511 }
512
513 public_configs = [ ":common_config_objc" ]
514 deps = [
515 ":common_objc",
516 "../api:libjingle_peerconnection_api",
517 ]
518 }
519
Anders Carlsson9823ee42018-03-07 09:32:03520 rtc_source_set("videorenderer_objc") {
521 sources = [
522 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
523 ]
524
525 configs += [ "..:common_objc" ]
526 visibility = [ "*" ]
527 public_configs = [ ":common_config_objc" ]
528 }
529
530 rtc_static_library("videorendereradapter_objc") {
Karl Wibergbb23c832018-04-22 17:55:00531 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05532 allow_poison = [
533 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
534 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
535 ]
Anders Carlsson9823ee42018-03-07 09:32:03536 sources = [
537 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h",
538 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h",
539 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm",
540 ]
541
542 configs += [ "..:common_objc" ]
Anders Carlsson9823ee42018-03-07 09:32:03543 public_configs = [ ":common_config_objc" ]
544
545 deps = [
546 ":common_objc",
547 ":native_api",
548 ":videoframebuffer_objc",
549 ":videorenderer_objc",
550 "../api:libjingle_peerconnection_api",
551 ]
552 }
553
554 rtc_static_library("mediasource_objc") {
555 sources = [
556 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h",
557 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm",
558 "objc/Framework/Headers/WebRTC/RTCMediaSource.h",
559 ]
560
561 configs += [ "..:common_objc" ]
562 public_configs = [ ":common_config_objc" ]
563
564 deps = [
565 ":common_objc",
566 "../api:libjingle_peerconnection_api",
567 "../rtc_base:checks",
568 ]
569 }
570
kthelgason36d658d2017-08-24 12:43:45571 rtc_static_library("peerconnectionfactory_base_objc") {
Karl Wibergbb23c832018-04-22 17:55:00572 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05573 allow_poison = [
574 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
575 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
576 ]
zhihuanga4c113a2017-06-28 21:05:44577 sources = [
mbonadei2c8ac1b2017-05-31 12:14:26578 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h",
579 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm",
580 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h",
581 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm",
Zeke Chinef1140e2017-10-27 22:42:08582 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Native.h",
mbonadei2c8ac1b2017-05-31 12:14:26583 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h",
584 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm",
585 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h",
586 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm",
587 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Private.h",
588 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm",
Yura Yaroshevich27676322018-01-02 11:44:35589 "objc/Framework/Classes/PeerConnection/RTCDtmfSender+Private.h",
590 "objc/Framework/Classes/PeerConnection/RTCDtmfSender.mm",
mbonadei2c8ac1b2017-05-31 12:14:26591 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h",
592 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm",
593 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h",
594 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm",
Steve Antond295e402017-07-14 23:06:41595 "objc/Framework/Classes/PeerConnection/RTCIntervalRange+Private.h",
596 "objc/Framework/Classes/PeerConnection/RTCIntervalRange.mm",
mbonadei2c8ac1b2017-05-31 12:14:26597 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h",
598 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm",
mbonadei2c8ac1b2017-05-31 12:14:26599 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h",
600 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm",
601 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h",
602 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm",
603 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm",
604 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h",
605 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm",
606 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm",
Magnus Jedvert0af86d12017-10-28 14:26:55607 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Native.h",
mbonadei2c8ac1b2017-05-31 12:14:26608 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h",
609 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm",
610 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22611 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Native.h",
612 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h",
613 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
Yura Yaroshevichbf567122018-01-02 10:33:16614 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactoryOptions+Private.h",
615 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactoryOptions.mm",
mbonadei2c8ac1b2017-05-31 12:14:26616 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h",
617 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm",
618 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private.h",
619 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm",
620 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h",
621 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm",
622 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h",
623 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm",
624 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h",
625 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm",
Steve Anton8cb344a2018-02-27 23:34:53626 "objc/Framework/Classes/PeerConnection/RTCRtpTransceiver+Private.h",
627 "objc/Framework/Classes/PeerConnection/RTCRtpTransceiver.mm",
mbonadei2c8ac1b2017-05-31 12:14:26628 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm",
629 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h",
630 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm",
631 "objc/Framework/Classes/PeerConnection/RTCTracing.mm",
mbonadei2c8ac1b2017-05-31 12:14:26632 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h",
633 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm",
Kári Tristan Helgasonf93f5a42017-05-31 08:04:55634 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
635 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
kthelgason5fe4d492016-12-05 19:27:30636 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
637 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
638 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
Yura Yaroshevich27676322018-01-02 11:44:35639 "objc/Framework/Headers/WebRTC/RTCDtmfSender.h",
kthelgason5fe4d492016-12-05 19:27:30640 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
641 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
Steve Antond295e402017-07-14 23:06:41642 "objc/Framework/Headers/WebRTC/RTCIntervalRange.h",
kthelgason5fe4d492016-12-05 19:27:30643 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
kthelgason5fe4d492016-12-05 19:27:30644 "objc/Framework/Headers/WebRTC/RTCMediaStream.h",
645 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
646 "objc/Framework/Headers/WebRTC/RTCMetrics.h",
647 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h",
648 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h",
649 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h",
Yura Yaroshevichbf567122018-01-02 10:33:16650 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactoryOptions.h",
kthelgason5fe4d492016-12-05 19:27:30651 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h",
652 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h",
653 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h",
654 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h",
655 "objc/Framework/Headers/WebRTC/RTCRtpSender.h",
Steve Anton8cb344a2018-02-27 23:34:53656 "objc/Framework/Headers/WebRTC/RTCRtpTransceiver.h",
kthelgason5fe4d492016-12-05 19:27:30657 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h",
658 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
659 "objc/Framework/Headers/WebRTC/RTCTracing.h",
kthelgason5fe4d492016-12-05 19:27:30660 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
kthelgason5fe4d492016-12-05 19:27:30661 ]
kthelgasonebc34e72016-09-15 11:30:18662
kthelgasonc0977102017-04-24 07:57:16663 configs += [ "..:common_objc" ]
kthelgason36d658d2017-08-24 12:43:45664 public_configs = [ ":common_config_objc" ]
kthelgasonc0977102017-04-24 07:57:16665
kjellandere40a7ee2016-10-17 06:56:12666 if (!build_with_chromium && is_clang) {
zhihuanga4c113a2017-06-28 21:05:44667 # Suppress warnings from the Chromium Clang plugin
668 # (bugs.webrtc.org/163).
mbonadei2c8ac1b2017-05-31 12:14:26669 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
670 }
671
672 deps = [
kthelgason36d658d2017-08-24 12:43:45673 ":common_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22674 ":mediaconstraints_objc",
Anders Carlsson9823ee42018-03-07 09:32:03675 ":mediasource_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:05676 ":native_api",
677 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22678 ":video_objc",
679 ":videocodec_objc",
680 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03681 ":videorenderer_objc",
682 ":videorendereradapter_objc",
683 ":videosource_objc",
Mirko Bonadeie51f7852017-12-06 10:23:19684 "../api:libjingle_peerconnection_api",
mbonadei2c8ac1b2017-05-31 12:14:26685 "../api:video_frame_api",
Karl Wiberg5817d3d2018-04-06 08:06:42686 "../api/audio_codecs:builtin_audio_decoder_factory",
Anders Carlsson7e042812017-10-05 14:55:38687 "../api/video_codecs:video_codecs_api",
Anders Carlssone5960ce2017-06-22 13:26:30688 "../common_video",
mbonadei2c8ac1b2017-05-31 12:14:26689 "../media:rtc_media_base",
kthelgasonfb143122017-07-25 14:55:58690 "../modules:module_api",
Patrik Höglund99175c62018-01-08 10:05:10691 "../modules/video_coding:video_codec_interface",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22692 "../pc:create_pc_factory",
zhihuanga4c113a2017-06-28 21:05:44693 "../pc:peerconnection",
Patrik Höglunda8005cf2017-12-13 15:05:42694 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:47695 "../rtc_base:rtc_base",
mbonadei2c8ac1b2017-05-31 12:14:26696 ]
kthelgasonebc34e72016-09-15 11:30:18697 }
Zeke Chindd0e1e02016-10-11 20:27:26698
mbonadei2c8ac1b2017-05-31 12:14:26699 if (rtc_include_tests) {
Daniela012b56b2017-11-15 12:15:24700 if (is_ios) {
Danielaae012cf2017-10-12 11:46:00701 rtc_source_set("sdk_unittests_sources") {
702 testonly = true
703 include_dirs = [
704 "objc/Framework/Headers",
705 "objc/Framework/Classes",
706 ]
Daniela012b56b2017-11-15 12:15:24707
Danielaae012cf2017-10-12 11:46:00708 sources = [
Anders Carlssonfe9d8172018-04-03 09:40:39709 "objc/Framework/UnitTests/ObjCVideoTrackSource_xctest.mm",
710 "objc/Framework/UnitTests/RTCCVPixelBuffer_xctest.mm",
Anders Carlsson3b3364e2018-01-30 14:46:13711 "objc/Framework/UnitTests/RTCCallbackLogger_xctest.m",
Peter Hanspers8020ae82018-01-09 13:26:41712 "objc/Framework/UnitTests/RTCDoNotPutCPlusPlusInFrameworkHeaders_xctest.m",
Daniela012b56b2017-11-15 12:15:24713 "objc/Framework/UnitTests/RTCFileVideoCapturer_xctest.mm",
Anders Carlssonfe9d8172018-04-03 09:40:39714 "objc/Framework/UnitTests/frame_buffer_helpers.h",
715 "objc/Framework/UnitTests/frame_buffer_helpers.mm",
Danielaae012cf2017-10-12 11:46:00716 ]
Daniela012b56b2017-11-15 12:15:24717
Danielaae012cf2017-10-12 11:46:00718 deps = [
719 ":common_objc",
Anders Carlssondc6b4772018-01-15 12:31:03720 ":framework_objc",
Anders Carlssonfe9d8172018-04-03 09:40:39721 ":native_api",
722 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22723 ":videocapture_objc",
Anders Carlssonfe9d8172018-04-03 09:40:39724 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03725 ":videosource_objc",
Danielaae012cf2017-10-12 11:46:00726 ":videotoolbox_objc",
Mirko Bonadeia498ae82017-12-06 08:17:14727 "../../system_wrappers:system_wrappers_default",
Anders Carlssonfe9d8172018-04-03 09:40:39728 "../api:video_frame_api_i420",
729 "../common_video:common_video",
Danielaae012cf2017-10-12 11:46:00730 "../media:rtc_media_base",
Anders Carlssonfe9d8172018-04-03 09:40:39731 "../media:rtc_media_tests_utils",
Danielaae012cf2017-10-12 11:46:00732 "../modules:module_api",
733 "../rtc_base:rtc_base",
734 "../rtc_base:rtc_base_tests_utils",
Anders Carlssonfe9d8172018-04-03 09:40:39735 "//third_party/libyuv",
Danielaae012cf2017-10-12 11:46:00736 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22737
738 if (rtc_use_metal_rendering) {
Kári Tristan Helgason06d094f2018-04-19 15:38:05739 sources += [ "objc/Framework/UnitTests/RTCMTLVideoView_xctest.m" ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22740 deps += [ ":metal_objc" ]
741 }
742
Danielaae012cf2017-10-12 11:46:00743 public_deps = [
744 "//build/config/ios:xctest",
745 "//third_party/ocmock",
746 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22747
Anders Carlssondc6b4772018-01-15 12:31:03748 include_dirs += [ "$root_out_dir/WebRTC.framework/Headers/" ]
Anders Carlssonfe9d8172018-04-03 09:40:39749
750 if (!build_with_chromium && is_clang) {
751 # Suppress warnings from the Chromium Clang plugin
752 # (bugs.webrtc.org/163).
753 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
754 }
Danielaae012cf2017-10-12 11:46:00755 }
756
Daniela012b56b2017-11-15 12:15:24757 bundle_data("sdk_unittests_bundle_data") {
758 # Sample video taken from https://media.xiph.org/video/derf/
759 sources = [
760 "objc/Framework/UnitTests/foreman.mp4",
761 ]
762 outputs = [
763 "{{bundle_resources_dir}}/{{source_file_part}}",
764 ]
765 }
766
Danielaae012cf2017-10-12 11:46:00767 rtc_ios_xctest_test("sdk_unittests") {
768 info_plist = "//test/ios/Info.plist"
769 sources = [
770 "objc/Framework/UnitTests/main.m",
771 ]
Daniela012b56b2017-11-15 12:15:24772
Danielaae012cf2017-10-12 11:46:00773 _bundle_id_suffix = ios_generic_test_bundle_id_suffix
774 extra_substitutions = [ "GTEST_BUNDLE_ID_SUFFIX=$_bundle_id_suffix" ]
775 deps = [
Daniela012b56b2017-11-15 12:15:24776 ":sdk_unittests_bundle_data",
Danielaae012cf2017-10-12 11:46:00777 ":sdk_unittests_sources",
778 ]
779 ldflags = [ "-all_load" ]
780 }
781 }
782
783 # TODO(denicija): once all tests are migrated to xctest remove this source set.
kthelgason36d658d2017-08-24 12:43:45784 rtc_source_set("sdk_unittests_objc") {
mbonadei2c8ac1b2017-05-31 12:14:26785 testonly = true
Kári Tristan Helgasoncbe74352016-11-09 09:43:26786
mbonadei2c8ac1b2017-05-31 12:14:26787 sources = [
mbonadei2c8ac1b2017-05-31 12:14:26788 "objc/Framework/UnitTests/RTCConfigurationTest.mm",
789 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm",
790 "objc/Framework/UnitTests/RTCIceCandidateTest.mm",
791 "objc/Framework/UnitTests/RTCIceServerTest.mm",
Steve Antond295e402017-07-14 23:06:41792 "objc/Framework/UnitTests/RTCIntervalRangeTests.mm",
mbonadei2c8ac1b2017-05-31 12:14:26793 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm",
794 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm",
795 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm",
jtteh7480da42017-07-07 18:02:15796 "objc/Framework/UnitTests/RTCTracingTest.mm",
kthelgasonfb143122017-07-25 14:55:58797 "objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm",
798 "objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm",
Kári Tristan Helgasonca957482017-10-05 12:06:52799 "objc/Framework/UnitTests/scoped_cftyperef_tests.mm",
mbonadei2c8ac1b2017-05-31 12:14:26800 ]
Anders Carlssone7dd83f2018-01-19 10:28:44801 if (is_ios) {
oprypin45197522017-06-22 08:47:20802 sources +=
803 [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ]
804 }
mbonadeid7620582017-05-30 08:50:35805
mbonadei2c8ac1b2017-05-31 12:14:26806 # |-ObjC| flag needed to make sure category method implementations
807 # are included:
808 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
809 ldflags = [ "-ObjC" ]
magjed3149e092017-05-08 12:32:05810
mbonadei2c8ac1b2017-05-31 12:14:26811 defines = [ "GTEST_RELATIVE_PATH" ]
812 deps = [
Kári Tristan Helgasonca957482017-10-05 12:06:52813 ":common_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22814 ":mediaconstraints_objc",
815 ":native_api",
Anders Carlsson3ff50fb2018-02-01 14:47:05816 ":native_video",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22817 ":peerconnectionfactory_base_objc",
818 ":video_objc",
819 ":videocapture_objc",
820 ":videocodec_objc",
821 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:03822 ":videosource_objc",
kthelgason36d658d2017-08-24 12:43:45823 ":videotoolbox_objc",
Mirko Bonadeia498ae82017-12-06 08:17:14824 "../../system_wrappers:system_wrappers_default",
Magnus Jedvert8b4e92d2018-04-13 13:36:43825 "../api/video_codecs:video_codecs_api",
kthelgasonebd4f792017-09-04 11:36:21826 "../media:rtc_media_base",
kthelgasonfb143122017-07-25 14:55:58827 "../modules:module_api",
Patrik Höglund99175c62018-01-08 10:05:10828 "../modules/video_coding:video_codec_interface",
ehmaldonadof6a861a2017-07-19 17:40:47829 "../rtc_base:rtc_base_tests_utils",
Kári Tristan Helgasonca957482017-10-05 12:06:52830 "//test:test_support",
mbonadei2c8ac1b2017-05-31 12:14:26831 "//third_party/ocmock",
832 ]
magjed3149e092017-05-08 12:32:05833
denicija59ee91b2017-06-05 12:48:47834 if (is_ios) {
835 sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22836 deps += [ ":audio_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:26837 }
Danielaae012cf2017-10-12 11:46:00838
mbonadei2c8ac1b2017-05-31 12:14:26839 if (!build_with_chromium && is_clang) {
zhihuanga4c113a2017-06-28 21:05:44840 # Suppress warnings from the Chromium Clang plugin
841 # (bugs.webrtc.org/163).
mbonadei2c8ac1b2017-05-31 12:14:26842 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
843 }
844 }
kthelgason2f088792017-05-30 08:48:47845 }
846
mbonadei2c8ac1b2017-05-31 12:14:26847 if (is_ios) {
Anders Carlssondc6b4772018-01-15 12:31:03848 ios_framework_bundle_with_umbrella_header("framework_objc") {
mbonadei2c8ac1b2017-05-31 12:14:26849 info_plist = "objc/Framework/Info.plist"
850 output_name = "WebRTC"
Magnus Jedvertf83dc8b2017-08-29 09:49:43851
mbonadei2c8ac1b2017-05-31 12:14:26852 common_objc_headers = [
Jeremy Newton-Smith96de4282017-08-23 17:02:23853 "objc/Framework/Headers/WebRTC/RTCAudioSession.h",
Magnus Jedvertf83dc8b2017-08-29 09:49:43854 "objc/Framework/Headers/WebRTC/RTCVideoCodec.h",
855 "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h",
Jeremy Newton-Smith96de4282017-08-23 17:02:23856 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
mbonadei2c8ac1b2017-05-31 12:14:26857 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
858 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
859 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
860 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
861 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
862 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
863 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
864 "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
865 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
866 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h",
Daniela012b56b2017-11-15 12:15:24867 "objc/Framework/Headers/WebRTC/RTCFileVideoCapturer.h",
mbonadei2c8ac1b2017-05-31 12:14:26868 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
869 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
Steve Antond295e402017-07-14 23:06:41870 "objc/Framework/Headers/WebRTC/RTCIntervalRange.h",
mbonadei2c8ac1b2017-05-31 12:14:26871 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
872 "objc/Framework/Headers/WebRTC/RTCLogging.h",
873 "objc/Framework/Headers/WebRTC/RTCMacros.h",
874 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
875 "objc/Framework/Headers/WebRTC/RTCMediaSource.h",
876 "objc/Framework/Headers/WebRTC/RTCMediaStream.h",
877 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
878 "objc/Framework/Headers/WebRTC/RTCMetrics.h",
879 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h",
880 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h",
881 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h",
Yura Yaroshevichbf567122018-01-02 10:33:16882 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactoryOptions.h",
mbonadei2c8ac1b2017-05-31 12:14:26883 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h",
884 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h",
885 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h",
886 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h",
887 "objc/Framework/Headers/WebRTC/RTCRtpSender.h",
Steve Anton8cb344a2018-02-27 23:34:53888 "objc/Framework/Headers/WebRTC/RTCRtpTransceiver.h",
Yura Yaroshevich27676322018-01-02 11:44:35889 "objc/Framework/Headers/WebRTC/RTCDtmfSender.h",
mbonadei2c8ac1b2017-05-31 12:14:26890 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h",
891 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
892 "objc/Framework/Headers/WebRTC/RTCTracing.h",
893 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h",
Anders Carlsson7e042812017-10-05 14:55:38894 "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h",
mbonadei2c8ac1b2017-05-31 12:14:26895 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
Anders Carlssone5960ce2017-06-22 13:26:30896 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
mbonadei2c8ac1b2017-05-31 12:14:26897 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
898 "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
899 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
900 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h",
901 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
Magnus Jedvert8b4e92d2018-04-13 13:36:43902 "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP8.h",
903 "objc/Framework/Headers/WebRTC/RTCVideoDecoderVP9.h",
904 "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP8.h",
905 "objc/Framework/Headers/WebRTC/RTCVideoEncoderVP9.h",
mbonadei2c8ac1b2017-05-31 12:14:26906 ]
Magnus Jedvert8b4e92d2018-04-13 13:36:43907
mbonadei2c8ac1b2017-05-31 12:14:26908 if (!build_with_chromium) {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22909 common_objc_headers += [
Anders Carlsson3b3364e2018-01-30 14:46:13910 "objc/Framework/Headers/WebRTC/RTCCallbackLogger.h",
911 "objc/Framework/Headers/WebRTC/RTCFileLogger.h",
912 ]
mbonadei2c8ac1b2017-05-31 12:14:26913 }
Anders Carlssonc3d1e092018-03-21 11:38:37914 if (rtc_use_metal_rendering) {
915 common_objc_headers +=
916 [ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h" ]
917 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:26918
Kári Tristan Helgason99bf77c2018-02-16 09:49:22919 sources = common_objc_headers
920 public_headers = common_objc_headers
921
mbonadei2c8ac1b2017-05-31 12:14:26922 ldflags = [
923 "-all_load",
924 "-install_name",
925 "@rpath/$output_name.framework/$output_name",
926 ]
Kári Tristan Helgasoncbe74352016-11-09 09:43:26927
mbonadei2c8ac1b2017-05-31 12:14:26928 deps = [
kthelgason36d658d2017-08-24 12:43:45929 ":audio_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22930 ":common_objc",
931 ":default_codec_factory_objc",
932 ":native_api",
933 ":native_video",
934 ":peerconnectionfactory_base_objc",
kthelgason36d658d2017-08-24 12:43:45935 ":ui_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:22936 ":videocapture_objc",
937 ":videocodec_objc",
938 ":videotoolbox_objc",
ehmaldonadof6a861a2017-07-19 17:40:47939 "../rtc_base:rtc_base_approved",
mbonadei2c8ac1b2017-05-31 12:14:26940 "../system_wrappers:field_trial_default",
941 "../system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24942 "../system_wrappers:runtime_enabled_features_default",
mbonadei2c8ac1b2017-05-31 12:14:26943 ]
Kári Tristan Helgason99bf77c2018-02-16 09:49:22944 if (rtc_use_metal_rendering) {
Kári Tristan Helgason99bf77c2018-02-16 09:49:22945 deps += [ ":metal_objc" ]
946 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:26947
mbonadei2c8ac1b2017-05-31 12:14:26948 libs = [
949 "AVFoundation.framework",
950 "CoreGraphics.framework",
951 "CoreMedia.framework",
952 "GLKit.framework",
953 ]
954
955 configs += [ "..:common_objc" ]
956
kthelgason36d658d2017-08-24 12:43:45957 public_configs = [ ":common_config_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:26958
959 if (!build_with_chromium && is_clang) {
zhihuanga4c113a2017-06-28 21:05:44960 # Suppress warnings from the Chromium Clang plugin
961 # (bugs.webrtc.org/163).
mbonadei2c8ac1b2017-05-31 12:14:26962 configs -= [ "//build/config/clang:find_bad_constructs" ]
963 }
964 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:26965 }
966
Anders Carlsson9823ee42018-03-07 09:32:03967 rtc_static_library("wrapped_native_codec_objc") {
968 sources = [
969 "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.h",
970 "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoDecoder.mm",
971 "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.h",
972 "objc/Framework/Classes/PeerConnection/RTCWrappedNativeVideoEncoder.mm",
973 ]
974
975 configs += [ "..:common_objc" ]
976 public_configs = [ ":common_config_objc" ]
977
978 if (!build_with_chromium && is_clang) {
979 # Suppress warnings from the Chromium Clang plugin
980 # (bugs.webrtc.org/163).
981 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
982 }
983
984 deps = [
985 ":common_objc",
986 ":videocodec_objc",
987 "../api/video_codecs:video_codecs_api",
988 "../media:rtc_media_base",
989 ]
990 }
991
Anders Carlsson3ff50fb2018-02-01 14:47:05992 # The native API is currently experimental and may change without notice.
993 rtc_static_library("native_api") {
994 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:05995 allow_poison = [
996 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
997 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
998 ]
Anders Carlsson3ff50fb2018-02-01 14:47:05999 sources = [
Anders Carlsson73119182018-03-15 08:41:031000 "objc/Framework/Native/api/video_capturer.h",
1001 "objc/Framework/Native/api/video_capturer.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051002 "objc/Framework/Native/api/video_decoder_factory.h",
1003 "objc/Framework/Native/api/video_decoder_factory.mm",
1004 "objc/Framework/Native/api/video_encoder_factory.h",
1005 "objc/Framework/Native/api/video_encoder_factory.mm",
Anders Carlsson9823ee42018-03-07 09:32:031006 "objc/Framework/Native/api/video_frame.h",
1007 "objc/Framework/Native/api/video_frame.mm",
1008 "objc/Framework/Native/api/video_frame_buffer.h",
1009 "objc/Framework/Native/api/video_frame_buffer.mm",
1010 "objc/Framework/Native/api/video_renderer.h",
1011 "objc/Framework/Native/api/video_renderer.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051012 ]
1013
1014 configs += [ "..:common_objc" ]
1015
1016 public_configs = [ ":common_config_objc" ]
1017
1018 if (!build_with_chromium && is_clang) {
1019 # Suppress warnings from the Chromium Clang plugin
1020 # (bugs.webrtc.org/163).
1021 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1022 }
1023
1024 deps = [
1025 ":native_video",
Anders Carlsson73119182018-03-15 08:41:031026 ":videocapturebase_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221027 ":videocodec_objc",
1028 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:031029 ":videorenderer_objc",
Anders Carlsson73119182018-03-15 08:41:031030 "../api:libjingle_peerconnection_api",
Anders Carlsson9823ee42018-03-07 09:32:031031 "../api:video_frame_api",
Anders Carlsson3ff50fb2018-02-01 14:47:051032 "../api/video_codecs:video_codecs_api",
1033 "../common_video",
1034 "../rtc_base:rtc_base",
1035 ]
1036 }
1037
1038 rtc_static_library("native_video") {
1039 sources = [
Anders Carlsson9823ee42018-03-07 09:32:031040 "objc/Framework/Native/src/objc_frame_buffer.h",
1041 "objc/Framework/Native/src/objc_frame_buffer.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051042 "objc/Framework/Native/src/objc_video_decoder_factory.h",
1043 "objc/Framework/Native/src/objc_video_decoder_factory.mm",
1044 "objc/Framework/Native/src/objc_video_encoder_factory.h",
1045 "objc/Framework/Native/src/objc_video_encoder_factory.mm",
Anders Carlsson9823ee42018-03-07 09:32:031046 "objc/Framework/Native/src/objc_video_frame.h",
1047 "objc/Framework/Native/src/objc_video_frame.mm",
1048 "objc/Framework/Native/src/objc_video_renderer.h",
1049 "objc/Framework/Native/src/objc_video_renderer.mm",
1050 "objc/Framework/Native/src/objc_video_track_source.h",
1051 "objc/Framework/Native/src/objc_video_track_source.mm",
Anders Carlsson3ff50fb2018-02-01 14:47:051052 ]
1053
1054 configs += [ "..:common_objc" ]
1055
1056 public_configs = [ ":common_config_objc" ]
1057
1058 if (!build_with_chromium && is_clang) {
1059 # Suppress warnings from the Chromium Clang plugin
1060 # (bugs.webrtc.org/163).
1061 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1062 }
1063
1064 deps = [
1065 ":common_objc",
Anders Carlsson73119182018-03-15 08:41:031066 ":videocapturebase_objc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221067 ":videocodec_objc",
1068 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:031069 ":videorenderer_objc",
1070 ":wrapped_native_codec_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:051071 "../api:video_frame_api",
Anders Carlsson9823ee42018-03-07 09:32:031072 "../api:video_frame_api_i420",
Anders Carlsson3ff50fb2018-02-01 14:47:051073 "../api/video_codecs:video_codecs_api",
1074 "../common_video",
1075 "../media:rtc_audio_video",
1076 "../media:rtc_media_base",
1077 "../modules:module_api",
1078 "../modules/video_coding:video_codec_interface",
1079 "../rtc_base:checks",
1080 "../rtc_base:rtc_base",
1081 ]
1082 }
1083
mbonadeic0af5ac2017-08-24 19:26:051084 rtc_static_library("video_toolbox_cc") {
mbonadei6ff8f962017-09-04 12:51:341085 visibility = [ ":videotoolbox_objc" ]
mbonadei2c8ac1b2017-05-31 12:14:261086 sources = [
magjed73c0eb52017-08-07 13:55:281087 "objc/Framework/Classes/VideoToolbox/helpers.cc",
1088 "objc/Framework/Classes/VideoToolbox/helpers.h",
mbonadei2c8ac1b2017-05-31 12:14:261089 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc",
1090 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h",
mbonadeic0af5ac2017-08-24 19:26:051091 ]
1092 deps = [
1093 "../common_video",
1094 "../modules:module_api",
1095 "../modules/video_coding:webrtc_h264",
Patrik Höglunda8005cf2017-12-13 15:05:421096 "../rtc_base:checks",
mbonadeic0af5ac2017-08-24 19:26:051097 "../rtc_base:rtc_base_approved",
1098 ]
1099 if (!build_with_chromium && is_clang) {
1100 # Suppress warnings from the Chromium Clang plugin
1101 # (bugs.webrtc.org/163).
1102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1103 }
1104 }
1105
1106 rtc_static_library("videotoolbox_objc") {
Kári Tristan Helgason99bf77c2018-02-16 09:49:221107 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 14:39:051108 allow_poison = [
1109 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
1110 "software_video_codecs", # TODO(bugs.webrtc.org/7925): Remove.
1111 ]
mbonadeic0af5ac2017-08-24 19:26:051112 sources = [
1113 "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm",
1114 "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm",
mbonadei2c8ac1b2017-05-31 12:14:261115 ]
1116
1117 configs += [ "..:common_objc" ]
1118
1119 deps = [
kthelgason36d658d2017-08-24 12:43:451120 ":common_objc",
Anders Carlsson3ff50fb2018-02-01 14:47:051121 ":native_api",
kthelgason36d658d2017-08-24 12:43:451122 ":video_objc",
mbonadeic0af5ac2017-08-24 19:26:051123 ":video_toolbox_cc",
Kári Tristan Helgason99bf77c2018-02-16 09:49:221124 ":videocodec_objc",
1125 ":videoframebuffer_objc",
Anders Carlsson9823ee42018-03-07 09:32:031126 ":videosource_objc",
Mirko Bonadei0594a7c2017-12-18 10:42:481127 "../api:video_frame_api",
kthelgasonfb143122017-07-25 14:55:581128 "../api/video_codecs:video_codecs_api",
mbonadei2c8ac1b2017-05-31 12:14:261129 "../common_video",
Mirko Bonadei75baa492018-01-11 16:07:301130 "../media:rtc_audio_video",
mbonadei2c8ac1b2017-05-31 12:14:261131 "../media:rtc_media",
1132 "../media:rtc_media_base",
1133 "../modules:module_api",
Patrik Höglund99175c62018-01-08 10:05:101134 "../modules/video_coding:video_codec_interface",
mbonadei2c8ac1b2017-05-31 12:14:261135 "../modules/video_coding:video_coding_utility",
Patrik Höglunda8005cf2017-12-13 15:05:421136 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 17:40:471137 "../rtc_base:rtc_base_approved",
Mirko Bonadei401d0562017-12-14 10:24:001138 "//third_party/libyuv",
mbonadei2c8ac1b2017-05-31 12:14:261139 ]
1140
1141 libs = [
1142 "CoreFoundation.framework",
1143 "CoreMedia.framework",
1144 "CoreVideo.framework",
1145 "VideoToolbox.framework",
1146 ]
1147
1148 if (!build_with_chromium && is_clang) {
zhihuanga4c113a2017-06-28 21:05:441149 # Suppress warnings from the Chromium Clang plugin
1150 # (bugs.webrtc.org/163).
mbonadei2c8ac1b2017-05-31 12:14:261151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1152 }
Kári Tristan Helgasoncbe74352016-11-09 09:43:261153 }
1154 }
tkchin9eeb6242016-04-27 08:54:201155}