| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 libs = [ | 217 libs = [ |
| 204 "CoreGraphics.framework", | 218 "CoreGraphics.framework", |
| 205 "GLKit.framework", | 219 "GLKit.framework", |
| 206 "OpenGLES.framework", | 220 "OpenGLES.framework", |
| 207 "QuartzCore.framework", | 221 "QuartzCore.framework", |
| 208 ] | 222 ] |
| 209 } | 223 } |
| 210 | 224 |
| 211 if (is_mac) { | 225 if (is_mac) { |
| 212 sources += [ | 226 sources += [ |
| 213 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", | |
| 214 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", | |
| 215 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", | |
| 216 "objc/Framework/Classes/RTCNSGLVideoView.m", | 227 "objc/Framework/Classes/RTCNSGLVideoView.m", |
| 217 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | 228 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 218 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", | 229 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 219 ] | 230 ] |
| 220 libs = [ | 231 libs = [ |
| 221 "CoreVideo.framework", | 232 "CoreVideo.framework", |
| 222 "CoreMedia.framework", | 233 "CoreMedia.framework", |
| 223 "OpenGL.framework", | 234 "OpenGL.framework", |
| 224 "Metal.framework", | 235 "Metal.framework", |
| 225 "MetalKit.framework", | 236 "MetalKit.framework", |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 deps += [ "$rtc_libyuv_dir" ] | 437 deps += [ "$rtc_libyuv_dir" ] |
| 427 public_deps = [ | 438 public_deps = [ |
| 428 "$rtc_libyuv_dir", | 439 "$rtc_libyuv_dir", |
| 429 ] | 440 ] |
| 430 } else { | 441 } else { |
| 431 # Need to add a directory normally exported by libyuv. | 442 # Need to add a directory normally exported by libyuv. |
| 432 include_dirs = [ "$rtc_libyuv_dir/include" ] | 443 include_dirs = [ "$rtc_libyuv_dir/include" ] |
| 433 } | 444 } |
| 434 } | 445 } |
| 435 } | 446 } |
| OLD | NEW |