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 import("//build/config/ios/ios_sdk.gni") | 12 import("//build/config/ios/ios_sdk.gni") |
13 } | 13 } |
14 | 14 |
15 declare_args() { | 15 declare_args() { |
16 # Determine whether or not to include metal rendering | 16 # Determine whether or not to include metal rendering |
17 rtc_use_metal_rendering = is_mac || (is_ios && current_cpu == "arm64") | 17 rtc_use_metal_rendering = is_mac || (is_ios && current_cpu == "arm64") |
18 } | 18 } |
19 | 19 |
20 group("sdk") { | 20 group("sdk") { |
21 public_deps = [] | 21 public_deps = [] |
22 if (!build_with_chromium) { | 22 if (!build_with_chromium) { |
23 if (is_android) { | 23 if (is_android) { |
24 public_deps += [ "android" ] | 24 public_deps += [ "android" ] |
25 } | 25 } |
26 if (is_ios) { | 26 if (is_ios) { |
27 public_deps += [ ":objc_framework" ] | 27 public_deps += [ ":framework_objc" ] |
28 } | 28 } |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 if (is_ios || is_mac) { | 32 if (is_ios || is_mac) { |
33 config("objc_common_config") { | 33 config("common_config_objc") { |
34 include_dirs = [ | 34 include_dirs = [ |
35 "objc/Framework/Classes", | 35 "objc/Framework/Classes", |
36 "objc/Framework/Classes/Audio", | 36 "objc/Framework/Classes/Audio", |
37 "objc/Framework/Classes/Common", | 37 "objc/Framework/Classes/Common", |
38 "objc/Framework/Classes/Metal", | 38 "objc/Framework/Classes/Metal", |
39 "objc/Framework/Classes/PeerConnection", | 39 "objc/Framework/Classes/PeerConnection", |
40 "objc/Framework/Classes/UI", | 40 "objc/Framework/Classes/UI", |
41 "objc/Framework/Classes/Video", | 41 "objc/Framework/Classes/Video", |
42 "objc/Framework/Classes/VideoToolbox", | 42 "objc/Framework/Classes/VideoToolbox", |
43 "objc/Framework/Headers", | 43 "objc/Framework/Headers", |
44 ] | 44 ] |
45 } | 45 } |
46 | 46 |
47 rtc_static_library("objc_common") { | 47 rtc_static_library("common_objc") { |
48 sources = [ | 48 sources = [ |
49 "objc/Framework/Classes/Common/NSString+StdString.h", | 49 "objc/Framework/Classes/Common/NSString+StdString.h", |
50 "objc/Framework/Classes/Common/NSString+StdString.mm", | 50 "objc/Framework/Classes/Common/NSString+StdString.mm", |
51 "objc/Framework/Classes/Common/RTCDispatcher+Private.h", | 51 "objc/Framework/Classes/Common/RTCDispatcher+Private.h", |
52 "objc/Framework/Classes/Common/RTCDispatcher.m", | 52 "objc/Framework/Classes/Common/RTCDispatcher.m", |
53 "objc/Framework/Classes/Common/RTCFieldTrials.mm", | 53 "objc/Framework/Classes/Common/RTCFieldTrials.mm", |
54 "objc/Framework/Classes/Common/RTCLogging.mm", | 54 "objc/Framework/Classes/Common/RTCLogging.mm", |
55 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.h", | 55 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.h", |
56 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.m", | 56 "objc/Framework/Classes/Common/RTCUIApplicationStatusObserver.m", |
57 "objc/Framework/Classes/Common/helpers.h", | 57 "objc/Framework/Classes/Common/helpers.h", |
58 "objc/Framework/Classes/Common/helpers.mm", | 58 "objc/Framework/Classes/Common/helpers.mm", |
59 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", | 59 "objc/Framework/Headers/WebRTC/RTCDispatcher.h", |
60 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", | 60 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h", |
61 "objc/Framework/Headers/WebRTC/RTCLogging.h", | 61 "objc/Framework/Headers/WebRTC/RTCLogging.h", |
62 "objc/Framework/Headers/WebRTC/RTCMacros.h", | 62 "objc/Framework/Headers/WebRTC/RTCMacros.h", |
63 ] | 63 ] |
64 | 64 |
65 deps = [ | 65 deps = [ |
66 "../rtc_base:rtc_base", | 66 "../rtc_base:rtc_base", |
67 ] | 67 ] |
68 configs += [ "..:common_objc" ] | 68 configs += [ "..:common_objc" ] |
69 | 69 |
70 public_configs = [ ":objc_common_config" ] | 70 public_configs = [ ":common_config_objc" ] |
71 | 71 |
72 if (is_ios) { | 72 if (is_ios) { |
73 sources += [ | 73 sources += [ |
74 "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm", | 74 "objc/Framework/Classes/Common/UIDevice+RTCDevice.mm", |
75 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", | 75 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h", |
76 ] | 76 ] |
77 } | 77 } |
78 | 78 |
79 if (!build_with_chromium) { | 79 if (!build_with_chromium) { |
80 sources += [ | 80 sources += [ |
81 "objc/Framework/Classes/Common/RTCFileLogger.mm", | 81 "objc/Framework/Classes/Common/RTCFileLogger.mm", |
82 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", | 82 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", |
83 ] | 83 ] |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 if (!build_with_chromium) { | 87 if (!build_with_chromium) { |
88 rtc_static_library("objc_audio") { | 88 rtc_static_library("audio_objc") { |
89 sources = [ | 89 sources = [ |
90 "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm", | 90 "objc/Framework/Classes/Audio/RTCAudioSession+Configuration.mm", |
91 "objc/Framework/Classes/Audio/RTCAudioSession+Private.h", | 91 "objc/Framework/Classes/Audio/RTCAudioSession+Private.h", |
92 "objc/Framework/Classes/Audio/RTCAudioSession.mm", | 92 "objc/Framework/Classes/Audio/RTCAudioSession.mm", |
93 "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m", | 93 "objc/Framework/Classes/Audio/RTCAudioSessionConfiguration.m", |
94 "objc/Framework/Headers/WebRTC/RTCAudioSession.h", | 94 "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
95 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", | 95 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
96 ] | 96 ] |
97 configs += [ "..:common_objc" ] | 97 configs += [ "..:common_objc" ] |
98 | 98 |
99 deps = [ | 99 deps = [ |
100 ":objc_common", | 100 ":common_objc", |
101 "../rtc_base:rtc_base_approved", | 101 "../rtc_base:rtc_base_approved", |
102 ] | 102 ] |
103 | 103 |
104 if (is_clang) { | 104 if (is_clang) { |
105 # Suppress warnings from the Chromium Clang plugin | 105 # Suppress warnings from the Chromium Clang plugin |
106 # (bugs.webrtc.org/163). | 106 # (bugs.webrtc.org/163). |
107 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 107 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 # Keep videotracksource related code in a separate target so that we can | 111 # Keep videotracksource related code in a separate target so that we can |
112 # build PeerConnectionFactory without audio/video support when that's called | 112 # build PeerConnectionFactory without audio/video support when that's called |
113 # for. | 113 # for. |
114 rtc_static_library("objc_videotracksource") { | 114 rtc_static_library("videotracksource_objc") { |
115 sources = [ | 115 sources = [ |
116 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", | 116 "objc/Framework/Classes/Video/RTCCVPixelBuffer.mm", |
117 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", | 117 "objc/Framework/Classes/Video/RTCI420Buffer+Private.h", |
118 "objc/Framework/Classes/Video/RTCI420Buffer.mm", | 118 "objc/Framework/Classes/Video/RTCI420Buffer.mm", |
119 "objc/Framework/Classes/Video/objc_frame_buffer.h", | 119 "objc/Framework/Classes/Video/objc_frame_buffer.h", |
120 "objc/Framework/Classes/Video/objc_frame_buffer.mm", | 120 "objc/Framework/Classes/Video/objc_frame_buffer.mm", |
121 "objc/Framework/Classes/Video/objcvideotracksource.h", | 121 "objc/Framework/Classes/Video/objcvideotracksource.h", |
122 "objc/Framework/Classes/Video/objcvideotracksource.mm", | 122 "objc/Framework/Classes/Video/objcvideotracksource.mm", |
123 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | 123 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
124 ] | 124 ] |
125 | 125 |
126 deps = [ | 126 deps = [ |
127 ":objc_common", | 127 ":common_objc", |
128 "../api:libjingle_peerconnection_api", | 128 "../api:libjingle_peerconnection_api", |
129 "../api:video_frame_api", | 129 "../api:video_frame_api", |
130 "../common_video", | 130 "../common_video", |
131 "../media:rtc_media_base", | 131 "../media:rtc_media_base", |
132 "../rtc_base:rtc_base", | 132 "../rtc_base:rtc_base", |
133 ] | 133 ] |
134 | 134 |
135 configs += [ "..:common_objc" ] | 135 configs += [ "..:common_objc" ] |
136 if (!build_with_chromium && is_clang) { | 136 if (!build_with_chromium && is_clang) { |
137 # Suppress warnings from the Chromium Clang plugin | 137 # Suppress warnings from the Chromium Clang plugin |
138 # (bugs.webrtc.org/163). | 138 # (bugs.webrtc.org/163). |
139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 139 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 rtc_static_library("objc_video") { | 143 rtc_static_library("video_objc") { |
144 sources = [ | 144 sources = [ |
145 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h", | 145 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.h", |
146 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm", | 146 "objc/Framework/Classes/Video/AVCaptureSession+DevicePosition.mm", |
147 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", | 147 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.h", |
148 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", | 148 "objc/Framework/Classes/Video/RTCAVFoundationVideoCapturerInternal.mm", |
149 "objc/Framework/Classes/Video/RTCDefaultShader.h", | 149 "objc/Framework/Classes/Video/RTCDefaultShader.h", |
150 "objc/Framework/Classes/Video/RTCDefaultShader.mm", | 150 "objc/Framework/Classes/Video/RTCDefaultShader.mm", |
151 "objc/Framework/Classes/Video/RTCI420TextureCache.h", | 151 "objc/Framework/Classes/Video/RTCI420TextureCache.h", |
152 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", | 152 "objc/Framework/Classes/Video/RTCI420TextureCache.mm", |
153 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", | 153 "objc/Framework/Classes/Video/RTCOpenGLDefines.h", |
(...skipping 19 matching lines...) Expand all Loading... |
173 sources += [] | 173 sources += [] |
174 | 174 |
175 libs += [ | 175 libs += [ |
176 "CoreMedia.framework", | 176 "CoreMedia.framework", |
177 "CoreVideo.framework", | 177 "CoreVideo.framework", |
178 "OpenGL.framework", | 178 "OpenGL.framework", |
179 ] | 179 ] |
180 } | 180 } |
181 | 181 |
182 deps = [ | 182 deps = [ |
183 ":objc_common", | 183 ":common_objc", |
184 ":objc_videotracksource", | 184 ":videotracksource_objc", |
185 "../api:libjingle_peerconnection_api", | 185 "../api:libjingle_peerconnection_api", |
186 "../common_video", | 186 "../common_video", |
187 "../media:rtc_media_base", | 187 "../media:rtc_media_base", |
188 "../rtc_base:rtc_base", | 188 "../rtc_base:rtc_base", |
189 ] | 189 ] |
190 | 190 |
191 configs += [ "..:common_objc" ] | 191 configs += [ "..:common_objc" ] |
192 if (!build_with_chromium && is_clang) { | 192 if (!build_with_chromium && is_clang) { |
193 # Suppress warnings from the Chromium Clang plugin | 193 # Suppress warnings from the Chromium Clang plugin |
194 # (bugs.webrtc.org/163). | 194 # (bugs.webrtc.org/163). |
195 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 195 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
199 rtc_static_library("objc_ui") { | 199 rtc_static_library("ui_objc") { |
200 if (is_ios) { | 200 if (is_ios) { |
201 sources = [ | 201 sources = [ |
202 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", | 202 "objc/Framework/Classes/UI/RTCCameraPreviewView.m", |
203 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", | 203 "objc/Framework/Classes/UI/RTCEAGLVideoView.m", |
204 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", | 204 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h", |
205 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", | 205 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h", |
206 ] | 206 ] |
207 } | 207 } |
208 if (is_mac) { | 208 if (is_mac) { |
209 sources = [ | 209 sources = [ |
210 "objc/Framework/Classes/UI/RTCNSGLVideoView.m", | 210 "objc/Framework/Classes/UI/RTCNSGLVideoView.m", |
211 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", | 211 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", |
212 ] | 212 ] |
213 } | 213 } |
214 configs += [ "..:common_objc" ] | 214 configs += [ "..:common_objc" ] |
215 deps = [ | 215 deps = [ |
216 ":objc_common", | 216 ":common_objc", |
217 ":objc_peerconnection", | 217 ":peerconnection_objc", |
218 ] | 218 ] |
219 } | 219 } |
220 | 220 |
221 if (rtc_use_metal_rendering) { | 221 if (rtc_use_metal_rendering) { |
222 rtc_static_library("objc_metal") { | 222 rtc_static_library("metal_objc") { |
223 sources = [ | 223 sources = [ |
224 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", | 224 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.h", |
225 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", | 225 "objc/Framework/Classes/Metal/RTCMTLI420Renderer.mm", |
226 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", | 226 "objc/Framework/Classes/Metal/RTCMTLRenderer+Private.h", |
227 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", | 227 "objc/Framework/Classes/Metal/RTCMTLRenderer.h", |
228 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", | 228 "objc/Framework/Classes/Metal/RTCMTLRenderer.mm", |
229 ] | 229 ] |
230 if (is_ios) { | 230 if (is_ios) { |
231 sources += [ | 231 sources += [ |
232 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", | 232 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h", |
233 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", | 233 "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm", |
234 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", | 234 "objc/Framework/Classes/Metal/RTCMTLVideoView.m", |
235 "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", | 235 "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", |
236 ] | 236 ] |
237 } | 237 } |
238 if (is_mac) { | 238 if (is_mac) { |
239 sources += [ | 239 sources += [ |
240 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", | 240 "objc/Framework/Classes/Metal/RTCMTLNSVideoView.m", |
241 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", | 241 "objc/Framework/Headers/WebRTC/RTCMTLNSVideoView.h", |
242 ] | 242 ] |
243 } | 243 } |
244 libs = [ | 244 libs = [ |
245 "CoreVideo.framework", | 245 "CoreVideo.framework", |
246 "Metal.framework", | 246 "Metal.framework", |
247 "MetalKit.framework", | 247 "MetalKit.framework", |
248 ] | 248 ] |
249 deps = [ | 249 deps = [ |
250 ":objc_video", | 250 ":video_objc", |
251 "../api:video_frame_api", | 251 "../api:video_frame_api", |
252 "../rtc_base:rtc_base_approved", | 252 "../rtc_base:rtc_base_approved", |
253 ] | 253 ] |
254 configs += [ "..:common_objc" ] | 254 configs += [ "..:common_objc" ] |
255 public_configs = [ ":objc_common_config" ] | 255 public_configs = [ ":common_config_objc" ] |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 rtc_static_library("objc_peerconnection") { | 259 rtc_static_library("peerconnection_objc") { |
260 sources = [ | 260 sources = [ |
261 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat
e.h", | 261 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource+Privat
e.h", |
262 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", | 262 "objc/Framework/Classes/PeerConnection/RTCAVFoundationVideoSource.mm", |
263 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", | 263 "objc/Framework/Classes/PeerConnection/RTCCameraVideoCapturer.m", |
264 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", | 264 "objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h", |
265 ] | 265 ] |
266 if (is_ios) { | 266 if (is_ios) { |
267 sources += [ | 267 sources += [ |
268 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", | 268 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.h", |
269 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", | 269 "objc/Framework/Classes/PeerConnection/RTCFileVideoCapturer.m", |
270 ] | 270 ] |
271 } | 271 } |
272 libs = [ "AVFoundation.framework" ] | 272 libs = [ "AVFoundation.framework" ] |
273 | 273 |
274 if (is_ios) { | 274 if (is_ios) { |
275 libs += [ "CoreGraphics.framework" ] | 275 libs += [ "CoreGraphics.framework" ] |
276 } | 276 } |
277 | 277 |
278 configs += [ "..:common_objc" ] | 278 configs += [ "..:common_objc" ] |
279 | 279 |
280 public_configs = [ ":objc_common_config" ] | 280 public_configs = [ ":common_config_objc" ] |
281 | 281 |
282 if (!build_with_chromium && is_clang) { | 282 if (!build_with_chromium && is_clang) { |
283 # Suppress warnings from the Chromium Clang plugin | 283 # Suppress warnings from the Chromium Clang plugin |
284 # (bugs.webrtc.org/163). | 284 # (bugs.webrtc.org/163). |
285 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 285 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
286 } | 286 } |
287 | 287 |
288 deps = [ | 288 deps = [ |
289 ":objc_common", | 289 ":common_objc", |
290 ":objc_corevideoframebuffer", | 290 ":corevideoframebuffer_objc", |
291 ":objc_peerconnectionfactory", | 291 ":peerconnectionfactory_objc", |
292 ":objc_video", | 292 ":video_objc", |
293 "../api:video_frame_api", | 293 "../api:video_frame_api", |
294 "../media:rtc_media_base", | 294 "../media:rtc_media_base", |
295 "../pc:libjingle_peerconnection", | 295 "../pc:libjingle_peerconnection", |
296 "../rtc_base:rtc_base", | 296 "../rtc_base:rtc_base", |
297 ] | 297 ] |
298 | 298 |
299 if (rtc_use_metal_rendering) { | 299 if (rtc_use_metal_rendering) { |
300 deps += [ ":objc_metal" ] | 300 deps += [ ":metal_objc" ] |
301 } | 301 } |
302 | 302 |
303 if (rtc_build_libyuv) { | 303 if (rtc_build_libyuv) { |
304 deps += [ "$rtc_libyuv_dir" ] | 304 deps += [ "$rtc_libyuv_dir" ] |
305 public_deps = [ | 305 public_deps = [ |
306 "$rtc_libyuv_dir", | 306 "$rtc_libyuv_dir", |
307 ] | 307 ] |
308 } | 308 } |
309 } | 309 } |
310 | 310 |
311 rtc_static_library("objc_peerconnectionfactory") { | 311 rtc_static_library("peerconnectionfactory_objc") { |
312 sources = [ | 312 sources = [ |
313 "objc/Framework/Classes/PeerConnection/RTCBuiltinAudioDecoderFactory.mm"
, | 313 "objc/Framework/Classes/PeerConnection/RTCBuiltinAudioDecoderFactory.mm"
, |
314 "objc/Framework/Classes/PeerConnection/RTCBuiltinAudioEncoderFactory.mm"
, | 314 "objc/Framework/Classes/PeerConnection/RTCBuiltinAudioEncoderFactory.mm"
, |
315 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", | 315 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", |
316 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | 316 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", |
317 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", | 317 "objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm", |
318 "objc/Framework/Headers/WebRTC/RTCAudioDecoderFactory.h", | 318 "objc/Framework/Headers/WebRTC/RTCAudioDecoderFactory.h", |
319 "objc/Framework/Headers/WebRTC/RTCAudioEncoderFactory.h", | 319 "objc/Framework/Headers/WebRTC/RTCAudioEncoderFactory.h", |
320 "objc/Framework/Headers/WebRTC/RTCBuiltinAudioDecoderFactory.h", | 320 "objc/Framework/Headers/WebRTC/RTCBuiltinAudioDecoderFactory.h", |
321 "objc/Framework/Headers/WebRTC/RTCBuiltinAudioEncoderFactory.h", | 321 "objc/Framework/Headers/WebRTC/RTCBuiltinAudioEncoderFactory.h", |
322 ] | 322 ] |
323 | 323 |
324 public_configs = [ ":objc_common_config" ] | 324 public_configs = [ ":common_config_objc" ] |
325 | 325 |
326 if (!build_with_chromium && is_clang) { | 326 if (!build_with_chromium && is_clang) { |
327 # Suppress warnings from the Chromium Clang plugin | 327 # Suppress warnings from the Chromium Clang plugin |
328 # (bugs.webrtc.org/163). | 328 # (bugs.webrtc.org/163). |
329 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 329 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
330 } | 330 } |
331 | 331 |
332 deps = [ | 332 deps = [ |
333 ":objc_common", | 333 ":common_objc", |
334 ":objc_corevideoframebuffer", | 334 ":corevideoframebuffer_objc", |
335 ":objc_peerconnectionfactory_base", | 335 ":peerconnectionfactory_base_objc", |
336 ":objc_video", | 336 ":video_objc", |
337 ":objc_videotoolbox", | 337 ":videotoolbox_objc", |
338 ":objc_videotracksource", | 338 ":videotracksource_objc", |
339 "../api:video_frame_api", | 339 "../api:video_frame_api", |
340 "../api/audio_codecs:builtin_audio_decoder_factory", | 340 "../api/audio_codecs:builtin_audio_decoder_factory", |
341 "../api/audio_codecs:builtin_audio_encoder_factory", | 341 "../api/audio_codecs:builtin_audio_encoder_factory", |
342 "../api/video_codecs:video_codecs_api", | 342 "../api/video_codecs:video_codecs_api", |
343 "../media:rtc_audio_video", | 343 "../media:rtc_audio_video", |
344 "../media:rtc_media_base", | 344 "../media:rtc_media_base", |
345 "../pc:create_pc_factory", | 345 "../pc:create_pc_factory", |
346 "../pc:peerconnection", | 346 "../pc:peerconnection", |
347 "../rtc_base:rtc_base", | 347 "../rtc_base:rtc_base", |
348 "../system_wrappers:field_trial_api", | 348 "../system_wrappers:field_trial_api", |
349 ] | 349 ] |
350 } | 350 } |
351 | 351 |
352 # Build the PeerConnectionFactory without audio/video support. | 352 # Build the PeerConnectionFactory without audio/video support. |
353 # This target depends on the objc_peeerconnectionfactory_base which still | 353 # This target depends on the objc_peeerconnectionfactory_base which still |
354 # includes some audio/video related objects such as RTCAudioSource because | 354 # includes some audio/video related objects such as RTCAudioSource because |
355 # these objects are just thin wrappers of native C++ interfaces required | 355 # these objects are just thin wrappers of native C++ interfaces required |
356 # when implementing webrtc::PeerConnectionFactoryInterface and | 356 # when implementing webrtc::PeerConnectionFactoryInterface and |
357 # webrtc::PeerConnectionInterface. | 357 # webrtc::PeerConnectionInterface. |
358 # The applications which only use WebRTC DataChannel can depend on this | 358 # The applications which only use WebRTC DataChannel can depend on this |
359 # target instead of rtc_sdk_objc. | 359 # target instead of rtc_sdk_objc. |
360 rtc_static_library("objc_peerconnectionfactory_no_media") { | 360 rtc_static_library("peerconnectionfactory_no_media_objc") { |
361 defines = [ "HAVE_NO_MEDIA" ] | 361 defines = [ "HAVE_NO_MEDIA" ] |
362 | 362 |
363 sources = [ | 363 sources = [ |
364 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", | 364 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.
h", |
365 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", | 365 "objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm", |
366 ] | 366 ] |
367 | 367 |
368 public_configs = [ ":objc_common_config" ] | 368 public_configs = [ ":common_config_objc" ] |
369 | 369 |
370 if (!build_with_chromium && is_clang) { | 370 if (!build_with_chromium && is_clang) { |
371 # Suppress warnings from the Chromium Clang plugin | 371 # Suppress warnings from the Chromium Clang plugin |
372 # (bugs.webrtc.org/163). | 372 # (bugs.webrtc.org/163). |
373 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 373 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
374 } | 374 } |
375 | 375 |
376 deps = [ | 376 deps = [ |
377 ":objc_peerconnectionfactory_base", | 377 ":peerconnectionfactory_base_objc", |
378 "../api:libjingle_peerconnection_api", | 378 "../api:libjingle_peerconnection_api", |
379 "../rtc_base:rtc_base", | 379 "../rtc_base:rtc_base", |
380 ] | 380 ] |
381 } | 381 } |
382 | 382 |
383 rtc_static_library("objc_peerconnectionfactory_base") { | 383 rtc_static_library("peerconnectionfactory_base_objc") { |
384 sources = [ | 384 sources = [ |
385 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", | 385 "objc/Framework/Classes/PeerConnection/RTCAudioSource+Private.h", |
386 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", | 386 "objc/Framework/Classes/PeerConnection/RTCAudioSource.mm", |
387 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", | 387 "objc/Framework/Classes/PeerConnection/RTCAudioTrack+Private.h", |
388 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", | 388 "objc/Framework/Classes/PeerConnection/RTCAudioTrack.mm", |
389 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", | 389 "objc/Framework/Classes/PeerConnection/RTCConfiguration+Private.h", |
390 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", | 390 "objc/Framework/Classes/PeerConnection/RTCConfiguration.mm", |
391 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", | 391 "objc/Framework/Classes/PeerConnection/RTCDataChannel+Private.h", |
392 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", | 392 "objc/Framework/Classes/PeerConnection/RTCDataChannel.mm", |
393 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva
te.h", | 393 "objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Priva
te.h", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", | 473 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h", |
474 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | 474 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
475 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", | 475 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h", |
476 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", | 476 "objc/Framework/Headers/WebRTC/RTCVideoSource.h", |
477 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", | 477 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h", |
478 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", | 478 "objc/Framework/Headers/WebRTC/RTCVideoViewShading.h", |
479 ] | 479 ] |
480 | 480 |
481 configs += [ "..:common_objc" ] | 481 configs += [ "..:common_objc" ] |
482 | 482 |
483 public_configs = [ ":objc_common_config" ] | 483 public_configs = [ ":common_config_objc" ] |
484 | 484 |
485 if (!build_with_chromium && is_clang) { | 485 if (!build_with_chromium && is_clang) { |
486 # Suppress warnings from the Chromium Clang plugin | 486 # Suppress warnings from the Chromium Clang plugin |
487 # (bugs.webrtc.org/163). | 487 # (bugs.webrtc.org/163). |
488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
489 } | 489 } |
490 | 490 |
491 deps = [ | 491 deps = [ |
492 ":objc_common", | 492 ":common_objc", |
493 ":objc_corevideoframebuffer", | 493 ":corevideoframebuffer_objc", |
494 ":objc_videotracksource", | 494 ":videotracksource_objc", |
495 "../api:video_frame_api", | 495 "../api:video_frame_api", |
496 "../common_video", | 496 "../common_video", |
497 "../media:rtc_media_base", | 497 "../media:rtc_media_base", |
498 "../modules:module_api", | 498 "../modules:module_api", |
499 "../pc:peerconnection", | 499 "../pc:peerconnection", |
500 "../rtc_base:rtc_base", | 500 "../rtc_base:rtc_base", |
501 ] | 501 ] |
502 } | 502 } |
503 | 503 |
504 if (rtc_include_tests) { | 504 if (rtc_include_tests) { |
505 rtc_source_set("objc_sdk_unittests") { | 505 rtc_source_set("sdk_unittests_objc") { |
506 testonly = true | 506 testonly = true |
507 | 507 |
508 # Skip restricting visibility on mobile platforms since the tests on tho
se | 508 # Skip restricting visibility on mobile platforms since the tests on tho
se |
509 # gets additional generated targets which would require many lines here
to | 509 # gets additional generated targets which would require many lines here
to |
510 # cover (which would be confusing to read and hard to maintain). | 510 # cover (which would be confusing to read and hard to maintain). |
511 if (!is_android && !is_ios) { | 511 if (!is_android && !is_ios) { |
512 visibility = [ "..:rtc_unittests" ] | 512 visibility = [ "..:rtc_unittests" ] |
513 } | 513 } |
514 sources = [ | 514 sources = [ |
515 "objc/Framework/UnitTests/RTCConfigurationTest.mm", | 515 "objc/Framework/UnitTests/RTCConfigurationTest.mm", |
(...skipping 17 matching lines...) Expand all Loading... |
533 [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ] | 533 [ "objc/Framework/UnitTests/RTCCameraVideoCapturerTests.mm" ] |
534 } | 534 } |
535 | 535 |
536 # |-ObjC| flag needed to make sure category method implementations | 536 # |-ObjC| flag needed to make sure category method implementations |
537 # are included: | 537 # are included: |
538 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | 538 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
539 ldflags = [ "-ObjC" ] | 539 ldflags = [ "-ObjC" ] |
540 | 540 |
541 defines = [ "GTEST_RELATIVE_PATH" ] | 541 defines = [ "GTEST_RELATIVE_PATH" ] |
542 deps = [ | 542 deps = [ |
543 ":objc_peerconnection", | 543 ":peerconnection_objc", |
544 ":objc_peerconnectionfactory", | 544 ":peerconnectionfactory_objc", |
545 ":objc_videotoolbox", | 545 ":videotoolbox_objc", |
546 ":objc_videotracksource", | 546 ":videotracksource_objc", |
547 "..//system_wrappers:system_wrappers_default", | 547 "..//system_wrappers:system_wrappers_default", |
548 "../modules:module_api", | 548 "../modules:module_api", |
549 "../rtc_base:rtc_base_tests_utils", | 549 "../rtc_base:rtc_base_tests_utils", |
550 "../system_wrappers:system_wrappers_default", | 550 "../system_wrappers:system_wrappers_default", |
551 "//third_party/ocmock", | 551 "//third_party/ocmock", |
552 ] | 552 ] |
553 | 553 |
554 if (is_ios) { | 554 if (is_ios) { |
555 sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ] | 555 sources += [ "objc/Framework/UnitTests/RTCAudioSessionTest.mm" ] |
556 | 556 |
(...skipping 10 matching lines...) Expand all Loading... |
567 } | 567 } |
568 if (!build_with_chromium && is_clang) { | 568 if (!build_with_chromium && is_clang) { |
569 # Suppress warnings from the Chromium Clang plugin | 569 # Suppress warnings from the Chromium Clang plugin |
570 # (bugs.webrtc.org/163). | 570 # (bugs.webrtc.org/163). |
571 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 571 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
572 } | 572 } |
573 } | 573 } |
574 } | 574 } |
575 | 575 |
576 if (is_ios) { | 576 if (is_ios) { |
577 ios_framework_bundle("objc_framework") { | 577 ios_framework_bundle("framework_objc") { |
578 info_plist = "objc/Framework/Info.plist" | 578 info_plist = "objc/Framework/Info.plist" |
579 output_name = "WebRTC" | 579 output_name = "WebRTC" |
580 common_objc_headers = [ | 580 common_objc_headers = [ |
581 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", | 581 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h", |
582 "objc/Framework/Headers/WebRTC/RTCAudioDecoderFactory.h", | 582 "objc/Framework/Headers/WebRTC/RTCAudioDecoderFactory.h", |
583 "objc/Framework/Headers/WebRTC/RTCAudioEncoderFactory.h", | 583 "objc/Framework/Headers/WebRTC/RTCAudioEncoderFactory.h", |
584 "objc/Framework/Headers/WebRTC/RTCAudioSession.h", | 584 "objc/Framework/Headers/WebRTC/RTCAudioSession.h", |
585 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", | 585 "objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h", |
586 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", | 586 "objc/Framework/Headers/WebRTC/RTCAudioSource.h", |
587 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", | 587 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] | 642 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] |
643 } | 643 } |
644 | 644 |
645 ldflags = [ | 645 ldflags = [ |
646 "-all_load", | 646 "-all_load", |
647 "-install_name", | 647 "-install_name", |
648 "@rpath/$output_name.framework/$output_name", | 648 "@rpath/$output_name.framework/$output_name", |
649 ] | 649 ] |
650 | 650 |
651 deps = [ | 651 deps = [ |
652 ":objc_audio", | 652 ":audio_objc", |
653 ":objc_peerconnection", | 653 ":peerconnection_objc", |
654 ":objc_ui", | 654 ":ui_objc", |
655 "../rtc_base:rtc_base_approved", | 655 "../rtc_base:rtc_base_approved", |
656 "../system_wrappers:field_trial_default", | 656 "../system_wrappers:field_trial_default", |
657 "../system_wrappers:metrics_default", | 657 "../system_wrappers:metrics_default", |
658 ] | 658 ] |
659 | 659 |
660 libs = [ | 660 libs = [ |
661 "AVFoundation.framework", | 661 "AVFoundation.framework", |
662 "CoreGraphics.framework", | 662 "CoreGraphics.framework", |
663 "CoreMedia.framework", | 663 "CoreMedia.framework", |
664 "GLKit.framework", | 664 "GLKit.framework", |
665 ] | 665 ] |
666 | 666 |
667 configs += [ "..:common_objc" ] | 667 configs += [ "..:common_objc" ] |
668 | 668 |
669 public_configs = [ ":objc_common_config" ] | 669 public_configs = [ ":common_config_objc" ] |
670 | 670 |
671 if (!build_with_chromium && is_clang) { | 671 if (!build_with_chromium && is_clang) { |
672 # Suppress warnings from the Chromium Clang plugin | 672 # Suppress warnings from the Chromium Clang plugin |
673 # (bugs.webrtc.org/163). | 673 # (bugs.webrtc.org/163). |
674 configs -= [ "//build/config/clang:find_bad_constructs" ] | 674 configs -= [ "//build/config/clang:find_bad_constructs" ] |
675 } | 675 } |
676 } | 676 } |
677 } | 677 } |
678 | 678 |
679 rtc_static_library("rtc_sdk_objc") { | 679 rtc_static_library("rtc_sdk_objc") { |
680 complete_static_lib = true | 680 complete_static_lib = true |
681 deps = [ | 681 deps = [ |
682 ":objc_peerconnection", | 682 ":peerconnection_objc", |
683 ":objc_ui", | 683 ":ui_objc", |
684 "../system_wrappers:field_trial_default", | 684 "../system_wrappers:field_trial_default", |
685 "../system_wrappers:metrics_default", | 685 "../system_wrappers:metrics_default", |
686 ] | 686 ] |
687 } | 687 } |
688 | 688 |
689 rtc_static_library("objc_corevideoframebuffer") { | 689 rtc_static_library("corevideoframebuffer_objc") { |
690 sources = [ | 690 sources = [ |
691 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", | 691 "objc/Framework/Classes/Video/corevideo_frame_buffer.cc", |
692 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", | 692 "objc/Framework/Classes/Video/corevideo_frame_buffer.h", |
693 ] | 693 ] |
694 | 694 |
695 deps = [ | 695 deps = [ |
696 "../common_video", | 696 "../common_video", |
697 "../rtc_base:rtc_base_approved", | 697 "../rtc_base:rtc_base_approved", |
698 ] | 698 ] |
699 | 699 |
700 if (!build_with_chromium && is_clang) { | 700 if (!build_with_chromium && is_clang) { |
701 # Suppress warnings from the Chromium Clang plugin | 701 # Suppress warnings from the Chromium Clang plugin |
702 # (bugs.webrtc.org/163). | 702 # (bugs.webrtc.org/163). |
703 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 703 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
704 } | 704 } |
705 | 705 |
706 libs = [ "CoreVideo.framework" ] | 706 libs = [ "CoreVideo.framework" ] |
707 } | 707 } |
708 | 708 |
709 rtc_static_library("objc_videotoolbox") { | 709 rtc_static_library("videotoolbox_objc") { |
710 sources = [ | 710 sources = [ |
711 "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm", | 711 "objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm", |
712 "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm", | 712 "objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm", |
713 "objc/Framework/Classes/VideoToolbox/helpers.cc", | 713 "objc/Framework/Classes/VideoToolbox/helpers.cc", |
714 "objc/Framework/Classes/VideoToolbox/helpers.h", | 714 "objc/Framework/Classes/VideoToolbox/helpers.h", |
715 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", | 715 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.cc", |
716 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", | 716 "objc/Framework/Classes/VideoToolbox/nalu_rewriter.h", |
717 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h", | 717 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.h", |
718 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm", | 718 "objc/Framework/Classes/VideoToolbox/objc_video_decoder_factory.mm", |
719 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.h", | 719 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.h", |
720 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm", | 720 "objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm", |
721 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", | 721 "objc/Framework/Headers/WebRTC/RTCVideoFrameBuffer.h", |
722 ] | 722 ] |
723 | 723 |
724 configs += [ "..:common_objc" ] | 724 configs += [ "..:common_objc" ] |
725 | 725 |
726 deps = [ | 726 deps = [ |
727 ":objc_common", | 727 ":common_objc", |
728 ":objc_video", | 728 ":video_objc", |
729 ":objc_videotracksource", | 729 ":videotracksource_objc", |
730 "../api/video_codecs:video_codecs_api", | 730 "../api/video_codecs:video_codecs_api", |
731 "../common_video", | 731 "../common_video", |
732 "../media:rtc_media", | 732 "../media:rtc_media", |
733 "../media:rtc_media_base", | 733 "../media:rtc_media_base", |
734 "../modules:module_api", | 734 "../modules:module_api", |
735 "../modules/video_coding:video_coding_utility", | 735 "../modules/video_coding:video_coding_utility", |
736 "../modules/video_coding:webrtc_h264", | 736 "../modules/video_coding:webrtc_h264", |
737 "../rtc_base:rtc_base_approved", | 737 "../rtc_base:rtc_base_approved", |
738 "../system_wrappers", | 738 "../system_wrappers", |
739 ] | 739 ] |
(...skipping 16 matching lines...) Expand all Loading... |
756 public_deps = [ | 756 public_deps = [ |
757 "$rtc_libyuv_dir", | 757 "$rtc_libyuv_dir", |
758 ] | 758 ] |
759 } else { | 759 } else { |
760 # Need to add a directory normally exported by libyuv. | 760 # Need to add a directory normally exported by libyuv. |
761 include_dirs = [ "$rtc_libyuv_dir/include" ] | 761 include_dirs = [ "$rtc_libyuv_dir/include" ] |
762 } | 762 } |
763 } | 763 } |
764 } | 764 } |
765 } | 765 } |
OLD | NEW |