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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 deps = [ | 95 deps = [ |
96 ":objc_common", | 96 ":objc_common", |
97 "../base:rtc_base_approved", | 97 "../base:rtc_base_approved", |
98 ] | 98 ] |
99 | 99 |
100 if (is_clang) { | 100 if (is_clang) { |
101 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | 101 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . |
102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
103 } | 103 } |
104 } | 104 } |
105 | |
106 # Create a separate target for video videotracksource related objects which would be used to | |
107 # build the PeerConnectionFactory without audio/video support. | |
tommi
2017/06/28 15:06:44
As the comment is currently written, I had some pr
Zhi Huang
2017/06/28 19:47:10
Your suggestion is better.
Done.
| |
108 rtc_static_library("objc_videotracksource") { | |
109 sources = [ | |
110 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", | |
111 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", | |
112 "objc/Framework/Classes/Video/RTCI420Buffer.mm", | |
113 "objc/Framework/Classes/Video/objc_frame_buffer.h", | |
114 "objc/Framework/Classes/Video/objc_frame_buffer.mm", | |
115 "objc/Framework/Classes/Video/objcvideotracksource.h", | |
116 "objc/Framework/Classes/Video/objcvideotracksource.mm", | |
117 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | |
118 ] | |
119 | |
120 deps = [ | |
121 ":objc_common", | |
122 "../api:libjingle_peerconnection_api", | |
123 "../api:video_frame_api", | |
124 "../base:rtc_base", | |
125 "../common_video", | |
126 "../media:rtc_media_base", | |
127 ] | |
128 | |
129 configs += [ "..:common_objc" ] | |
130 if (!build_with_chromium && is_clang) { | |
131 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | |
tommi
2017/06/28 15:06:45
nit: keep shorter than 80 characters
Zhi Huang
2017/06/28 19:47:10
Done.
| |
132 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
133 } | |
134 } | |
135 | |
105 rtc_static_library("objc_video") { | 136 rtc_static_library("objc_video") { |
106 sources = [ | 137 sources = [ |
107 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", | 138 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", |
108 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", | 139 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", |
109 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", | |
110 "objc/Framework/Classes/Video/RTCDefaultShader.h", | 140 "objc/Framework/Classes/Video/RTCDefaultShader.h", |
111 "objc/Framework/Classes/Video/RTCDefaultShader.mm", | 141 "objc/Framework/Classes/Video/RTCDefaultShader.mm", |
112 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", | |
113 "objc/Framework/Classes/Video/RTCI420Buffer.mm", | |
114 "objc/Framework/Classes/Video/RTCI420TextureCache.h", | 142 "objc/Framework/Classes/Video/RTCI420TextureCache.h", |
115 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", | 143 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", |
116 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", | 144 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", |
117 "objc/Framework/Classes/Video/RTCShader.h", | 145 "objc/Framework/Classes/Video/RTCShader.h", |
118 "objc/Framework/Classes/Video/RTCShader.mm", | 146 "objc/Framework/Classes/Video/RTCShader.mm", |
119 "objc/Framework/Classes/Video/avfoundationformatmapper.h", | 147 "objc/Framework/Classes/Video/avfoundationformatmapper.h", |
120 "objc/Framework/Classes/Video/avfoundationformatmapper.mm", | 148 "objc/Framework/Classes/Video/avfoundationformatmapper.mm", |
121 "objc/Framework/Classes/Video/avfoundationvideocapturer.h", | 149 "objc/Framework/Classes/Video/avfoundationvideocapturer.h", |
122 "objc/Framework/Classes/Video/avfoundationvideocapturer.mm", | 150 "objc/Framework/Classes/Video/avfoundationvideocapturer.mm", |
123 "objc/Framework/Classes/Video/objc_frame_buffer.h", | |
124 "objc/Framework/Classes/Video/objc_frame_buffer.mm", | |
125 "objc/Framework/Classes/Video/objcvideotracksource.h", | |
126 "objc/Framework/Classes/Video/objcvideotracksource.mm", | |
127 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | |
128 ] | 151 ] |
129 libs = [] | 152 libs = [] |
130 if (is_ios) { | 153 if (is_ios) { |
131 sources += [ | 154 sources += [ |
132 "objc/Framework/Classes/Video/RTCNV12TextureCache.h", | 155 "objc/Framework/Classes/Video/RTCNV12TextureCache.h", |
133 "objc/Framework/Classes/Video/RTCNV12TextureCache.m", | 156 "objc/Framework/Classes/Video/RTCNV12TextureCache.m", |
134 ] | 157 ] |
135 libs += [ | 158 libs += [ |
136 "GLKit.framework", | 159 "GLKit.framework", |
137 "OpenGLES.framework", | 160 "OpenGLES.framework", |
138 "QuartzCore.framework", | 161 "QuartzCore.framework", |
139 ] | 162 ] |
140 } else if (is_mac) { | 163 } else if (is_mac) { |
141 sources += [] | 164 sources += [] |
142 | 165 |
143 libs += [ | 166 libs += [ |
144 "CoreMedia.framework", | 167 "CoreMedia.framework", |
145 "CoreVideo.framework", | 168 "CoreVideo.framework", |
146 "OpenGL.framework", | 169 "OpenGL.framework", |
147 ] | 170 ] |
148 } | 171 } |
149 | 172 |
150 deps = [ | 173 deps = [ |
151 ":objc_common", | 174 ":objc_common", |
175 ":objc_videotracksource", | |
152 "../api:libjingle_peerconnection_api", | 176 "../api:libjingle_peerconnection_api", |
153 "../base:rtc_base", | 177 "../base:rtc_base", |
154 "../common_video", | 178 "../common_video", |
155 "../media:rtc_media_base", | 179 "../media:rtc_media_base", |
156 ] | 180 ] |
157 | 181 |
158 configs += [ "..:common_objc" ] | 182 configs += [ "..:common_objc" ] |
159 if (!build_with_chromium && is_clang) { | 183 if (!build_with_chromium && is_clang) { |
160 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | 184 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . |
161 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 185 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 ] | 243 ] |
220 configs += [ "..:common_objc" ] | 244 configs += [ "..:common_objc" ] |
221 public_configs = [ ":objc_common_config" ] | 245 public_configs = [ ":objc_common_config" ] |
222 } | 246 } |
223 } | 247 } |
224 | 248 |
225 rtc_static_library("objc_peerconnection") { | 249 rtc_static_library("objc_peerconnection") { |
226 sources = [ | 250 sources = [ |
227 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat e.h", | 251 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat e.h", |
228 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", | 252 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", |
253 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", | |
254 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", | |
255 ] | |
256 if (is_ios) { | |
257 sources += [ | |
258 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", | |
259 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", | |
260 ] | |
261 } | |
262 libs = [ "AVFoundation.framework" ] | |
263 | |
264 if (is_ios) { | |
265 libs += [ "CoreGraphics.framework" ] | |
266 } | |
267 | |
268 configs += [ "..:common_objc" ] | |
269 | |
270 public_configs = [ ":objc_common_config" ] | |
271 | |
272 if (!build_with_chromium && is_clang) { | |
273 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | |
tommi
2017/06/28 15:06:44
<80
Zhi Huang
2017/06/28 19:47:10
Done.
| |
274 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
275 } | |
276 | |
277 deps = [ | |
278 ":objc_common", | |
279 ":objc_corevideoframebuffer", | |
280 ":objc_peerconnectionfactory", | |
281 ":objc_video", | |
282 "../api:video_frame_api", | |
283 "../base:rtc_base", | |
284 "../media:rtc_media_base", | |
285 "../pc:libjingle_peerconnection", | |
286 ] | |
287 | |
288 if (rtc_use_metal_rendering) { | |
289 deps += [ ":objc_metal" ] | |
290 } | |
291 | |
292 if (rtc_build_libyuv) { | |
293 deps += [ "$rtc_libyuv_dir" ] | |
294 public_deps = [ | |
295 "$rtc_libyuv_dir", | |
296 ] | |
297 } | |
298 } | |
299 | |
300 rtc_static_library("objc_peerconnectionfactory") { | |
301 sources = [ | |
302 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", | |
303 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | |
304 ] | |
305 | |
306 public_configs = [ ":objc_common_config" ] | |
307 | |
308 if (!build_with_chromium && is_clang) { | |
309 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | |
tommi
2017/06/28 15:06:45
<80
Zhi Huang
2017/06/28 19:47:10
Done.
| |
310 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
311 } | |
312 | |
313 deps = [ | |
314 ":objc_common", | |
315 ":objc_corevideoframebuffer", | |
316 ":objc_peerconnectionfactory_base", | |
317 ":objc_video", | |
318 ":objc_videotoolbox", | |
319 "../api:video_frame_api", | |
320 "../base:rtc_base", | |
321 "../media:rtc_media_base", | |
322 "../pc:create_pc_factory", | |
323 "../pc:peerconnection", | |
324 ] | |
325 } | |
326 | |
327 # Build the PeerConnectionFactory without audio/video support. This target d epends on the | |
tommi
2017/06/28 15:06:44
<80
(here is a good example of how it's easier to
| |
328 # objc_peeerconnectionfactory_base which still includes some audio/video rel ated objects such as | |
329 # RTCAudioSource because these objects are just thin wrappers of native C++ interfaces required | |
330 # when implementing webrtc::PeerConnectionFactoryInterface and webrtc::PeerC onnectionInterface. | |
331 rtc_static_library("objc_peerconnectionfactory_no_media") { | |
332 defines = [ "HAVE_NO_MEDIA" ] | |
333 | |
334 sources = [ | |
335 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", | |
336 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | |
337 ] | |
338 | |
339 public_configs = [ ":objc_common_config" ] | |
340 | |
341 if (!build_with_chromium && is_clang) { | |
342 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | |
tommi
2017/06/28 15:06:44
ditto
Zhi Huang
2017/06/28 19:47:10
Done.
| |
343 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
344 } | |
345 | |
346 deps = [ | |
347 ":objc_peerconnectionfactory_base", | |
348 "../api:libjingle_peerconnection_api", | |
349 "../base:rtc_base", | |
350 ] | |
351 } | |
352 | |
353 rtc_static_library("objc_peerconnectionfactory_base") { | |
354 sources = [ | |
229 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", | 355 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", |
230 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", | 356 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", |
231 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", | 357 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", |
232 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", | 358 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", |
233 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", | |
234 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", | 359 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", |
235 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", | 360 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", |
236 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", | 361 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", |
237 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", | 362 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", |
238 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h", | 363 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva te.h", |
239 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", | 364 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm", |
240 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", | 365 "objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h", |
241 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", | 366 "objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm", |
242 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", | 367 "objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h", |
243 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", | 368 "objc/Framework/Classes/PeerConnection/RTCIceServer.mm", |
244 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", | 369 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport+Private.h", |
245 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", | 370 "objc/Framework/Classes/PeerConnection/RTCLegacyStatsReport.mm", |
246 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", | 371 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints+Private.h", |
247 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", | 372 "objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm", |
248 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", | 373 "objc/Framework/Classes/PeerConnection/RTCMediaSource+Private.h", |
249 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", | 374 "objc/Framework/Classes/PeerConnection/RTCMediaSource.mm", |
250 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", | 375 "objc/Framework/Classes/PeerConnection/RTCMediaStream+Private.h", |
251 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", | 376 "objc/Framework/Classes/PeerConnection/RTCMediaStream.mm", |
252 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", | 377 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack+Private.h", |
253 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", | 378 "objc/Framework/Classes/PeerConnection/RTCMediaStreamTrack.mm", |
254 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", | 379 "objc/Framework/Classes/PeerConnection/RTCMetrics.mm", |
255 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", | 380 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo+Private.h", |
256 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", | 381 "objc/Framework/Classes/PeerConnection/RTCMetricsSampleInfo.mm", |
257 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" , | 382 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+DataChannel.mm" , |
258 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", | 383 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Private.h", |
259 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", | 384 "objc/Framework/Classes/PeerConnection/RTCPeerConnection+Stats.mm", |
260 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", | 385 "objc/Framework/Classes/PeerConnection/RTCPeerConnection.mm", |
261 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private. h", | |
262 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | |
263 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", | 386 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters+Private.h", |
264 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", | 387 "objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm", |
265 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h", | 388 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private. h", |
266 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", | 389 "objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm", |
267 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", | 390 "objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h", |
268 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", | 391 "objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm", |
269 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", | 392 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h", |
270 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", | 393 "objc/Framework/Classes/PeerConnection/RTCRtpReceiver.mm", |
271 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", | 394 "objc/Framework/Classes/PeerConnection/RTCRtpSender+Private.h", |
272 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", | 395 "objc/Framework/Classes/PeerConnection/RTCRtpSender.mm", |
273 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", | 396 "objc/Framework/Classes/PeerConnection/RTCSSLAdapter.mm", |
274 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", | 397 "objc/Framework/Classes/PeerConnection/RTCSessionDescription+Private.h", |
275 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", | 398 "objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm", |
276 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", | 399 "objc/Framework/Classes/PeerConnection/RTCTracing.mm", |
277 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", | 400 "objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m", |
278 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", | 401 "objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm", |
279 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ", | 402 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h ", |
280 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", | 403 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h", |
281 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", | 404 "objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.mm", |
282 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", | 405 "objc/Framework/Classes/PeerConnection/RTCVideoSource+Private.h", |
283 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", | 406 "objc/Framework/Classes/PeerConnection/RTCVideoSource.mm", |
284 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", | 407 "objc/Framework/Classes/PeerConnection/RTCVideoTrack+Private.h", |
285 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", | 408 "objc/Framework/Classes/PeerConnection/RTCVideoTrack.mm", |
286 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 409 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
287 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 410 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
288 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 411 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
289 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", | |
290 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", | 412 "objc/Framework/Headers/WebRTC/RTCConfiguration.h", |
291 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", | 413 "objc/Framework/Headers/WebRTC/RTCDataChannel.h", |
292 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", | 414 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h", |
293 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", | 415 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h", |
294 "objc/Framework/Headers/WebRTC/RTCIceServer.h", | 416 "objc/Framework/Headers/WebRTC/RTCIceServer.h", |
295 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", | 417 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h", |
296 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", | 418 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h", |
297 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", | 419 "objc/Framework/Headers/WebRTC/RTCMediaSource.h", |
298 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", | 420 "objc/Framework/Headers/WebRTC/RTCMediaStream.h", |
299 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", | 421 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h", |
(...skipping 10 matching lines...) Expand all Loading... | |
310 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", | 432 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h", |
311 "objc/Framework/Headers/WebRTC/RTCTracing.h", | 433 "objc/Framework/Headers/WebRTC/RTCTracing.h", |
312 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", | 434 "objc/Framework/Headers/WebRTC/RTCVideoCapturer.h", |
313 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 435 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
314 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | 436 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
315 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 437 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
316 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 438 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
317 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 439 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
318 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", | 440 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
319 ] | 441 ] |
320 if (is_ios) { | |
321 sources += [ | |
322 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", | |
323 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", | |
324 ] | |
325 } | |
326 libs = [ "AVFoundation.framework" ] | |
327 | |
328 if (is_ios) { | |
329 libs += [ "CoreGraphics.framework" ] | |
330 } | |
331 | 442 |
332 configs += [ "..:common_objc" ] | 443 configs += [ "..:common_objc" ] |
333 | 444 |
334 public_configs = [ ":objc_common_config" ] | 445 public_configs = [ ":objc_common_config" ] |
335 | 446 |
336 if (!build_with_chromium && is_clang) { | 447 if (!build_with_chromium && is_clang) { |
337 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . | 448 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . |
338 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 449 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
339 } | 450 } |
340 | 451 |
341 deps = [ | 452 deps = [ |
342 ":objc_common", | 453 ":objc_common", |
343 ":objc_corevideoframebuffer", | 454 ":objc_corevideoframebuffer", |
344 ":objc_video", | 455 ":objc_videotracksource", |
345 ":objc_videotoolbox", | |
346 "../api:video_frame_api", | 456 "../api:video_frame_api", |
347 "../base:rtc_base", | 457 "../base:rtc_base", |
348 "../common_video", | 458 "../common_video", |
349 "../media:rtc_media_base", | 459 "../media:rtc_media_base", |
350 "../pc:libjingle_peerconnection", | 460 "../pc:peerconnection", |
351 ] | 461 ] |
352 | |
353 if (rtc_use_metal_rendering) { | |
354 deps += [ ":objc_metal" ] | |
355 } | |
356 | |
357 if (rtc_build_libyuv) { | |
358 deps += [ "$rtc_libyuv_dir" ] | |
359 public_deps = [ | |
360 "$rtc_libyuv_dir", | |
361 ] | |
362 } | |
363 } | 462 } |
364 | 463 |
365 if (rtc_include_tests) { | 464 if (rtc_include_tests) { |
366 rtc_source_set("objc_sdk_unittests") { | 465 rtc_source_set("objc_sdk_unittests") { |
367 testonly = true | 466 testonly = true |
368 | 467 |
369 # Skip restricting visibility on mobile platforms since the tests on tho se | 468 # Skip restricting visibility on mobile platforms since the tests on tho se |
370 # gets additional generated targets which would require many lines here to | 469 # gets additional generated targets which would require many lines here to |
371 # cover (which would be confusing to read and hard to maintain). | 470 # cover (which would be confusing to read and hard to maintain). |
372 if (!is_android && !is_ios) { | 471 if (!is_android && !is_ios) { |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
560 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", | 659 "objc/Framework/Classes/VideoToolbox/videocodecfactory.h", |
561 "objc/Framework/Classes/VideoToolbox/videocodecfactory.mm", | 660 "objc/Framework/Classes/VideoToolbox/videocodecfactory.mm", |
562 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | 661 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
563 ] | 662 ] |
564 | 663 |
565 configs += [ "..:common_objc" ] | 664 configs += [ "..:common_objc" ] |
566 | 665 |
567 deps = [ | 666 deps = [ |
568 ":objc_common", | 667 ":objc_common", |
569 ":objc_video", | 668 ":objc_video", |
669 ":objc_videotracksource", | |
570 "../base:rtc_base_approved", | 670 "../base:rtc_base_approved", |
571 "../common_video", | 671 "../common_video", |
572 "../media:rtc_media", | 672 "../media:rtc_media", |
573 "../media:rtc_media_base", | 673 "../media:rtc_media_base", |
574 "../modules:module_api", | 674 "../modules:module_api", |
575 "../modules/video_coding:video_coding_utility", | 675 "../modules/video_coding:video_coding_utility", |
576 "../modules/video_coding:webrtc_h264", | 676 "../modules/video_coding:webrtc_h264", |
577 "../system_wrappers", | 677 "../system_wrappers", |
578 ] | 678 ] |
579 | 679 |
(...skipping 14 matching lines...) Expand all Loading... | |
594 public_deps = [ | 694 public_deps = [ |
595 "$rtc_libyuv_dir", | 695 "$rtc_libyuv_dir", |
596 ] | 696 ] |
597 } else { | 697 } else { |
598 # Need to add a directory normally exported by libyuv. | 698 # Need to add a directory normally exported by libyuv. |
599 include_dirs = [ "$rtc_libyuv_dir/include" ] | 699 include_dirs = [ "$rtc_libyuv_dir/include" ] |
600 } | 700 } |
601 } | 701 } |
602 } | 702 } |
603 } | 703 } |
OLD | NEW |