| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 "objc/Framework/Classes/helpers.mm", | 43 "objc/Framework/Classes/helpers.mm", |
| 44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 46 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 46 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 47 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 47 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 51 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 51 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
| 52 ] | 52 ] |
| 53 |
| 53 deps = [ | 54 deps = [ |
| 54 "../base:rtc_base", | 55 "../base:rtc_base", |
| 55 ] | 56 ] |
| 56 configs += [ "..:common_objc" ] | 57 configs += [ "..:common_objc" ] |
| 57 | 58 |
| 58 public_configs = [ ":rtc_sdk_common_objc_config" ] | 59 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 60 |
| 59 if (is_ios) { | 61 if (is_ios) { |
| 60 sources += [ | 62 sources += [ |
| 61 "objc/Framework/Classes/RTCCameraPreviewView.m", | 63 "objc/Framework/Classes/RTCCameraPreviewView.m", |
| 62 "objc/Framework/Classes/RTCUIApplication.h", | 64 "objc/Framework/Classes/RTCUIApplication.h", |
| 63 "objc/Framework/Classes/RTCUIApplication.mm", | 65 "objc/Framework/Classes/RTCUIApplication.mm", |
| 64 "objc/Framework/Classes/UIDevice+RTCDevice.mm", | 66 "objc/Framework/Classes/UIDevice+RTCDevice.mm", |
| 65 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 67 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 66 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 68 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
| 67 ] | 69 ] |
| 68 if (current_cpu == "arm64") { | 70 } |
| 71 |
| 72 if (is_mac || (is_ios && current_cpu == "arm64")) { |
| 73 sources += [ |
| 74 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
| 75 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
| 76 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
| 77 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
| 78 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
| 79 ] |
| 80 deps += [ "../api:video_frame_api" ] |
| 81 |
| 82 if (is_ios) { |
| 69 sources += [ | 83 sources += [ |
| 70 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", | 84 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
| 71 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", | 85 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
| 72 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", | 86 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
| 73 ] | 87 ] |
| 74 deps += [ "../api:video_frame_api" ] | |
| 75 } | 88 } |
| 89 if (is_mac) { |
| 90 sources += [ "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m" ] |
| 91 } |
| 92 } |
| 76 | 93 |
| 77 libs = [ "AVFoundation.framework" ] | 94 libs = [ "AVFoundation.framework" ] |
| 78 if (current_cpu == "arm64") { | 95 if (is_mac || (is_ios && current_cpu == "arm64")) { |
| 79 libs += [ | 96 libs += [ |
| 80 "CoreVideo.framework", | 97 "CoreVideo.framework", |
| 81 "Metal.framework", | 98 "Metal.framework", |
| 82 "MetalKit.framework", | 99 "MetalKit.framework", |
| 83 ] | 100 ] |
| 84 } | |
| 85 } | 101 } |
| 86 if (!build_with_chromium) { | 102 if (!build_with_chromium) { |
| 87 sources += [ | 103 sources += [ |
| 88 "objc/Framework/Classes/RTCFileLogger.mm", | 104 "objc/Framework/Classes/RTCFileLogger.mm", |
| 89 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", | 105 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
| 90 ] | 106 ] |
| 91 } | 107 } |
| 92 } | 108 } |
| 93 | 109 |
| 94 rtc_static_library("rtc_sdk_peerconnection_objc") { | 110 rtc_static_library("rtc_sdk_peerconnection_objc") { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 libs = [ | 233 libs = [ |
| 218 "CoreGraphics.framework", | 234 "CoreGraphics.framework", |
| 219 "GLKit.framework", | 235 "GLKit.framework", |
| 220 "OpenGLES.framework", | 236 "OpenGLES.framework", |
| 221 "QuartzCore.framework", | 237 "QuartzCore.framework", |
| 222 ] | 238 ] |
| 223 } | 239 } |
| 224 | 240 |
| 225 if (is_mac) { | 241 if (is_mac) { |
| 226 sources += [ | 242 sources += [ |
| 227 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", | |
| 228 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", | |
| 229 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", | |
| 230 "objc/Framework/Classes/RTCNSGLVideoView.m", | 243 "objc/Framework/Classes/RTCNSGLVideoView.m", |
| 231 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | 244 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 232 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", | 245 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 233 ] | 246 ] |
| 234 libs = [ | 247 libs = [ |
| 235 "CoreVideo.framework", | 248 "CoreVideo.framework", |
| 236 "CoreMedia.framework", | 249 "CoreMedia.framework", |
| 237 "OpenGL.framework", | 250 "OpenGL.framework", |
| 238 "Metal.framework", | 251 "Metal.framework", |
| 239 "MetalKit.framework", | 252 "MetalKit.framework", |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 deps += [ "$rtc_libyuv_dir" ] | 462 deps += [ "$rtc_libyuv_dir" ] |
| 450 public_deps = [ | 463 public_deps = [ |
| 451 "$rtc_libyuv_dir", | 464 "$rtc_libyuv_dir", |
| 452 ] | 465 ] |
| 453 } else { | 466 } else { |
| 454 # Need to add a directory normally exported by libyuv. | 467 # Need to add a directory normally exported by libyuv. |
| 455 include_dirs = [ "$rtc_libyuv_dir/include" ] | 468 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 456 } | 469 } |
| 457 } | 470 } |
| 458 } | 471 } |
| OLD | NEW |