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) { |
11 import("//build/config/ios/rules.gni") | 11 import("//build/config/ios/rules.gni") |
12 } | 12 } |
13 | 13 |
14 declare_args() { | |
15 # Determine whether or not to include metal rendering | |
16 rtc_use_metal_rendering = is_mac || (is_ios && current_cpu == "arm64") | |
17 } | |
18 | |
19 group("sdk") { | 14 group("sdk") { |
20 if (is_ios) { | 15 if (is_ios) { |
21 public_deps = [ | 16 public_deps = [ |
22 ":objc_framework", | 17 ":rtc_sdk_framework_objc", |
23 ] | 18 ] |
24 } | 19 } |
25 } | 20 } |
26 | 21 |
27 if (is_ios || is_mac) { | 22 if (is_ios || is_mac) { |
28 config("objc_common_config") { | 23 config("rtc_sdk_common_objc_config") { |
29 include_dirs = [ | 24 include_dirs = [ |
30 "objc/Framework/Classes", | 25 "objc/Framework/Classes", |
31 "objc/Framework/Classes/Audio", | |
32 "objc/Framework/Classes/Common", | |
33 "objc/Framework/Classes/Metal", | |
34 "objc/Framework/Classes/PeerConnection", | |
35 "objc/Framework/Classes/UI", | |
36 "objc/Framework/Classes/Video", | |
37 "objc/Framework/Classes/VideoToolbox", | |
38 "objc/Framework/Headers", | 26 "objc/Framework/Headers", |
39 ] | 27 ] |
40 } | 28 } |
41 | 29 |
42 rtc_static_library("objc_common") { | 30 rtc_static_library("rtc_sdk_common_objc") { |
43 sources = [ | 31 sources = [ |
44 "objc/Framework/Classes/Common/NSString+StdString.h", | 32 "objc/Framework/Classes/NSString+StdString.h", |
45 "objc/Framework/Classes/Common/NSString+StdString.mm", | 33 "objc/Framework/Classes/NSString+StdString.mm", |
46 "objc/Framework/Classes/Common/RTCDispatcher+Private.h", | 34 "objc/Framework/Classes/RTCDispatcher.m", |
47 "objc/Framework/Classes/Common/RTCDispatcher.m", | 35 "objc/Framework/Classes/RTCFieldTrials.mm", |
48 "objc/Framework/Classes/Common/RTCFieldTrials.mm", | 36 "objc/Framework/Classes/RTCLogging.mm", |
49 "objc/Framework/Classes/Common/RTCLogging.mm", | 37 "objc/Framework/Classes/RTCMetrics.mm", |
50 "objc/Framework/Classes/Common/RTCUIApplication.h", | 38 "objc/Framework/Classes/RTCMetricsSampleInfo+Private.h", |
51 "objc/Framework/Classes/Common/RTCUIApplication.mm", | 39 "objc/Framework/Classes/RTCMetricsSampleInfo.mm", |
52 "objc/Framework/Classes/Common/helpers.h", | 40 "objc/Framework/Classes/RTCSSLAdapter.mm", |
53 "objc/Framework/Classes/Common/helpers.mm", | 41 "objc/Framework/Classes/RTCTracing.mm", |
| 42 "objc/Framework/Classes/helpers.h", |
| 43 "objc/Framework/Classes/helpers.mm", |
54 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 44 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
55 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 45 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
56 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 46 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
57 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 47 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
| 48 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
| 49 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 50 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
| 51 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
58 ] | 52 ] |
59 | 53 |
60 deps = [ | 54 deps = [ |
61 "../base:rtc_base", | 55 "../base:rtc_base", |
62 ] | 56 ] |
63 configs += [ "..:common_objc" ] | 57 configs += [ "..:common_objc" ] |
64 | 58 |
65 public_configs = [ ":objc_common_config" ] | 59 public_configs = [ ":rtc_sdk_common_objc_config" ] |
66 | 60 |
67 if (is_ios) { | 61 if (is_ios) { |
68 sources += [ | 62 sources += [ |
69 "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm", | 63 "objc/Framework/Classes/RTCCameraPreviewView.m", |
| 64 "objc/Framework/Classes/RTCUIApplication.h", |
| 65 "objc/Framework/Classes/RTCUIApplication.mm", |
| 66 "objc/Framework/Classes/UIDevice+RTCDevice.mm", |
| 67 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
70 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 68 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
71 ] | 69 ] |
72 } | 70 } |
73 | 71 |
74 if (!build_with_chromium) { | 72 if (is_mac || (is_ios && current_cpu == "arm64")) { |
75 sources += [ | 73 sources += [ |
76 "objc/Framework/Classes/Common/RTCFileLogger.mm", | |
77 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", | |
78 ] | |
79 } | |
80 } | |
81 | |
82 rtc_static_library("objc_video") { | |
83 sources = [ | |
84 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", | |
85 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", | |
86 "objc/Framework/Classes/Video/RTCI420Shader.mm", | |
87 "objc/Framework/Classes/Video/RTCI420TextureCache.h", | |
88 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", | |
89 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", | |
90 "objc/Framework/Classes/Video/RTCShader+Private.h", | |
91 "objc/Framework/Classes/Video/RTCShader.h", | |
92 "objc/Framework/Classes/Video/RTCShader.mm", | |
93 "objc/Framework/Classes/Video/avfoundationformatmapper.h", | |
94 "objc/Framework/Classes/Video/avfoundationformatmapper.mm", | |
95 "objc/Framework/Classes/Video/avfoundationvideocapturer.h", | |
96 "objc/Framework/Classes/Video/avfoundationvideocapturer.mm", | |
97 "objc/Framework/Classes/Video/objcvideotracksource.h", | |
98 "objc/Framework/Classes/Video/objcvideotracksource.mm", | |
99 ] | |
100 libs = [] | |
101 if (is_ios) { | |
102 sources += [ | |
103 "objc/Framework/Classes/Video/RTCNV12TextureCache.h", | |
104 "objc/Framework/Classes/Video/RTCNV12TextureCache.m", | |
105 "objc/Framework/Classes/Video/RTCNativeNV12Shader.mm", | |
106 ] | |
107 libs += [ | |
108 "GLKit.framework", | |
109 "OpenGLES.framework", | |
110 "QuartzCore.framework", | |
111 ] | |
112 } else if (is_mac) { | |
113 sources += [] | |
114 | |
115 libs += [ | |
116 "CoreMedia.framework", | |
117 "CoreVideo.framework", | |
118 "OpenGL.framework", | |
119 ] | |
120 } | |
121 | |
122 deps = [ | |
123 ":objc_common", | |
124 ":objc_corevideoframebuffer", | |
125 ":objc_videotoolbox", | |
126 "//webrtc/api:libjingle_peerconnection_api", | |
127 "//webrtc/base:rtc_base", | |
128 "//webrtc/common_video", | |
129 "//webrtc/media:rtc_media_base", | |
130 ] | |
131 | |
132 configs += [ "..:common_objc" ] | |
133 if (!build_with_chromium && is_clang) { | |
134 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
135 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
136 } | |
137 } | |
138 | |
139 rtc_static_library("objc_ui") { | |
140 if (is_ios) { | |
141 sources = [ | |
142 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", | |
143 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", | |
144 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | |
145 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", | |
146 ] | |
147 } | |
148 if (is_mac) { | |
149 sources = [ | |
150 "objc/Framework/Classes/UI/RTCNSGLVideoView.m", | |
151 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", | |
152 ] | |
153 } | |
154 configs += [ "..:common_objc" ] | |
155 deps = [ | |
156 ":objc_common", | |
157 ] | |
158 } | |
159 | |
160 if (rtc_use_metal_rendering) { | |
161 rtc_static_library("objc_metal") { | |
162 sources = [ | |
163 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", | 74 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
164 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", | 75 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
165 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", | 76 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
166 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", | 77 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
167 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", | 78 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
168 ] | 79 ] |
| 80 deps += [ "../api:video_frame_api" ] |
| 81 |
169 if (is_ios) { | 82 if (is_ios) { |
170 sources += [ | 83 sources += [ |
171 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", | 84 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
172 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", | 85 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
173 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", | 86 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
174 "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", | |
175 ] | 87 ] |
176 } | 88 } |
177 if (is_mac) { | 89 if (is_mac) { |
178 sources += [ | 90 sources += [ "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m" ] |
179 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", | |
180 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | |
181 ] | |
182 } | 91 } |
183 libs = [ | 92 } |
| 93 |
| 94 libs = [ "AVFoundation.framework" ] |
| 95 if (is_mac || (is_ios && current_cpu == "arm64")) { |
| 96 libs += [ |
184 "CoreVideo.framework", | 97 "CoreVideo.framework", |
185 "Metal.framework", | 98 "Metal.framework", |
186 "MetalKit.framework", | 99 "MetalKit.framework", |
187 ] | 100 ] |
188 deps = [ | 101 } |
189 ":objc_video", | 102 if (!build_with_chromium) { |
190 "//webrtc/api:video_frame_api", | 103 sources += [ |
191 "//webrtc/base:rtc_base_approved", | 104 "objc/Framework/Classes/RTCFileLogger.mm", |
| 105 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
192 ] | 106 ] |
193 configs += [ "..:common_objc" ] | |
194 public_configs = [ ":objc_common_config" ] | |
195 } | 107 } |
196 } | 108 } |
197 | 109 |
198 rtc_static_library("objc_peerconnection") { | 110 rtc_static_library("rtc_sdk_peerconnection_objc") { |
199 sources = [ | 111 sources = [ |
200 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Private.
h", | 112 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
201 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", | 113 "objc/Framework/Classes/RTCAVFoundationVideoCapturerInternal.h", |
202 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", | 114 "objc/Framework/Classes/RTCAVFoundationVideoCapturerInternal.mm", |
203 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", | 115 "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h", |
204 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", | 116 "objc/Framework/Classes/RTCAVFoundationVideoSource.mm", |
205 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", | 117 "objc/Framework/Classes/RTCAudioSource+Private.h", |
206 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", | 118 "objc/Framework/Classes/RTCAudioSource.mm", |
207 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", | 119 "objc/Framework/Classes/RTCAudioTrack+Private.h", |
208 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", | 120 "objc/Framework/Classes/RTCAudioTrack.mm", |
209 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", | 121 "objc/Framework/Classes/RTCCameraVideoCapturer.m", |
210 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", | 122 "objc/Framework/Classes/RTCConfiguration+Private.h", |
211 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Private
.h", | 123 "objc/Framework/Classes/RTCConfiguration.mm", |
212 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", | 124 "objc/Framework/Classes/RTCDataChannel+Private.h", |
213 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", | 125 "objc/Framework/Classes/RTCDataChannel.mm", |
214 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", | 126 "objc/Framework/Classes/RTCDataChannelConfiguration+Private.h", |
215 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", | 127 "objc/Framework/Classes/RTCDataChannelConfiguration.mm", |
216 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", | 128 "objc/Framework/Classes/RTCI420Shader.mm", |
217 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", | 129 "objc/Framework/Classes/RTCI420TextureCache.h", |
218 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", | 130 "objc/Framework/Classes/RTCI420TextureCache.mm", |
219 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", | 131 "objc/Framework/Classes/RTCIceCandidate+Private.h", |
220 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", | 132 "objc/Framework/Classes/RTCIceCandidate.mm", |
221 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", | 133 "objc/Framework/Classes/RTCIceServer+Private.h", |
222 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", | 134 "objc/Framework/Classes/RTCIceServer.mm", |
223 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", | 135 "objc/Framework/Classes/RTCLegacyStatsReport+Private.h", |
224 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", | 136 "objc/Framework/Classes/RTCLegacyStatsReport.mm", |
225 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", | 137 "objc/Framework/Classes/RTCMediaConstraints+Private.h", |
226 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", | 138 "objc/Framework/Classes/RTCMediaConstraints.mm", |
227 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", | 139 "objc/Framework/Classes/RTCMediaSource+Private.h", |
228 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", | 140 "objc/Framework/Classes/RTCMediaSource.mm", |
229 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", | 141 "objc/Framework/Classes/RTCMediaStream+Private.h", |
230 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm", | 142 "objc/Framework/Classes/RTCMediaStream.mm", |
231 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", | 143 "objc/Framework/Classes/RTCMediaStreamTrack+Private.h", |
232 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", | 144 "objc/Framework/Classes/RTCMediaStreamTrack.mm", |
233 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", | 145 "objc/Framework/Classes/RTCOpenGLDefines.h", |
234 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h"
, | 146 "objc/Framework/Classes/RTCPeerConnection+DataChannel.mm", |
235 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | 147 "objc/Framework/Classes/RTCPeerConnection+Private.h", |
236 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", | 148 "objc/Framework/Classes/RTCPeerConnection+Stats.mm", |
237 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", | 149 "objc/Framework/Classes/RTCPeerConnection.mm", |
238 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private.h"
, | 150 "objc/Framework/Classes/RTCPeerConnectionFactory+Private.h", |
239 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", | 151 "objc/Framework/Classes/RTCPeerConnectionFactory.mm", |
240 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", | 152 "objc/Framework/Classes/RTCRtpCodecParameters+Private.h", |
241 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", | 153 "objc/Framework/Classes/RTCRtpCodecParameters.mm", |
242 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", | 154 "objc/Framework/Classes/RTCRtpEncodingParameters+Private.h", |
243 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", | 155 "objc/Framework/Classes/RTCRtpEncodingParameters.mm", |
244 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", | 156 "objc/Framework/Classes/RTCRtpParameters+Private.h", |
245 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", | 157 "objc/Framework/Classes/RTCRtpParameters.mm", |
246 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", | 158 "objc/Framework/Classes/RTCRtpReceiver+Private.h", |
247 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", | 159 "objc/Framework/Classes/RTCRtpReceiver.mm", |
248 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", | 160 "objc/Framework/Classes/RTCRtpSender+Private.h", |
249 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", | 161 "objc/Framework/Classes/RTCRtpSender.mm", |
250 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", | 162 "objc/Framework/Classes/RTCSessionDescription+Private.h", |
251 "objc/Framework/Classes/PeerConnection/RTCVideoFrame+Private.h", | 163 "objc/Framework/Classes/RTCSessionDescription.mm", |
252 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", | 164 "objc/Framework/Classes/RTCShader+Private.h", |
253 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h", | 165 "objc/Framework/Classes/RTCShader.h", |
254 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", | 166 "objc/Framework/Classes/RTCShader.mm", |
255 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", | 167 "objc/Framework/Classes/RTCVideoCapturer.m", |
256 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", | 168 "objc/Framework/Classes/RTCVideoFrame+Private.h", |
257 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", | 169 "objc/Framework/Classes/RTCVideoFrame.mm", |
258 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", | 170 "objc/Framework/Classes/RTCVideoRendererAdapter+Private.h", |
259 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", | 171 "objc/Framework/Classes/RTCVideoRendererAdapter.h", |
| 172 "objc/Framework/Classes/RTCVideoRendererAdapter.mm", |
| 173 "objc/Framework/Classes/RTCVideoSource+Private.h", |
| 174 "objc/Framework/Classes/RTCVideoSource.mm", |
| 175 "objc/Framework/Classes/RTCVideoTrack+Private.h", |
| 176 "objc/Framework/Classes/RTCVideoTrack.mm", |
| 177 "objc/Framework/Classes/avfoundationformatmapper.h", |
| 178 "objc/Framework/Classes/avfoundationformatmapper.mm", |
| 179 "objc/Framework/Classes/avfoundationvideocapturer.h", |
| 180 "objc/Framework/Classes/avfoundationvideocapturer.mm", |
| 181 "objc/Framework/Classes/objcvideotracksource.h", |
| 182 "objc/Framework/Classes/objcvideotracksource.mm", |
| 183 "objc/Framework/Classes/videotoolboxvideocodecfactory.cc", |
| 184 "objc/Framework/Classes/videotoolboxvideocodecfactory.h", |
260 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 185 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
261 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 186 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
262 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 187 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
263 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", | 188 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
264 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", | 189 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
265 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", | 190 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
266 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", | 191 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
267 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", | 192 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
268 "objc/Framework/Headers/WebRTC/RTCIceServer.h", | 193 "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
269 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", | 194 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
270 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", | 195 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
271 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", | 196 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
272 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", | 197 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
273 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", | 198 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
274 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | |
275 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | |
276 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", | 199 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
277 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", | 200 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
278 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", | 201 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
279 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", | 202 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
280 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", | 203 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
281 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", | 204 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
282 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", | 205 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
283 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | |
284 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 206 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
285 "objc/Framework/Headers/WebRTC/RTCTracing.h", | |
286 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", | 207 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
287 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 208 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
288 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 209 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
289 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 210 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
290 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 211 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
291 ] | 212 ] |
292 | 213 |
293 libs = [ "AVFoundation.framework" ] | 214 deps = [ |
| 215 ":rtc_sdk_corevideoframebuffer", |
| 216 ":webrtc_h264_video_toolbox", |
| 217 "../api:video_frame_api", |
| 218 "../base:rtc_base", |
| 219 "../base:rtc_base_approved", |
| 220 "../common_video", |
| 221 "../media:rtc_media", |
| 222 "../media:rtc_media_base", |
| 223 "../system_wrappers", |
| 224 ] |
294 | 225 |
295 if (is_ios) { | 226 if (is_ios) { |
296 libs += [ "CoreGraphics.framework" ] | 227 sources += [ |
| 228 "objc/Framework/Classes/RTCEAGLVideoView.m", |
| 229 "objc/Framework/Classes/RTCNV12TextureCache.h", |
| 230 "objc/Framework/Classes/RTCNV12TextureCache.m", |
| 231 "objc/Framework/Classes/RTCNativeNV12Shader.mm", |
| 232 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
| 233 ] |
| 234 libs = [ |
| 235 "CoreGraphics.framework", |
| 236 "GLKit.framework", |
| 237 "OpenGLES.framework", |
| 238 "QuartzCore.framework", |
| 239 ] |
| 240 } |
| 241 |
| 242 if (is_mac) { |
| 243 sources += [ |
| 244 "objc/Framework/Classes/RTCNSGLVideoView.m", |
| 245 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
| 246 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
| 247 ] |
| 248 libs = [ |
| 249 "CoreVideo.framework", |
| 250 "CoreMedia.framework", |
| 251 "OpenGL.framework", |
| 252 "Metal.framework", |
| 253 "MetalKit.framework", |
| 254 ] |
297 } | 255 } |
298 | 256 |
299 configs += [ "..:common_objc" ] | 257 configs += [ "..:common_objc" ] |
300 | 258 |
301 public_configs = [ ":objc_common_config" ] | 259 public_configs = [ ":rtc_sdk_common_objc_config" ] |
302 | 260 |
303 if (!build_with_chromium && is_clang) { | 261 if (!build_with_chromium && is_clang) { |
304 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 262 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
305 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
306 } | 264 } |
307 | 265 |
308 deps = [ | 266 libs += [ "AVFoundation.framework" ] |
309 ":objc_common", | 267 |
310 ":objc_corevideoframebuffer", | 268 deps += [ |
311 ":objc_ui", | 269 ":rtc_sdk_common_objc", |
312 ":objc_video", | |
313 "../pc:libjingle_peerconnection", | 270 "../pc:libjingle_peerconnection", |
314 "//webrtc/api:video_frame_api", | |
315 "//webrtc/base:rtc_base", | |
316 "//webrtc/media:rtc_media_base", | |
317 ] | 271 ] |
318 | 272 |
319 if (rtc_use_metal_rendering) { | |
320 deps += [ ":objc_metal" ] | |
321 } | |
322 | |
323 if (rtc_build_libyuv) { | 273 if (rtc_build_libyuv) { |
324 deps += [ "$rtc_libyuv_dir" ] | 274 deps += [ "$rtc_libyuv_dir" ] |
325 public_deps = [ | 275 public_deps = [ |
326 "$rtc_libyuv_dir", | 276 "$rtc_libyuv_dir", |
327 ] | 277 ] |
328 } | 278 } |
329 } | 279 } |
330 | 280 |
331 if (rtc_include_tests) { | 281 if (rtc_include_tests) { |
332 rtc_source_set("objc_sdk_unittests") { | 282 rtc_source_set("rtc_sdk_peerconnection_objc_unittests") { |
333 testonly = true | 283 testonly = true |
334 | 284 |
335 # Skip restricting visibility on mobile platforms since the tests on those | 285 # Skip restricting visibility on mobile platforms since the tests on those |
336 # gets additional generated targets which would require many lines here to | 286 # gets additional generated targets which would require many lines here to |
337 # cover (which would be confusing to read and hard to maintain). | 287 # cover (which would be confusing to read and hard to maintain). |
338 if (!is_android && !is_ios) { | 288 if (!is_android && !is_ios) { |
339 visibility = [ "//webrtc:rtc_unittests" ] | 289 visibility = [ "//webrtc:rtc_unittests" ] |
340 } | 290 } |
341 sources = [ | 291 sources = [ |
342 "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm", | 292 "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm", |
343 "objc/Framework/UnitTests/RTCConfigurationTest.mm", | 293 "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
344 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", | 294 "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm", |
345 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", | 295 "objc/Framework/UnitTests/RTCIceCandidateTest.mm", |
346 "objc/Framework/UnitTests/RTCIceServerTest.mm", | 296 "objc/Framework/UnitTests/RTCIceServerTest.mm", |
347 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", | 297 "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm", |
348 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", | 298 "objc/Framework/UnitTests/RTCPeerConnectionTest.mm", |
349 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", | 299 "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm", |
350 "objc/Framework/UnitTests/avformatmappertests.mm", | 300 "objc/Framework/UnitTests/avformatmappertests.mm", |
351 ] | 301 ] |
| 302 if (is_ios) { |
| 303 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] |
| 304 if (current_cpu != "arm64") { |
| 305 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] |
| 306 } |
| 307 } |
| 308 |
| 309 # TODO(tkchin): Cleanup this warning. |
| 310 cflags = [ "-Wno-objc-property-no-attribute" ] |
352 | 311 |
353 # |-ObjC| flag needed to make sure category method implementations | 312 # |-ObjC| flag needed to make sure category method implementations |
354 # are included: | 313 # are included: |
355 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | 314 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
356 ldflags = [ "-ObjC" ] | 315 ldflags = [ "-ObjC" ] |
357 | 316 |
358 defines = [ "GTEST_RELATIVE_PATH" ] | 317 defines = [ "GTEST_RELATIVE_PATH" ] |
359 deps = [ | 318 deps = [ |
360 ":objc_peerconnection", | 319 ":rtc_sdk_peerconnection_objc", |
361 "..//system_wrappers:system_wrappers_default", | |
362 "../base:rtc_base_tests_utils", | 320 "../base:rtc_base_tests_utils", |
363 "//third_party/ocmock", | 321 "//third_party/ocmock", |
364 "//webrtc/system_wrappers:system_wrappers_default", | 322 "//webrtc/system_wrappers:system_wrappers_default", |
365 ] | 323 ] |
366 | 324 |
367 # RTCMTLVideoView not supported on 32-bit arm | |
368 if (is_ios && current_cpu != "arm") { | |
369 sources += [ "objc/Framework/UnitTests/RTCMTLVideoViewTests.mm" ] | |
370 if (current_cpu != "arm64") { | |
371 # Only include this file on simulator, as it's already | |
372 # included in device builds. | |
373 sources += [ "objc/Framework/Classes/Metal/RTCMTLVideoView.m" ] | |
374 libs = [ "CoreVideo.framework" ] | |
375 } | |
376 } | |
377 | |
378 if (!build_with_chromium && is_clang) { | 325 if (!build_with_chromium && is_clang) { |
379 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. | 326 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
. |
380 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 327 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
381 } | 328 } |
382 } | 329 } |
383 } | 330 } |
384 | 331 |
385 if (is_ios) { | 332 if (is_ios) { |
386 ios_framework_bundle("objc_framework") { | 333 ios_framework_bundle("rtc_sdk_framework_objc") { |
387 info_plist = "objc/Framework/Info.plist" | 334 info_plist = "objc/Framework/Info.plist" |
388 output_name = "WebRTC" | 335 output_name = "WebRTC" |
389 | 336 |
390 common_objc_headers = [ | 337 common_objc_headers = [ |
391 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 338 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
| 339 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
| 340 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
| 341 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
| 342 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
392 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", | 343 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
393 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", | 344 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
394 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", | 345 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
395 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 346 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
396 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", | 347 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
397 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 348 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
398 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", | 349 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
399 "objc/Framework/Headers/WebRTC/RTCIceServer.h", | 350 "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
400 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", | 351 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
401 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 352 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
402 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 353 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
403 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", | 354 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
404 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", | 355 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
405 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", | 356 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
406 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", | 357 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
407 "objc/Framework/Headers/WebRTC/RTCMetrics.h", | 358 "objc/Framework/Headers/WebRTC/RTCMetrics.h", |
408 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", | 359 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h", |
| 360 "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", |
409 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", | 361 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h", |
410 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", | 362 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h", |
411 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", | 363 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h", |
412 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", | 364 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h", |
413 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", | 365 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h", |
414 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", | 366 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h", |
415 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", | 367 "objc/Framework/Headers/WebRTC/RTCRtpSender.h", |
416 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", | 368 "objc/Framework/Headers/WebRTC/RTCSSLAdapter.h", |
417 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 369 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
418 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 370 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
(...skipping 14 matching lines...) Expand all Loading... |
433 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 385 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
434 } | 386 } |
435 | 387 |
436 ldflags = [ | 388 ldflags = [ |
437 "-all_load", | 389 "-all_load", |
438 "-install_name", | 390 "-install_name", |
439 "@rpath/$output_name.framework/$output_name", | 391 "@rpath/$output_name.framework/$output_name", |
440 ] | 392 ] |
441 | 393 |
442 deps = [ | 394 deps = [ |
443 ":objc_peerconnection", | 395 ":rtc_sdk_peerconnection_objc", |
444 "../base:rtc_base_approved", | |
445 "../system_wrappers:field_trial_default", | 396 "../system_wrappers:field_trial_default", |
446 "../system_wrappers:metrics_default", | 397 "../system_wrappers:metrics_default", |
447 ] | 398 ] |
448 | 399 |
449 libs = [ | 400 libs = [ |
450 "AVFoundation.framework", | 401 "AVFoundation.framework", |
| 402 "AudioToolbox.framework", |
451 "CoreGraphics.framework", | 403 "CoreGraphics.framework", |
452 "CoreMedia.framework", | 404 "CoreMedia.framework", |
453 "GLKit.framework", | 405 "GLKit.framework", |
| 406 "VideoToolbox.framework", |
454 ] | 407 ] |
455 | 408 |
456 configs += [ "..:common_objc" ] | 409 configs += [ "..:common_objc" ] |
457 | 410 |
458 public_configs = [ ":objc_common_config" ] | 411 public_configs = [ ":rtc_sdk_common_objc_config" ] |
459 | 412 |
460 if (!build_with_chromium && is_clang) { | 413 if (!build_with_chromium && is_clang) { |
461 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) | 414 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) |
462 configs -= [ "//build/config/clang:find_bad_constructs" ] | 415 configs -= [ "//build/config/clang:find_bad_constructs" ] |
463 } | 416 } |
464 } | 417 } |
465 } | 418 } |
466 | 419 |
467 rtc_static_library("rtc_sdk_objc") { | 420 rtc_static_library("rtc_sdk_objc") { |
468 complete_static_lib = true | 421 complete_static_lib = true |
469 deps = [ | 422 deps = [ |
470 ":objc_peerconnection", | 423 ":rtc_sdk_peerconnection_objc", |
471 "//webrtc/system_wrappers:field_trial_default", | 424 "//webrtc/system_wrappers:field_trial_default", |
472 "//webrtc/system_wrappers:metrics_default", | 425 "//webrtc/system_wrappers:metrics_default", |
473 ] | 426 ] |
474 } | 427 } |
475 | 428 |
476 rtc_static_library("objc_corevideoframebuffer") { | 429 rtc_static_library("rtc_sdk_corevideoframebuffer") { |
477 sources = [ | 430 sources = [ |
478 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", | 431 "objc/Framework/Classes/corevideo_frame_buffer.cc", |
479 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", | 432 "objc/Framework/Classes/corevideo_frame_buffer.h", |
480 ] | 433 ] |
481 | 434 |
482 deps = [ | 435 deps = [ |
483 "../base:rtc_base_approved", | 436 "../base:rtc_base_approved", |
484 "../common_video", | 437 "../common_video", |
485 ] | 438 ] |
486 | 439 |
487 if (!build_with_chromium && is_clang) { | |
488 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
489 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
490 } | |
491 | |
492 libs = [ "CoreVideo.framework" ] | 440 libs = [ "CoreVideo.framework" ] |
493 } | 441 } |
494 | 442 |
495 rtc_static_library("objc_videotoolbox") { | 443 rtc_static_library("webrtc_h264_video_toolbox") { |
496 sources = [ | 444 sources = [ |
497 "objc/Framework/Classes/VideoToolbox/decoder.cc", | 445 "objc/Framework/Classes/h264_video_toolbox_decoder.cc", |
498 "objc/Framework/Classes/VideoToolbox/decoder.h", | 446 "objc/Framework/Classes/h264_video_toolbox_decoder.h", |
499 "objc/Framework/Classes/VideoToolbox/encoder.h", | 447 "objc/Framework/Classes/h264_video_toolbox_encoder.h", |
500 "objc/Framework/Classes/VideoToolbox/encoder.mm", | 448 "objc/Framework/Classes/h264_video_toolbox_encoder.mm", |
501 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", | 449 "objc/Framework/Classes/h264_video_toolbox_nalu.cc", |
502 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", | 450 "objc/Framework/Classes/h264_video_toolbox_nalu.h", |
503 "objc/Framework/Classes/VideoToolbox/videocodecfactory.cc", | |
504 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", | |
505 ] | 451 ] |
506 | 452 |
507 configs += [ "//webrtc:common_objc" ] | 453 configs += [ "//webrtc:common_objc" ] |
508 | 454 |
509 deps = [ | 455 deps = [ |
510 ":objc_common", | 456 ":rtc_sdk_common_objc", |
511 ":objc_corevideoframebuffer", | 457 ":rtc_sdk_corevideoframebuffer", |
| 458 "../api:video_frame_api", |
512 "../base:rtc_base_approved", | 459 "../base:rtc_base_approved", |
513 "//webrtc/common_video", | 460 "../common_video", |
514 "//webrtc/media:rtc_media", | 461 "../media:rtc_media_base", |
515 "//webrtc/media:rtc_media_base", | 462 "../modules:module_api", |
516 "//webrtc/modules:module_api", | 463 "../modules/video_coding:video_coding_utility", |
517 "//webrtc/modules/video_coding:video_coding_utility", | 464 "../modules/video_coding:webrtc_h264", |
518 "//webrtc/modules/video_coding:webrtc_h264", | 465 "../system_wrappers", |
519 "//webrtc/system_wrappers", | |
520 ] | 466 ] |
521 | 467 |
522 libs = [ | 468 libs = [ |
523 "CoreFoundation.framework", | 469 "CoreFoundation.framework", |
524 "CoreMedia.framework", | 470 "CoreMedia.framework", |
525 "CoreVideo.framework", | 471 "CoreVideo.framework", |
526 "VideoToolbox.framework", | 472 "VideoToolbox.framework", |
527 ] | 473 ] |
528 | 474 |
529 if (!build_with_chromium && is_clang) { | 475 if (!build_with_chromium && is_clang) { |
530 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 476 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
531 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 477 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
532 } | 478 } |
533 | 479 |
534 if (rtc_build_libyuv) { | 480 if (rtc_build_libyuv) { |
535 deps += [ "$rtc_libyuv_dir" ] | 481 deps += [ "$rtc_libyuv_dir" ] |
536 public_deps = [ | 482 public_deps = [ |
537 "$rtc_libyuv_dir", | 483 "$rtc_libyuv_dir", |
538 ] | 484 ] |
539 } else { | 485 } else { |
540 # Need to add a directory normally exported by libyuv. | 486 # Need to add a directory normally exported by libyuv. |
541 include_dirs = [ "$rtc_libyuv_dir/include" ] | 487 include_dirs = [ "$rtc_libyuv_dir/include" ] |
542 } | 488 } |
543 } | 489 } |
544 } | 490 } |
OLD | NEW |