OLD | NEW |
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 deps = [ | 94 deps = [ |
95 ":objc_common", | 95 ":objc_common", |
96 "../base:rtc_base_approved", | 96 "../base:rtc_base_approved", |
97 ] | 97 ] |
98 | 98 |
99 if (is_clang) { | 99 if (is_clang) { |
100 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. | 100 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
101 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 101 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
102 } | 102 } |
103 } | 103 } |
| 104 |
104 rtc_static_library("objc_video") { | 105 rtc_static_library("objc_video") { |
| 106 defines = [ "HAVE_RTC_VIDEO" ] |
105 sources = [ | 107 sources = [ |
| 108 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Video.mm
", |
106 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", | 109 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", |
107 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", | 110 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", |
108 "objc/Framework/Classes/Video/RTCDefaultShader.h", | 111 "objc/Framework/Classes/Video/RTCDefaultShader.h", |
109 "objc/Framework/Classes/Video/RTCDefaultShader.mm", | 112 "objc/Framework/Classes/Video/RTCDefaultShader.mm", |
110 "objc/Framework/Classes/Video/RTCI420TextureCache.h", | 113 "objc/Framework/Classes/Video/RTCI420TextureCache.h", |
111 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", | 114 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", |
112 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", | 115 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", |
113 "objc/Framework/Classes/Video/RTCShader.h", | 116 "objc/Framework/Classes/Video/RTCShader.h", |
114 "objc/Framework/Classes/Video/RTCShader.mm", | 117 "objc/Framework/Classes/Video/RTCShader.mm", |
115 "objc/Framework/Classes/Video/avfoundationformatmapper.h", | 118 "objc/Framework/Classes/Video/avfoundationformatmapper.h", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 "../media:rtc_media_base", | 153 "../media:rtc_media_base", |
151 ] | 154 ] |
152 | 155 |
153 configs += [ "..:common_objc" ] | 156 configs += [ "..:common_objc" ] |
154 if (!build_with_chromium && is_clang) { | 157 if (!build_with_chromium && is_clang) { |
155 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. | 158 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
156 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 159 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
157 } | 160 } |
158 } | 161 } |
159 | 162 |
| 163 rtc_source_set("objc_null_video") { |
| 164 sources = [ |
| 165 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Video.mm
", |
| 166 ] |
| 167 |
| 168 public_configs = [ ":objc_common_config" ] |
| 169 |
| 170 if (!build_with_chromium && is_clang) { |
| 171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 173 } |
| 174 } |
| 175 |
160 rtc_static_library("objc_ui") { | 176 rtc_static_library("objc_ui") { |
161 if (is_ios) { | 177 if (is_ios) { |
162 sources = [ | 178 sources = [ |
163 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", | 179 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", |
164 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", | 180 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", |
165 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 181 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
166 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", | 182 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
167 ] | 183 ] |
168 } | 184 } |
169 if (is_mac) { | 185 if (is_mac) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 ] | 230 ] |
215 configs += [ "..:common_objc" ] | 231 configs += [ "..:common_objc" ] |
216 public_configs = [ ":objc_common_config" ] | 232 public_configs = [ ":objc_common_config" ] |
217 } | 233 } |
218 } | 234 } |
219 | 235 |
220 rtc_static_library("objc_peerconnection") { | 236 rtc_static_library("objc_peerconnection") { |
221 sources = [ | 237 sources = [ |
222 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat
e.h", | 238 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat
e.h", |
223 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", | 239 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", |
| 240 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", |
| 241 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", |
| 242 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", |
| 243 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", |
| 244 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", |
| 245 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", |
| 246 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", |
| 247 ] |
| 248 if (is_ios) { |
| 249 sources += [ |
| 250 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", |
| 251 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", |
| 252 ] |
| 253 } |
| 254 libs = [ "AVFoundation.framework" ] |
| 255 |
| 256 if (is_ios) { |
| 257 libs += [ "CoreGraphics.framework" ] |
| 258 } |
| 259 |
| 260 configs += [ "..:common_objc" ] |
| 261 |
| 262 public_configs = [ ":objc_common_config" ] |
| 263 |
| 264 if (!build_with_chromium && is_clang) { |
| 265 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 266 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 267 } |
| 268 |
| 269 deps = [ |
| 270 ":objc_common", |
| 271 ":objc_corevideoframebuffer", |
| 272 ":objc_media", |
| 273 ":objc_peerconnection_base", |
| 274 ":objc_video", |
| 275 "../api:video_frame_api", |
| 276 "../base:rtc_base", |
| 277 "../media:rtc_media_base", |
| 278 "../pc:create_pc_factory", |
| 279 "../pc:libjingle_peerconnection", |
| 280 ] |
| 281 |
| 282 if (rtc_use_metal_rendering) { |
| 283 deps += [ ":objc_metal" ] |
| 284 } |
| 285 |
| 286 if (rtc_build_libyuv) { |
| 287 deps += [ "$rtc_libyuv_dir" ] |
| 288 public_deps = [ |
| 289 "$rtc_libyuv_dir", |
| 290 ] |
| 291 } |
| 292 } |
| 293 |
| 294 rtc_static_library("objc_peerconnection_base") { |
| 295 sources = [ |
224 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", | 296 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", |
225 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", | 297 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", |
226 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", | 298 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", |
227 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", | 299 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", |
228 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", | |
229 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", | 300 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", |
230 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", | 301 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", |
231 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", | 302 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", |
232 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", | 303 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", |
233 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva
te.h", | 304 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva
te.h", |
234 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", | 305 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", |
235 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", | 306 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", |
236 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", | 307 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", |
237 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", | 308 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", |
238 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", | 309 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", |
239 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", | 310 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", |
240 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", | 311 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", |
241 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", | 312 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", |
242 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", | 313 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", |
243 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", | 314 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", |
244 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", | 315 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", |
245 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", | |
246 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", | |
247 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", | 316 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", |
248 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", | 317 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", |
249 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", | 318 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", |
250 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", | 319 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", |
251 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", | 320 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", |
252 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm"
, | 321 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm"
, |
253 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", | 322 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", |
254 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", | 323 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", |
255 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", | 324 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", |
256 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", | 325 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", |
(...skipping 11 matching lines...) Expand all Loading... |
268 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", | 337 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", |
269 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", | 338 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", |
270 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", | 339 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", |
271 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", | 340 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", |
272 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", | 341 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", |
273 "objc/Framework/Classes/PeerConnection/RTCVideoFrame+Private.h", | 342 "objc/Framework/Classes/PeerConnection/RTCVideoFrame+Private.h", |
274 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", | 343 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", |
275 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h
", | 344 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h
", |
276 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", | 345 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", |
277 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", | 346 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", |
278 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", | |
279 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", | |
280 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", | |
281 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", | |
282 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 347 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
283 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 348 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
284 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 349 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
285 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", | 350 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
286 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", | 351 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
287 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", | 352 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
288 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", | 353 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
289 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", | 354 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
290 "objc/Framework/Headers/WebRTC/RTCIceServer.h", | 355 "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
291 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", | 356 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
(...skipping 13 matching lines...) Expand all Loading... |
305 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 370 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
306 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 371 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
307 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 372 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
308 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", | 373 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
309 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 374 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
310 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 375 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
311 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 376 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
312 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 377 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
313 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", | 378 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
314 ] | 379 ] |
315 if (is_ios) { | |
316 sources += [ | |
317 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", | |
318 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", | |
319 ] | |
320 } | |
321 libs = [ "AVFoundation.framework" ] | |
322 | |
323 if (is_ios) { | |
324 libs += [ "CoreGraphics.framework" ] | |
325 } | |
326 | 380 |
327 configs += [ "..:common_objc" ] | 381 configs += [ "..:common_objc" ] |
328 | 382 |
329 public_configs = [ ":objc_common_config" ] | 383 public_configs = [ ":objc_common_config" ] |
330 | 384 |
331 if (!build_with_chromium && is_clang) { | 385 if (!build_with_chromium && is_clang) { |
332 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. | 386 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
333 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 387 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
334 } | 388 } |
335 | 389 |
336 deps = [ | 390 deps = [ |
337 ":objc_common", | 391 ":objc_common", |
338 ":objc_corevideoframebuffer", | 392 ":objc_corevideoframebuffer", |
339 ":objc_video", | |
340 "../api:video_frame_api", | 393 "../api:video_frame_api", |
341 "../base:rtc_base", | 394 "../base:rtc_base", |
342 "../media:rtc_media_base", | 395 "../media:rtc_media_base", |
343 "../pc:libjingle_peerconnection", | 396 "../pc:peerconnection", |
344 ] | 397 ] |
345 | |
346 if (rtc_use_metal_rendering) { | |
347 deps += [ ":objc_metal" ] | |
348 } | |
349 | |
350 if (rtc_build_libyuv) { | |
351 deps += [ "$rtc_libyuv_dir" ] | |
352 public_deps = [ | |
353 "$rtc_libyuv_dir", | |
354 ] | |
355 } | |
356 } | 398 } |
357 | 399 |
358 if (rtc_include_tests) { | 400 if (rtc_include_tests) { |
359 rtc_source_set("objc_sdk_unittests") { | 401 rtc_source_set("objc_sdk_unittests") { |
360 testonly = true | 402 testonly = true |
361 | 403 |
362 # Skip restricting visibility on mobile platforms since the tests on tho
se | 404 # Skip restricting visibility on mobile platforms since the tests on tho
se |
363 # gets additional generated targets which would require many lines here
to | 405 # gets additional generated targets which would require many lines here
to |
364 # cover (which would be confusing to read and hard to maintain). | 406 # cover (which would be confusing to read and hard to maintain). |
365 if (!is_android && !is_ios) { | 407 if (!is_android && !is_ios) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 ldflags = [ | 518 ldflags = [ |
477 "-all_load", | 519 "-all_load", |
478 "-install_name", | 520 "-install_name", |
479 "@rpath/$output_name.framework/$output_name", | 521 "@rpath/$output_name.framework/$output_name", |
480 ] | 522 ] |
481 | 523 |
482 deps = [ | 524 deps = [ |
483 ":objc_audio", | 525 ":objc_audio", |
484 ":objc_peerconnection", | 526 ":objc_peerconnection", |
485 ":objc_ui", | 527 ":objc_ui", |
| 528 ":objc_video", |
486 "../base:rtc_base_approved", | 529 "../base:rtc_base_approved", |
| 530 "../pc:create_pc_factory", |
487 "../system_wrappers:field_trial_default", | 531 "../system_wrappers:field_trial_default", |
488 "../system_wrappers:metrics_default", | 532 "../system_wrappers:metrics_default", |
489 ] | 533 ] |
490 | 534 |
491 libs = [ | 535 libs = [ |
492 "AVFoundation.framework", | 536 "AVFoundation.framework", |
493 "CoreGraphics.framework", | 537 "CoreGraphics.framework", |
494 "CoreMedia.framework", | 538 "CoreMedia.framework", |
495 "GLKit.framework", | 539 "GLKit.framework", |
496 ] | 540 ] |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 if (rtc_build_libyuv) { | 621 if (rtc_build_libyuv) { |
578 deps += [ "$rtc_libyuv_dir" ] | 622 deps += [ "$rtc_libyuv_dir" ] |
579 public_deps = [ | 623 public_deps = [ |
580 "$rtc_libyuv_dir", | 624 "$rtc_libyuv_dir", |
581 ] | 625 ] |
582 } else { | 626 } else { |
583 # Need to add a directory normally exported by libyuv. | 627 # Need to add a directory normally exported by libyuv. |
584 include_dirs = [ "$rtc_libyuv_dir/include" ] | 628 include_dirs = [ "$rtc_libyuv_dir/include" ] |
585 } | 629 } |
586 } | 630 } |
| 631 |
| 632 rtc_source_set("objc_media") { |
| 633 defines = [ |
| 634 "HAVE_RTC_AUDIO", |
| 635 "HAVE_RTC_VIDEO", |
| 636 ] |
| 637 sources = [ |
| 638 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Media.mm", |
| 639 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Media.mm
", |
| 640 ] |
| 641 |
| 642 public_configs = [ ":objc_common_config" ] |
| 643 |
| 644 if (!build_with_chromium && is_clang) { |
| 645 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 646 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 647 } |
| 648 |
| 649 public_deps = [ |
| 650 "../pc:create_pc_factory", |
| 651 ] |
| 652 } |
| 653 |
| 654 rtc_source_set("objc_null_media") { |
| 655 sources = [ |
| 656 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Media.mm", |
| 657 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Media.mm
", |
| 658 ] |
| 659 |
| 660 public_configs = [ ":objc_common_config" ] |
| 661 |
| 662 if (!build_with_chromium && is_clang) { |
| 663 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
| 664 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 665 } |
| 666 } |
| 667 |
| 668 rtc_static_library("objc_peerconnection_datachannelonly") { |
| 669 complete_static_lib = true |
| 670 public_deps = [ |
| 671 ":objc_null_media", |
| 672 ":objc_null_video", |
| 673 ":objc_peerconnection_base", |
| 674 "../system_wrappers:field_trial_default", |
| 675 "../system_wrappers:metrics_default", |
| 676 ] |
| 677 } |
587 } | 678 } |
588 } | 679 } |
OLD | NEW |