| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 "objc/Framework/Classes/helpers.mm", | 51 "objc/Framework/Classes/helpers.mm", |
| 52 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 52 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
| 53 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 53 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
| 54 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 54 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
| 55 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 55 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 56 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 56 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 57 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 57 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 58 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 58 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 59 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 59 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
| 60 ] | 60 ] |
| 61 |
| 62 if (is_mac || (is_ios && current_cpu == "arm64")) { |
| 63 sources += [ |
| 64 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
| 65 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
| 66 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
| 67 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
| 68 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
| 69 ] |
| 70 if (is_ios) { |
| 71 sources += [ |
| 72 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
| 73 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
| 74 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
| 75 ] |
| 76 } |
| 77 if (is_mac) { |
| 78 sources += [ "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m" ] |
| 79 } |
| 80 } |
| 81 |
| 61 if (is_ios) { | 82 if (is_ios) { |
| 62 sources += [ | 83 sources += [ |
| 63 "objc/Framework/Classes/RTCCameraPreviewView.m", | 84 "objc/Framework/Classes/RTCCameraPreviewView.m", |
| 64 "objc/Framework/Classes/RTCUIApplication.h", | 85 "objc/Framework/Classes/RTCUIApplication.h", |
| 65 "objc/Framework/Classes/RTCUIApplication.mm", | 86 "objc/Framework/Classes/RTCUIApplication.mm", |
| 66 "objc/Framework/Classes/UIDevice+RTCDevice.mm", | 87 "objc/Framework/Classes/UIDevice+RTCDevice.mm", |
| 67 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 88 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
| 68 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 89 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
| 69 ] | 90 ] |
| 70 if (current_cpu == "arm64") { | |
| 71 sources += [ | |
| 72 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", | |
| 73 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", | |
| 74 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", | |
| 75 ] | |
| 76 } | |
| 77 | 91 |
| 78 libs = [ "AVFoundation.framework" ] | 92 libs = [ "AVFoundation.framework" ] |
| 79 if (current_cpu == "arm64") { | 93 if (current_cpu == "arm64") { |
| 80 libs += [ | 94 libs += [ |
| 81 "CoreVideo.framework", | 95 "CoreVideo.framework", |
| 82 "Metal.framework", | 96 "Metal.framework", |
| 83 "MetalKit.framework", | 97 "MetalKit.framework", |
| 84 ] | 98 ] |
| 85 } | 99 } |
| 86 } | 100 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 libs = [ | 223 libs = [ |
| 210 "CoreGraphics.framework", | 224 "CoreGraphics.framework", |
| 211 "GLKit.framework", | 225 "GLKit.framework", |
| 212 "OpenGLES.framework", | 226 "OpenGLES.framework", |
| 213 "QuartzCore.framework", | 227 "QuartzCore.framework", |
| 214 ] | 228 ] |
| 215 } | 229 } |
| 216 | 230 |
| 217 if (is_mac) { | 231 if (is_mac) { |
| 218 sources += [ | 232 sources += [ |
| 219 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", | |
| 220 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", | |
| 221 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", | |
| 222 "objc/Framework/Classes/RTCNSGLVideoView.m", | 233 "objc/Framework/Classes/RTCNSGLVideoView.m", |
| 223 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | 234 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 224 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", | 235 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 225 ] | 236 ] |
| 226 libs = [ | 237 libs = [ |
| 227 "CoreVideo.framework", | 238 "CoreVideo.framework", |
| 228 "CoreMedia.framework", | 239 "CoreMedia.framework", |
| 229 "OpenGL.framework", | 240 "OpenGL.framework", |
| 230 "Metal.framework", | 241 "Metal.framework", |
| 231 "MetalKit.framework", | 242 "MetalKit.framework", |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 deps += [ "$rtc_libyuv_dir" ] | 444 deps += [ "$rtc_libyuv_dir" ] |
| 434 public_deps = [ | 445 public_deps = [ |
| 435 "$rtc_libyuv_dir", | 446 "$rtc_libyuv_dir", |
| 436 ] | 447 ] |
| 437 } else { | 448 } else { |
| 438 # Need to add a directory normally exported by libyuv. | 449 # Need to add a directory normally exported by libyuv. |
| 439 include_dirs = [ "$rtc_libyuv_dir/include" ] | 450 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 440 } | 451 } |
| 441 } | 452 } |
| 442 } | 453 } |
| OLD | NEW |