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

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

Issue 2995753002: Decoupling objc_videotoolbox from non Obj-C code (Closed)
Patch Set: Rebasing Created 3 years, 4 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 | no next file » | 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 699
700 if (!build_with_chromium && is_clang) { 700 if (!build_with_chromium && is_clang) {
701 # Suppress warnings from the Chromium Clang plugin 701 # Suppress warnings from the Chromium Clang plugin
702 # (bugs.webrtc.org/163). 702 # (bugs.webrtc.org/163).
703 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 703 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
704 } 704 }
705 705
706 libs = [ "CoreVideo.framework" ] 706 libs = [ "CoreVideo.framework" ]
707 } 707 }
708 708
709 rtc_static_library("video_toolbox_cc") {
710 visibility = [ ":*" ]
711 sources = [
712 "objc/Framework/Classes/VideoToolbox/helpers.cc",
713 "objc/Framework/Classes/VideoToolbox/helpers.h",
714 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc",
715 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h",
716 ]
717 deps = [
718 "../common_video",
719 "../modules:module_api",
720 "../modules/video_coding:webrtc_h264",
721 "../rtc_base:rtc_base_approved",
722 ]
723 if (!build_with_chromium && is_clang) {
724 # Suppress warnings from the Chromium Clang plugin
725 # (bugs.webrtc.org/163).
726 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
727 }
728 }
729
709 rtc_static_library("videotoolbox_objc") { 730 rtc_static_library("videotoolbox_objc") {
710 sources = [ 731 sources = [
711 "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm", 732 "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm",
712 "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm", 733 "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm",
713 "objc/Framework/Classes/VideoToolbox/helpers.cc",
714 "objc/Framework/Classes/VideoToolbox/helpers.h",
715 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc",
716 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h",
717 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h", 734 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h",
718 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm", 735 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm",
719 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.h", 736 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.h",
720 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm", 737 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm",
721 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", 738 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h",
722 ] 739 ]
723 740
724 configs += [ "..:common_objc" ] 741 configs += [ "..:common_objc" ]
725 742
726 deps = [ 743 deps = [
727 ":common_objc", 744 ":common_objc",
728 ":video_objc", 745 ":video_objc",
746 ":video_toolbox_cc",
729 ":videotracksource_objc", 747 ":videotracksource_objc",
730 "../api/video_codecs:video_codecs_api", 748 "../api/video_codecs:video_codecs_api",
731 "../common_video", 749 "../common_video",
732 "../media:rtc_media", 750 "../media:rtc_media",
733 "../media:rtc_media_base", 751 "../media:rtc_media_base",
734 "../modules:module_api", 752 "../modules:module_api",
735 "../modules/video_coding:video_coding_utility", 753 "../modules/video_coding:video_coding_utility",
736 "../modules/video_coding:webrtc_h264", 754 "../modules/video_coding:webrtc_h264",
737 "../rtc_base:rtc_base_approved", 755 "../rtc_base:rtc_base_approved",
738 "../system_wrappers", 756 "../system_wrappers",
(...skipping 17 matching lines...) Expand all
756 public_deps = [ 774 public_deps = [
757 "$rtc_libyuv_dir", 775 "$rtc_libyuv_dir",
758 ] 776 ]
759 } else { 777 } else {
760 # Need to add a directory normally exported by libyuv. 778 # Need to add a directory normally exported by libyuv.
761 include_dirs = [ "$rtc_libyuv_dir/include" ] 779 include_dirs = [ "$rtc_libyuv_dir/include" ]
762 } 780 }
763 } 781 }
764 } 782 }
765 } 783 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698