Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: webrtc/sdk/BUILD.gn

Issue 2944643002: Support building WebRTC without audio and video for IOS (Closed)
Patch Set: Format Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 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 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 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_ios) { 10 if (is_ios) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", 95 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
96 ] 96 ]
97 configs += [ "..:common_objc" ] 97 configs += [ "..:common_objc" ]
98 98
99 deps = [ 99 deps = [
100 ":objc_common", 100 ":objc_common",
101 "../base:rtc_base_approved", 101 "../base:rtc_base_approved",
102 ] 102 ]
103 103
104 if (is_clang) { 104 if (is_clang) {
105 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 105 # Suppress warnings from the Chromium Clang plugin
106 # (bugs.webrtc.org/163).
106 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 107 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
107 } 108 }
108 } 109 }
110
111 # Keep videotracksource related code in a separate target so that we can
112 # build PeerConnectionFactory without audio/video support when that's called
113 # for.
114 rtc_static_library("objc_videotracksource") {
115 sources = [
116 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm",
117 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h",
118 "objc/Framework/Classes/Video/RTCI420Buffer.mm",
119 "objc/Framework/Classes/Video/objc_frame_buffer.h",
120 "objc/Framework/Classes/Video/objc_frame_buffer.mm",
121 "objc/Framework/Classes/Video/objcvideotracksource.h",
122 "objc/Framework/Classes/Video/objcvideotracksource.mm",
123 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
124 ]
125
126 deps = [
127 ":objc_common",
128 "../api:libjingle_peerconnection_api",
129 "../api:video_frame_api",
130 "../base:rtc_base",
131 "../common_video",
132 "../media:rtc_media_base",
133 ]
134
135 configs += [ "..:common_objc" ]
136 if (!build_with_chromium && is_clang) {
137 # Suppress warnings from the Chromium Clang plugin
138 # (bugs.webrtc.org/163).
139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
140 }
141 }
142
109 rtc_static_library("objc_video") { 143 rtc_static_library("objc_video") {
110 sources = [ 144 sources = [
111 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", 145 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h",
112 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", 146 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm",
113 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm",
114 "objc/Framework/Classes/Video/RTCDefaultShader.h", 147 "objc/Framework/Classes/Video/RTCDefaultShader.h",
115 "objc/Framework/Classes/Video/RTCDefaultShader.mm", 148 "objc/Framework/Classes/Video/RTCDefaultShader.mm",
116 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h",
117 "objc/Framework/Classes/Video/RTCI420Buffer.mm",
118 "objc/Framework/Classes/Video/RTCI420TextureCache.h", 149 "objc/Framework/Classes/Video/RTCI420TextureCache.h",
119 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", 150 "objc/Framework/Classes/Video/RTCI420TextureCache.mm",
120 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", 151 "objc/Framework/Classes/Video/RTCOpenGLDefines.h",
121 "objc/Framework/Classes/Video/RTCShader.h", 152 "objc/Framework/Classes/Video/RTCShader.h",
122 "objc/Framework/Classes/Video/RTCShader.mm", 153 "objc/Framework/Classes/Video/RTCShader.mm",
123 "objc/Framework/Classes/Video/avfoundationformatmapper.h", 154 "objc/Framework/Classes/Video/avfoundationformatmapper.h",
124 "objc/Framework/Classes/Video/avfoundationformatmapper.mm", 155 "objc/Framework/Classes/Video/avfoundationformatmapper.mm",
125 "objc/Framework/Classes/Video/avfoundationvideocapturer.h", 156 "objc/Framework/Classes/Video/avfoundationvideocapturer.h",
126 "objc/Framework/Classes/Video/avfoundationvideocapturer.mm", 157 "objc/Framework/Classes/Video/avfoundationvideocapturer.mm",
127 "objc/Framework/Classes/Video/objc_frame_buffer.h",
128 "objc/Framework/Classes/Video/objc_frame_buffer.mm",
129 "objc/Framework/Classes/Video/objcvideotracksource.h",
130 "objc/Framework/Classes/Video/objcvideotracksource.mm",
131 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
132 ] 158 ]
133 libs = [] 159 libs = []
134 if (is_ios) { 160 if (is_ios) {
135 sources += [ 161 sources += [
136 "objc/Framework/Classes/Video/RTCNV12TextureCache.h", 162 "objc/Framework/Classes/Video/RTCNV12TextureCache.h",
137 "objc/Framework/Classes/Video/RTCNV12TextureCache.m", 163 "objc/Framework/Classes/Video/RTCNV12TextureCache.m",
138 ] 164 ]
139 libs += [ 165 libs += [
140 "GLKit.framework", 166 "GLKit.framework",
141 "OpenGLES.framework", 167 "OpenGLES.framework",
142 "QuartzCore.framework", 168 "QuartzCore.framework",
143 ] 169 ]
144 } else if (is_mac) { 170 } else if (is_mac) {
145 sources += [] 171 sources += []
146 172
147 libs += [ 173 libs += [
148 "CoreMedia.framework", 174 "CoreMedia.framework",
149 "CoreVideo.framework", 175 "CoreVideo.framework",
150 "OpenGL.framework", 176 "OpenGL.framework",
151 ] 177 ]
152 } 178 }
153 179
154 deps = [ 180 deps = [
155 ":objc_common", 181 ":objc_common",
182 ":objc_videotracksource",
156 "../api:libjingle_peerconnection_api", 183 "../api:libjingle_peerconnection_api",
157 "../base:rtc_base", 184 "../base:rtc_base",
158 "../common_video", 185 "../common_video",
159 "../media:rtc_media_base", 186 "../media:rtc_media_base",
160 ] 187 ]
161 188
162 configs += [ "..:common_objc" ] 189 configs += [ "..:common_objc" ]
163 if (!build_with_chromium && is_clang) { 190 if (!build_with_chromium && is_clang) {
164 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 191 # Suppress warnings from the Chromium Clang plugin
192 # (bugs.webrtc.org/163).
165 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
166 } 194 }
167 } 195 }
168 196
169 rtc_static_library("objc_ui") { 197 rtc_static_library("objc_ui") {
170 if (is_ios) { 198 if (is_ios) {
171 sources = [ 199 sources = [
172 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", 200 "objc/Framework/Classes/UI/RTCCameraPreviewView.m",
173 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", 201 "objc/Framework/Classes/UI/RTCEAGLVideoView.m",
174 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", 202 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ] 251 ]
224 configs += [ "..:common_objc" ] 252 configs += [ "..:common_objc" ]
225 public_configs = [ ":objc_common_config" ] 253 public_configs = [ ":objc_common_config" ]
226 } 254 }
227 } 255 }
228 256
229 rtc_static_library("objc_peerconnection") { 257 rtc_static_library("objc_peerconnection") {
230 sources = [ 258 sources = [
231 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat e.h", 259 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat e.h",
232 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", 260 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm",
261 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m",
262 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
263 ]
264 if (is_ios) {
265 sources += [
266 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h",
267 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m",
268 ]
269 }
270 libs = [ "AVFoundation.framework" ]
271
272 if (is_ios) {
273 libs += [ "CoreGraphics.framework" ]
274 }
275
276 configs += [ "..:common_objc" ]
277
278 public_configs = [ ":objc_common_config" ]
279
280 if (!build_with_chromium && is_clang) {
281 # Suppress warnings from the Chromium Clang plugin
282 # (bugs.webrtc.org/163).
283 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
284 }
285
286 deps = [
287 ":objc_common",
288 ":objc_corevideoframebuffer",
289 ":objc_peerconnectionfactory",
290 ":objc_video",
291 "../api:video_frame_api",
292 "../base:rtc_base",
293 "../media:rtc_media_base",
294 "../pc:libjingle_peerconnection",
295 ]
296
297 if (rtc_use_metal_rendering) {
298 deps += [ ":objc_metal" ]
299 }
300
301 if (rtc_build_libyuv) {
302 deps += [ "$rtc_libyuv_dir" ]
303 public_deps = [
304 "$rtc_libyuv_dir",
305 ]
306 }
307 }
308
309 rtc_static_library("objc_peerconnectionfactory") {
310 sources = [
311 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
312 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
313 ]
314
315 public_configs = [ ":objc_common_config" ]
316
317 if (!build_with_chromium && is_clang) {
318 # Suppress warnings from the Chromium Clang plugin
319 # (bugs.webrtc.org/163).
320 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
321 }
322
323 deps = [
324 ":objc_common",
325 ":objc_corevideoframebuffer",
326 ":objc_peerconnectionfactory_base",
327 ":objc_video",
328 ":objc_videotoolbox",
329 "../api:video_frame_api",
330 "../base:rtc_base",
331 "../media:rtc_media_base",
332 "../pc:create_pc_factory",
333 "../pc:peerconnection",
334 ]
335 }
336
337 # Build the PeerConnectionFactory without audio/video support.
338 # This target depends on the objc_peeerconnectionfactory_base which still
339 # includes some audio/video related objects such as RTCAudioSource because
340 # these objects are just thin wrappers of native C++ interfaces required
341 # when implementing webrtc::PeerConnectionFactoryInterface and
342 # webrtc::PeerConnectionInterface.
343 # The applications which only use WebRTC DataChannel can depend on this
344 # target instead of rtc_sdk_objc.
345 rtc_static_library("objc_peerconnectionfactory_no_media") {
346 defines = [ "HAVE_NO_MEDIA" ]
347
348 sources = [
349 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
350 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
351 ]
352
353 public_configs = [ ":objc_common_config" ]
354
355 if (!build_with_chromium && is_clang) {
356 # Suppress warnings from the Chromium Clang plugin
357 # (bugs.webrtc.org/163).
358 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
359 }
360
361 deps = [
362 ":objc_peerconnectionfactory_base",
363 "../api:libjingle_peerconnection_api",
364 "../base:rtc_base",
365 ]
366 }
367
368 rtc_static_library("objc_peerconnectionfactory_base") {
369 sources = [
233 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", 370 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h",
234 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", 371 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm",
235 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", 372 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h",
236 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", 373 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm",
237 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m",
238 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", 374 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h",
239 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", 375 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm",
240 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", 376 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h",
241 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", 377 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm",
242 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h", 378 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h",
243 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", 379 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm",
244 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", 380 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h",
245 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", 381 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm",
246 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", 382 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h",
247 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", 383 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm",
248 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", 384 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h",
249 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", 385 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm",
250 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", 386 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h",
251 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", 387 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm",
252 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", 388 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h",
253 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", 389 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm",
254 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", 390 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h",
255 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", 391 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm",
256 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", 392 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h",
257 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", 393 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm",
258 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", 394 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm",
259 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", 395 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h",
260 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", 396 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm",
261 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" , 397 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" ,
262 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", 398 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h",
263 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", 399 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm",
264 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", 400 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm",
265 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
266 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
267 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", 401 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h",
268 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", 402 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm",
269 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h", 403 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h",
270 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", 404 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm",
271 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", 405 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h",
272 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", 406 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm",
273 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", 407 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h",
274 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", 408 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm",
275 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", 409 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h",
276 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", 410 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm",
277 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", 411 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm",
278 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", 412 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h",
279 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", 413 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm",
280 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", 414 "objc/Framework/Classes/PeerConnection/RTCTracing.mm",
281 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", 415 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m",
282 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", 416 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm",
283 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ", 417 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ",
284 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", 418 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h",
285 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", 419 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm",
286 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", 420 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h",
287 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", 421 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm",
288 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", 422 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h",
289 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", 423 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm",
290 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 424 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
291 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 425 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
292 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 426 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
293 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
294 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 427 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
295 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 428 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
296 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 429 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
297 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", 430 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
298 "objc/Framework/Headers/WebRTC/RTCIceServer.h", 431 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
299 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", 432 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
300 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", 433 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
301 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", 434 "objc/Framework/Headers/WebRTC/RTCMediaSource.h",
302 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", 435 "objc/Framework/Headers/WebRTC/RTCMediaStream.h",
303 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", 436 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
(...skipping 10 matching lines...) Expand all
314 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", 447 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
315 "objc/Framework/Headers/WebRTC/RTCTracing.h", 448 "objc/Framework/Headers/WebRTC/RTCTracing.h",
316 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", 449 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h",
317 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", 450 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
318 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", 451 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
319 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", 452 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
320 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", 453 "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
321 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", 454 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
322 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", 455 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h",
323 ] 456 ]
324 if (is_ios) {
325 sources += [
326 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h",
327 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m",
328 ]
329 }
330 libs = [ "AVFoundation.framework" ]
331
332 if (is_ios) {
333 libs += [ "CoreGraphics.framework" ]
334 }
335 457
336 configs += [ "..:common_objc" ] 458 configs += [ "..:common_objc" ]
337 459
338 public_configs = [ ":objc_common_config" ] 460 public_configs = [ ":objc_common_config" ]
339 461
340 if (!build_with_chromium && is_clang) { 462 if (!build_with_chromium && is_clang) {
341 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 463 # Suppress warnings from the Chromium Clang plugin
464 # (bugs.webrtc.org/163).
342 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
343 } 466 }
344 467
345 deps = [ 468 deps = [
346 ":objc_common", 469 ":objc_common",
347 ":objc_corevideoframebuffer", 470 ":objc_corevideoframebuffer",
348 ":objc_video", 471 ":objc_videotracksource",
349 ":objc_videotoolbox",
350 "../api:video_frame_api", 472 "../api:video_frame_api",
351 "../base:rtc_base", 473 "../base:rtc_base",
352 "../common_video", 474 "../common_video",
353 "../media:rtc_media_base", 475 "../media:rtc_media_base",
354 "../pc:libjingle_peerconnection", 476 "../pc:peerconnection",
355 ] 477 ]
356
357 if (rtc_use_metal_rendering) {
358 deps += [ ":objc_metal" ]
359 }
360
361 if (rtc_build_libyuv) {
362 deps += [ "$rtc_libyuv_dir" ]
363 public_deps = [
364 "$rtc_libyuv_dir",
365 ]
366 }
367 } 478 }
368 479
369 if (rtc_include_tests) { 480 if (rtc_include_tests) {
370 rtc_source_set("objc_sdk_unittests") { 481 rtc_source_set("objc_sdk_unittests") {
371 testonly = true 482 testonly = true
372 483
373 # Skip restricting visibility on mobile platforms since the tests on tho se 484 # Skip restricting visibility on mobile platforms since the tests on tho se
374 # gets additional generated targets which would require many lines here to 485 # gets additional generated targets which would require many lines here to
375 # cover (which would be confusing to read and hard to maintain). 486 # cover (which would be confusing to read and hard to maintain).
376 if (!is_android && !is_ios) { 487 if (!is_android && !is_ios) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] 527 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ]
417 if (current_cpu != "arm64") { 528 if (current_cpu != "arm64") {
418 # Only include this file on simulator, as it's already 529 # Only include this file on simulator, as it's already
419 # included in device builds. 530 # included in device builds.
420 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] 531 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ]
421 libs = [ "CoreVideo.framework" ] 532 libs = [ "CoreVideo.framework" ]
422 } 533 }
423 } 534 }
424 } 535 }
425 if (!build_with_chromium && is_clang) { 536 if (!build_with_chromium && is_clang) {
426 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/16 3). 537 # Suppress warnings from the Chromium Clang plugin
538 # (bugs.webrtc.org/163).
427 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 539 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
428 } 540 }
429 } 541 }
430 } 542 }
431 543
432 if (is_ios) { 544 if (is_ios) {
433 ios_framework_bundle("objc_framework") { 545 ios_framework_bundle("objc_framework") {
434 info_plist = "objc/Framework/Info.plist" 546 info_plist = "objc/Framework/Info.plist"
435 output_name = "WebRTC" 547 output_name = "WebRTC"
436 548
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 "CoreGraphics.framework", 623 "CoreGraphics.framework",
512 "CoreMedia.framework", 624 "CoreMedia.framework",
513 "GLKit.framework", 625 "GLKit.framework",
514 ] 626 ]
515 627
516 configs += [ "..:common_objc" ] 628 configs += [ "..:common_objc" ]
517 629
518 public_configs = [ ":objc_common_config" ] 630 public_configs = [ ":objc_common_config" ]
519 631
520 if (!build_with_chromium && is_clang) { 632 if (!build_with_chromium && is_clang) {
521 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/16 3) 633 # Suppress warnings from the Chromium Clang plugin
634 # (bugs.webrtc.org/163).
522 configs -= [ "//build/config/clang:find_bad_constructs" ] 635 configs -= [ "//build/config/clang:find_bad_constructs" ]
523 } 636 }
524 } 637 }
525 } 638 }
526 639
527 rtc_static_library("rtc_sdk_objc") { 640 rtc_static_library("rtc_sdk_objc") {
528 complete_static_lib = true 641 complete_static_lib = true
529 deps = [ 642 deps = [
530 ":objc_peerconnection", 643 ":objc_peerconnection",
531 ":objc_ui", 644 ":objc_ui",
532 "../system_wrappers:field_trial_default", 645 "../system_wrappers:field_trial_default",
533 "../system_wrappers:metrics_default", 646 "../system_wrappers:metrics_default",
534 ] 647 ]
535 } 648 }
536 649
537 rtc_static_library("objc_corevideoframebuffer") { 650 rtc_static_library("objc_corevideoframebuffer") {
538 sources = [ 651 sources = [
539 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", 652 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc",
540 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", 653 "objc/Framework/Classes/Video/corevideo_frame_buffer.h",
541 ] 654 ]
542 655
543 deps = [ 656 deps = [
544 "../base:rtc_base_approved", 657 "../base:rtc_base_approved",
545 "../common_video", 658 "../common_video",
546 ] 659 ]
547 660
548 if (!build_with_chromium && is_clang) { 661 if (!build_with_chromium && is_clang) {
549 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 662 # Suppress warnings from the Chromium Clang plugin
663 # (bugs.webrtc.org/163).
550 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 664 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
551 } 665 }
552 666
553 libs = [ "CoreVideo.framework" ] 667 libs = [ "CoreVideo.framework" ]
554 } 668 }
555 669
556 rtc_static_library("objc_videotoolbox") { 670 rtc_static_library("objc_videotoolbox") {
557 sources = [ 671 sources = [
558 "objc/Framework/Classes/VideoToolbox/decoder.h", 672 "objc/Framework/Classes/VideoToolbox/decoder.h",
559 "objc/Framework/Classes/VideoToolbox/decoder.mm", 673 "objc/Framework/Classes/VideoToolbox/decoder.mm",
560 "objc/Framework/Classes/VideoToolbox/encoder.h", 674 "objc/Framework/Classes/VideoToolbox/encoder.h",
561 "objc/Framework/Classes/VideoToolbox/encoder.mm", 675 "objc/Framework/Classes/VideoToolbox/encoder.mm",
562 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", 676 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc",
563 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", 677 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h",
564 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", 678 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h",
565 "objc/Framework/Classes/VideoToolbox/videocodecfactory.mm", 679 "objc/Framework/Classes/VideoToolbox/videocodecfactory.mm",
566 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", 680 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
567 ] 681 ]
568 682
569 configs += [ "..:common_objc" ] 683 configs += [ "..:common_objc" ]
570 684
571 deps = [ 685 deps = [
572 ":objc_common", 686 ":objc_common",
573 ":objc_video", 687 ":objc_video",
688 ":objc_videotracksource",
574 "../base:rtc_base_approved", 689 "../base:rtc_base_approved",
575 "../common_video", 690 "../common_video",
576 "../media:rtc_media", 691 "../media:rtc_media",
577 "../media:rtc_media_base", 692 "../media:rtc_media_base",
578 "../modules:module_api", 693 "../modules:module_api",
579 "../modules/video_coding:video_coding_utility", 694 "../modules/video_coding:video_coding_utility",
580 "../modules/video_coding:webrtc_h264", 695 "../modules/video_coding:webrtc_h264",
581 "../system_wrappers", 696 "../system_wrappers",
582 ] 697 ]
583 698
584 libs = [ 699 libs = [
585 "CoreFoundation.framework", 700 "CoreFoundation.framework",
586 "CoreMedia.framework", 701 "CoreMedia.framework",
587 "CoreVideo.framework", 702 "CoreVideo.framework",
588 "VideoToolbox.framework", 703 "VideoToolbox.framework",
589 ] 704 ]
590 705
591 if (!build_with_chromium && is_clang) { 706 if (!build_with_chromium && is_clang) {
592 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 707 # Suppress warnings from the Chromium Clang plugin
708 # (bugs.webrtc.org/163).
593 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 709 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
594 } 710 }
595 711
596 if (rtc_build_libyuv) { 712 if (rtc_build_libyuv) {
597 deps += [ "$rtc_libyuv_dir" ] 713 deps += [ "$rtc_libyuv_dir" ]
598 public_deps = [ 714 public_deps = [
599 "$rtc_libyuv_dir", 715 "$rtc_libyuv_dir",
600 ] 716 ]
601 } else { 717 } else {
602 # Need to add a directory normally exported by libyuv. 718 # Need to add a directory normally exported by libyuv.
603 include_dirs = [ "$rtc_libyuv_dir/include" ] 719 include_dirs = [ "$rtc_libyuv_dir/include" ]
604 } 720 }
605 } 721 }
606 } 722 }
607 } 723 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698