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

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

Issue 2966023002: Injectable Obj-C video codecs (Closed)
Patch Set: More granular iOS flag checks in header. 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
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 public_deps = [ 303 public_deps = [
304 "$rtc_libyuv_dir", 304 "$rtc_libyuv_dir",
305 ] 305 ]
306 } 306 }
307 } 307 }
308 308
309 rtc_static_library("objc_peerconnectionfactory") { 309 rtc_static_library("objc_peerconnectionfactory") {
310 sources = [ 310 sources = [
311 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", 311 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h",
312 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", 312 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
313 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm",
313 ] 314 ]
314 315
315 public_configs = [ ":objc_common_config" ] 316 public_configs = [ ":objc_common_config" ]
316 317
317 if (!build_with_chromium && is_clang) { 318 if (!build_with_chromium && is_clang) {
318 # Suppress warnings from the Chromium Clang plugin 319 # Suppress warnings from the Chromium Clang plugin
319 # (bugs.webrtc.org/163). 320 # (bugs.webrtc.org/163).
320 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 321 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
321 } 322 }
322 323
323 deps = [ 324 deps = [
324 ":objc_common", 325 ":objc_common",
325 ":objc_corevideoframebuffer", 326 ":objc_corevideoframebuffer",
326 ":objc_peerconnectionfactory_base", 327 ":objc_peerconnectionfactory_base",
327 ":objc_video", 328 ":objc_video",
328 ":objc_videotoolbox", 329 ":objc_videotoolbox",
330 ":objc_videotracksource",
329 "../api:video_frame_api", 331 "../api:video_frame_api",
330 "../base:rtc_base", 332 "../base:rtc_base",
331 "../media:rtc_media_base", 333 "../media:rtc_media_base",
332 "../pc:create_pc_factory", 334 "../pc:create_pc_factory",
333 "../pc:peerconnection", 335 "../pc:peerconnection",
336 "../system_wrappers:field_trial_api",
334 ] 337 ]
335 } 338 }
336 339
337 # Build the PeerConnectionFactory without audio/video support. 340 # Build the PeerConnectionFactory without audio/video support.
338 # This target depends on the objc_peeerconnectionfactory_base which still 341 # This target depends on the objc_peeerconnectionfactory_base which still
339 # includes some audio/video related objects such as RTCAudioSource because 342 # includes some audio/video related objects such as RTCAudioSource because
340 # these objects are just thin wrappers of native C++ interfaces required 343 # these objects are just thin wrappers of native C++ interfaces required
341 # when implementing webrtc::PeerConnectionFactoryInterface and 344 # when implementing webrtc::PeerConnectionFactoryInterface and
342 # webrtc::PeerConnectionInterface. 345 # webrtc::PeerConnectionInterface.
343 # The applications which only use WebRTC DataChannel can depend on this 346 # The applications which only use WebRTC DataChannel can depend on this
(...skipping 26 matching lines...) Expand all
370 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", 373 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h",
371 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", 374 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm",
372 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", 375 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h",
373 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", 376 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm",
374 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", 377 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h",
375 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", 378 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm",
376 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", 379 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h",
377 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", 380 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm",
378 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h", 381 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h",
379 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", 382 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm",
383 "objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm",
380 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", 384 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h",
381 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", 385 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm",
382 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", 386 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h",
383 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", 387 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm",
384 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", 388 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h",
385 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", 389 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm",
386 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", 390 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h",
387 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", 391 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm",
388 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", 392 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h",
389 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", 393 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm",
390 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", 394 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h",
391 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", 395 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm",
392 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", 396 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h",
393 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", 397 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm",
394 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", 398 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm",
395 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", 399 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h",
396 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", 400 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm",
397 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" , 401 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" ,
398 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", 402 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h",
399 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", 403 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm",
400 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", 404 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm",
401 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", 405 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h",
402 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", 406 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm",
403 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h", 407 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h",
404 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", 408 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm",
409 "objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm",
405 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", 410 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h",
406 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", 411 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm",
407 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", 412 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h",
408 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", 413 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm",
409 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", 414 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h",
410 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", 415 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm",
411 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", 416 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm",
412 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", 417 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h",
413 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", 418 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm",
414 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", 419 "objc/Framework/Classes/PeerConnection/RTCTracing.mm",
415 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", 420 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m",
421 "objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h",
422 "objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm",
416 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", 423 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm",
417 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ", 424 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ",
418 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", 425 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h",
419 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", 426 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm",
420 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", 427 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h",
421 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", 428 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm",
422 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", 429 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h",
423 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", 430 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm",
431 "objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.h",
432 "objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.mm",
433 "objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.h",
434 "objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.mm",
424 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 435 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
425 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 436 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
426 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 437 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
427 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 438 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
428 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 439 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
429 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 440 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
430 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", 441 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
431 "objc/Framework/Headers/WebRTC/RTCIceServer.h", 442 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
432 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", 443 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
433 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", 444 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
(...skipping 29 matching lines...) Expand all
463 # Suppress warnings from the Chromium Clang plugin 474 # Suppress warnings from the Chromium Clang plugin
464 # (bugs.webrtc.org/163). 475 # (bugs.webrtc.org/163).
465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 476 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
466 } 477 }
467 478
468 deps = [ 479 deps = [
469 ":objc_common", 480 ":objc_common",
470 ":objc_corevideoframebuffer", 481 ":objc_corevideoframebuffer",
471 ":objc_videotracksource", 482 ":objc_videotracksource",
472 "../api:video_frame_api", 483 "../api:video_frame_api",
484 "../api/video_codecs:video_codecs_api",
473 "../base:rtc_base", 485 "../base:rtc_base",
474 "../common_video", 486 "../common_video",
487 "../media:rtc_audio_video",
475 "../media:rtc_media_base", 488 "../media:rtc_media_base",
489 "../modules:module_api",
476 "../pc:peerconnection", 490 "../pc:peerconnection",
477 ] 491 ]
478 } 492 }
479 493
480 if (rtc_include_tests) { 494 if (rtc_include_tests) {
481 rtc_source_set("objc_sdk_unittests") { 495 rtc_source_set("objc_sdk_unittests") {
482 testonly = true 496 testonly = true
483 497
484 # Skip restricting visibility on mobile platforms since the tests on tho se 498 # Skip restricting visibility on mobile platforms since the tests on tho se
485 # gets additional generated targets which would require many lines here to 499 # gets additional generated targets which would require many lines here to
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 555 }
542 } 556 }
543 557
544 if (is_ios) { 558 if (is_ios) {
545 ios_framework_bundle("objc_framework") { 559 ios_framework_bundle("objc_framework") {
546 info_plist = "objc/Framework/Info.plist" 560 info_plist = "objc/Framework/Info.plist"
547 output_name = "WebRTC" 561 output_name = "WebRTC"
548 562
549 common_objc_headers = [ 563 common_objc_headers = [
550 "objc/Framework/Headers/WebRTC/RTCAudioSession.h", 564 "objc/Framework/Headers/WebRTC/RTCAudioSession.h",
565 "objc/Framework/Headers/WebRTC/RTCEncodedImage.h",
566 "objc/Framework/Headers/WebRTC/RTCRtpFragmentationHeader.h",
567 "objc/Framework/Headers/WebRTC/RTCVideoCodec.h",
568 "objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h",
551 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", 569 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
552 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", 570 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
553 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", 571 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
554 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", 572 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
555 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", 573 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h",
556 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", 574 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
557 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", 575 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
558 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", 576 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
559 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", 577 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
560 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", 578 "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
(...skipping 21 matching lines...) Expand all
582 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", 600 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
583 "objc/Framework/Headers/WebRTC/RTCTracing.h", 601 "objc/Framework/Headers/WebRTC/RTCTracing.h",
584 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", 602 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h",
585 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", 603 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
586 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", 604 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
587 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", 605 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
588 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", 606 "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
589 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", 607 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
590 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", 608 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h",
591 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", 609 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
610 "objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h",
592 "objc/Framework/Headers/WebRTC/WebRTC.h", 611 "objc/Framework/Headers/WebRTC/WebRTC.h",
593 ] 612 ]
594 if (rtc_use_metal_rendering) { 613 if (rtc_use_metal_rendering) {
595 common_objc_headers += 614 common_objc_headers +=
596 [ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h" ] 615 [ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h" ]
597 } 616 }
598 sources = common_objc_headers 617 sources = common_objc_headers
599 public_headers = common_objc_headers 618 public_headers = common_objc_headers
600 619
601 if (!build_with_chromium) { 620 if (!build_with_chromium) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 public_deps = [ 733 public_deps = [
715 "$rtc_libyuv_dir", 734 "$rtc_libyuv_dir",
716 ] 735 ]
717 } else { 736 } else {
718 # Need to add a directory normally exported by libyuv. 737 # Need to add a directory normally exported by libyuv.
719 include_dirs = [ "$rtc_libyuv_dir/include" ] 738 include_dirs = [ "$rtc_libyuv_dir/include" ]
720 } 739 }
721 } 740 }
722 } 741 }
723 } 742 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698