| 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("../build/webrtc.gni") |    9 import("../build/webrtc.gni") | 
|   10 if (is_mac) { |  | 
|   11   import("//build/config/mac/mac_sdk.gni") |  | 
|   12   import("//build/config/mac/rules.gni") |  | 
|   13 } |  | 
|   14 if (is_ios) { |   10 if (is_ios) { | 
|   15   import("//build/config/ios/rules.gni") |   11   import("//build/config/ios/rules.gni") | 
|   16 } |   12 } | 
|   17  |   13  | 
|   18 group("sdk") { |   14 group("sdk") { | 
|   19   if (is_ios || is_mac) { |   15   if (is_ios) { | 
|   20     public_deps = [ |   16     public_deps = [ | 
|   21       ":rtc_sdk_framework_objc", |   17       ":rtc_sdk_framework_objc", | 
|   22     ] |   18     ] | 
|   23   } |   19   } | 
|   24 } |   20 } | 
|   25  |   21  | 
|   26 if (is_ios || is_mac) { |   22 if (is_ios || is_mac) { | 
|   27   config("rtc_sdk_common_objc_config") { |   23   config("rtc_sdk_common_objc_config") { | 
|   28     include_dirs = [ |   24     include_dirs = [ | 
|   29       "objc/Framework/Classes", |   25       "objc/Framework/Classes", | 
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  224       "../api:libjingle_peerconnection", |  220       "../api:libjingle_peerconnection", | 
|  225     ] |  221     ] | 
|  226  |  222  | 
|  227     if (rtc_build_libyuv) { |  223     if (rtc_build_libyuv) { | 
|  228       deps += [ "$rtc_libyuv_dir" ] |  224       deps += [ "$rtc_libyuv_dir" ] | 
|  229       public_deps = [ |  225       public_deps = [ | 
|  230         "$rtc_libyuv_dir", |  226         "$rtc_libyuv_dir", | 
|  231       ] |  227       ] | 
|  232     } |  228     } | 
|  233   } |  229   } | 
|  234   common_objc_headers = [ |  | 
|  235     "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |  | 
|  236     "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |  | 
|  237     "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |  | 
|  238     "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |  | 
|  239     "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |  | 
|  240     "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |  | 
|  241     "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |  | 
|  242     "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |  | 
|  243     "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |  | 
|  244     "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |  | 
|  245     "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |  | 
|  246     "objc/Framework/Headers/WebRTC/RTCIceServer.h", |  | 
|  247     "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |  | 
|  248     "objc/Framework/Headers/WebRTC/RTCLogging.h", |  | 
|  249     "objc/Framework/Headers/WebRTC/RTCMacros.h", |  | 
|  250     "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |  | 
|  251     "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |  | 
|  252     "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |  | 
|  253     "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |  | 
|  254     "objc/Framework/Headers/WebRTC/RTCMetrics.h", |  | 
|  255     "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |  | 
|  256     "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |  | 
|  257     "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |  | 
|  258     "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |  | 
|  259     "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |  | 
|  260     "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |  | 
|  261     "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |  | 
|  262     "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |  | 
|  263     "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |  | 
|  264     "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |  | 
|  265     "objc/Framework/Headers/WebRTC/RTCTracing.h", |  | 
|  266     "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |  | 
|  267     "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |  | 
|  268     "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |  | 
|  269     "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |  | 
|  270     "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |  | 
|  271     "objc/Framework/Headers/WebRTC/WebRTC.h", |  | 
|  272   ] |  | 
|  273  |  230  | 
|  274   if (is_mac) { |  | 
|  275     mac_framework_bundle("rtc_sdk_framework_objc") { |  | 
|  276       info_plist = "objc/Framework/Info.plist" |  | 
|  277       output_name = "WebRTC" |  | 
|  278  |  | 
|  279       sources = common_objc_headers + |  | 
|  280                 [ "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h" ] |  | 
|  281  |  | 
|  282       if (!build_with_chromium) { |  | 
|  283         sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |  | 
|  284       } |  | 
|  285  |  | 
|  286       deps = [ |  | 
|  287         ":rtc_sdk_peerconnection_objc", |  | 
|  288         "../system_wrappers:field_trial_default", |  | 
|  289         "../system_wrappers:metrics_default", |  | 
|  290       ] |  | 
|  291  |  | 
|  292       libs = [ |  | 
|  293         "AVFoundation.framework", |  | 
|  294         "AudioToolbox.framework", |  | 
|  295         "CoreGraphics.framework", |  | 
|  296         "CoreMedia.framework", |  | 
|  297         "GLKit.framework", |  | 
|  298         "VideoToolbox.framework", |  | 
|  299       ] |  | 
|  300  |  | 
|  301       ldflags = [ "-all_load" ] |  | 
|  302  |  | 
|  303       configs += [ |  | 
|  304         "..:common_objc", |  | 
|  305         "//build/config/compiler:enable_arc", |  | 
|  306       ] |  | 
|  307  |  | 
|  308       public_configs = [ ":rtc_sdk_common_objc_config" ] |  | 
|  309  |  | 
|  310       if (!build_with_chromium && is_clang) { |  | 
|  311         # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) |  | 
|  312         configs -= [ "//build/config/clang:find_bad_constructs" ] |  | 
|  313       } |  | 
|  314     } |  | 
|  315   } |  | 
|  316   if (is_ios) { |  231   if (is_ios) { | 
|  317     ios_framework_bundle("rtc_sdk_framework_objc") { |  232     ios_framework_bundle("rtc_sdk_framework_objc") { | 
|  318       info_plist = "objc/Framework/Info.plist" |  233       info_plist = "objc/Framework/Info.plist" | 
|  319       output_name = "WebRTC" |  234       output_name = "WebRTC" | 
|  320  |  235  | 
 |  236       common_objc_headers = [ | 
 |  237         "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 
 |  238         "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 
 |  239         "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 
 |  240         "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 
 |  241         "objc/Framework/Headers/WebRTC/RTCConfiguration.h", | 
 |  242         "objc/Framework/Headers/WebRTC/RTCDataChannel.h", | 
 |  243         "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", | 
 |  244         "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 
 |  245         "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", | 
 |  246         "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 
 |  247         "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", | 
 |  248         "objc/Framework/Headers/WebRTC/RTCIceServer.h", | 
 |  249         "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", | 
 |  250         "objc/Framework/Headers/WebRTC/RTCLogging.h", | 
 |  251         "objc/Framework/Headers/WebRTC/RTCMacros.h", | 
 |  252         "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", | 
 |  253         "objc/Framework/Headers/WebRTC/RTCMediaSource.h", | 
 |  254         "objc/Framework/Headers/WebRTC/RTCMediaStream.h", | 
 |  255         "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", | 
 |  256         "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 
 |  257         "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 
 |  258         "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", | 
 |  259         "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", | 
 |  260         "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", | 
 |  261         "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", | 
 |  262         "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", | 
 |  263         "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", | 
 |  264         "objc/Framework/Headers/WebRTC/RTCRtpSender.h", | 
 |  265         "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 
 |  266         "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 
 |  267         "objc/Framework/Headers/WebRTC/RTCTracing.h", | 
 |  268         "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 
 |  269         "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 
 |  270         "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 
 |  271         "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 
 |  272         "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 
 |  273         "objc/Framework/Headers/WebRTC/WebRTC.h", | 
 |  274       ] | 
 |  275  | 
|  321       sources = common_objc_headers |  276       sources = common_objc_headers | 
|  322       public_headers = common_objc_headers |  277       public_headers = common_objc_headers | 
|  323  |  278  | 
|  324       if (!build_with_chromium) { |  279       if (!build_with_chromium) { | 
|  325         sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |  280         sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 
|  326         public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |  281         public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 
|  327       } |  282       } | 
|  328  |  283  | 
|  329       ldflags = [ "-all_load" ] |  284       ldflags = [ "-all_load" ] | 
|  330  |  285  | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  401       deps += [ "$rtc_libyuv_dir" ] |  356       deps += [ "$rtc_libyuv_dir" ] | 
|  402       public_deps = [ |  357       public_deps = [ | 
|  403         "$rtc_libyuv_dir", |  358         "$rtc_libyuv_dir", | 
|  404       ] |  359       ] | 
|  405     } else { |  360     } else { | 
|  406       # Need to add a directory normally exported by libyuv. |  361       # Need to add a directory normally exported by libyuv. | 
|  407       include_dirs = [ "$rtc_libyuv_dir/include" ] |  362       include_dirs = [ "$rtc_libyuv_dir/include" ] | 
|  408     } |  363     } | 
|  409   } |  364   } | 
|  410 } |  365 } | 
| OLD | NEW |