Index: webrtc/sdk/BUILD.gn |
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn |
index 3e44f9b4a33c4a3d569369e970f9a16056e8e707..2ef83d2a92cec0e28f55972bb5bbff3f831557e3 100644 |
--- a/webrtc/sdk/BUILD.gn |
+++ b/webrtc/sdk/BUILD.gn |
@@ -67,7 +67,22 @@ if (is_ios || is_mac) { |
"objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
"objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
] |
+ if (current_cpu == "arm64") { |
+ sources += [ |
+ "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
+ "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
+ "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
+ ] |
+ } |
+ |
libs = [ "AVFoundation.framework" ] |
+ if (current_cpu == "arm64") { |
+ libs += [ |
+ "CoreVideo.framework", |
+ "Metal.framework", |
+ "MetalKit.framework", |
+ ] |
+ } |
} |
if (!build_with_chromium) { |
sources += [ |
@@ -291,6 +306,7 @@ if (is_ios || is_mac) { |
"objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
"objc/Framework/Headers/WebRTC/RTCMetrics.h", |
"objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
+ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", |
"objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
"objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
"objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |