Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: webrtc/sdk/BUILD.gn

Issue 2340633003: [GN] Add rtc_sdk_framework_objc target to GN (Closed)
Patch Set: Extract common headers Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("//build/config/mac/mac_sdk.gni") 10 if (is_mac) {
11 import("//build/config/mac/mac_sdk.gni")
12 import("//build/config/mac/rules.gni")
13 }
14 if (is_ios) {
15 import("//build/config/ios/rules.gni")
16 }
11 17
12 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { 18 if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
13 config("rtc_sdk_common_objc_config") { 19 config("rtc_sdk_common_objc_config") {
14 include_dirs = [ 20 include_dirs = [
15 "objc/Framework/Classes", 21 "objc/Framework/Classes",
16 "objc/Framework/Headers", 22 "objc/Framework/Headers",
17 ] 23 ]
18 } 24 }
19 25
20 rtc_source_set("rtc_sdk_common_objc") { 26 rtc_source_set("rtc_sdk_common_objc") {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 "../api:libjingle_peerconnection", 209 "../api:libjingle_peerconnection",
204 ] 210 ]
205 211
206 if (rtc_build_libyuv) { 212 if (rtc_build_libyuv) {
207 deps += [ "$rtc_libyuv_dir" ] 213 deps += [ "$rtc_libyuv_dir" ]
208 public_deps = [ 214 public_deps = [
209 "$rtc_libyuv_dir", 215 "$rtc_libyuv_dir",
210 ] 216 ]
211 } 217 }
212 } 218 }
219 common_objc_headers = [
220 "objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
221 "objc/Framework/Headers/WebRTC/RTCAudioSource.h",
222 "objc/Framework/Headers/WebRTC/RTCAudioTrack.h",
223 "objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
224 "objc/Framework/Headers/WebRTC/RTCConfiguration.h",
225 "objc/Framework/Headers/WebRTC/RTCDataChannel.h",
226 "objc/Framework/Headers/WebRTC/RTCDataChannelConfiguration.h",
227 "objc/Framework/Headers/WebRTC/RTCDispatcher.h",
228 "objc/Framework/Headers/WebRTC/RTCEAGLVideoView.h",
229 "objc/Framework/Headers/WebRTC/RTCFieldTrials.h",
230 "objc/Framework/Headers/WebRTC/RTCIceCandidate.h",
231 "objc/Framework/Headers/WebRTC/RTCIceServer.h",
232 "objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h",
233 "objc/Framework/Headers/WebRTC/RTCMacros.h",
234 "objc/Framework/Headers/WebRTC/RTCMediaConstraints.h",
235 "objc/Framework/Headers/WebRTC/RTCMediaSource.h",
236 "objc/Framework/Headers/WebRTC/RTCMediaStream.h",
237 "objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
238 "objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h",
239 "objc/Framework/Headers/WebRTC/RTCPeerConnection.h",
240 "objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h",
241 "objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h",
242 "objc/Framework/Headers/WebRTC/RTCRtpEncodingParameters.h",
243 "objc/Framework/Headers/WebRTC/RTCRtpParameters.h",
244 "objc/Framework/Headers/WebRTC/RTCRtpReceiver.h",
245 "objc/Framework/Headers/WebRTC/RTCRtpSender.h",
246 "objc/Framework/Headers/WebRTC/RTCSessionDescription.h",
247 "objc/Framework/Headers/WebRTC/RTCVideoFrame.h",
248 "objc/Framework/Headers/WebRTC/RTCVideoRenderer.h",
249 "objc/Framework/Headers/WebRTC/RTCVideoSource.h",
250 "objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
251 "objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
252 "objc/Framework/Headers/WebRTC/WebRTC.h",
253 ]
254 if (is_mac) {
255 mac_framework_bundle("rtc_sdk_framework_objc") {
256 info_plist = "objc/Framework/Info.plist"
257 output_name = "WebRTC"
213 258
214 # TODO(tkchin): Add the rtc_sdk_framework_objc target. 259 sources = common_objc_headers
kjellander_webrtc 2016/09/14 13:24:10 This one should have + "objc/Framework/Headers/We
260
261 if (!build_with_chromium) {
262 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
263 }
264
265 deps = [
266 ":rtc_sdk_peerconnection_objc",
267 "//webrtc/system_wrappers:field_trial_default",
268 "//webrtc/system_wrappers:metrics_default",
269 ]
270
271 libs = [
272 "AVFoundation.framework",
273 "AudioToolbox.framework",
274 "CoreGraphics.framework",
275 "CoreMedia.framework",
276 "GLKit.framework",
277 "VideoToolbox.framework",
278 ]
279
280 configs += [
281 "..:common_objc",
282 "//build/config/compiler:enable_arc",
283 ]
284
285 public_configs = [ ":rtc_sdk_common_objc_config" ]
286
287 if (is_clang) {
288 # Suppress warnings from the Chromium Clang plugins.
289 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
290 configs -= [ "//build/config/clang:find_bad_constructs" ]
291 }
292 }
293 }
294 if (is_ios) {
295 ios_framework_bundle("rtc_sdk_framework_objc") {
296 info_plist = "objc/Framework/Info.plist"
297 output_name = "WebRTC"
298
299 sources = common_objc_headers
300 public_headers = common_objc_headers
301
302 if (!build_with_chromium) {
303 sources += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
304 public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
305 }
306
307 deps = [
308 ":rtc_sdk_peerconnection_objc",
309 "//webrtc/system_wrappers:field_trial_default",
310 "//webrtc/system_wrappers:metrics_default",
311 ]
312
313 libs = [
314 "AVFoundation.framework",
315 "AudioToolbox.framework",
316 "CoreGraphics.framework",
317 "CoreMedia.framework",
318 "GLKit.framework",
319 "VideoToolbox.framework",
320 ]
321
322 configs += [
323 "..:common_objc",
324 "//build/config/compiler:enable_arc",
325 ]
326
327 public_configs = [ ":rtc_sdk_common_objc_config" ]
328
329 if (is_clang) {
330 # Suppress warnings from the Chromium Clang plugins.
331 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
332 configs -= [ "//build/config/clang:find_bad_constructs" ]
333 }
334 }
335 }
215 } 336 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698