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

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

Issue 2778163002: GN: Enable ARC for Mac and iOS in rtc_* templates (Closed)
Patch Set: Created 3 years, 8 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 | « webrtc/examples/BUILD.gn ('k') | webrtc/webrtc.gni » ('j') | 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("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_ios) { 10 if (is_ios) {
(...skipping 13 matching lines...) Expand all
24 include_dirs = [ 24 include_dirs = [
25 "objc/Framework/Classes", 25 "objc/Framework/Classes",
26 "objc/Framework/Headers", 26 "objc/Framework/Headers",
27 ] 27 ]
28 } 28 }
29 29
30 rtc_static_library("rtc_sdk_common_objc") { 30 rtc_static_library("rtc_sdk_common_objc") {
31 deps = [ 31 deps = [
32 "../base:rtc_base", 32 "../base:rtc_base",
33 ] 33 ]
34 configs += [ 34 configs += [ "..:common_objc" ]
35 "..:common_objc",
36 "//build/config/compiler:enable_arc",
37 ]
38 public_configs = [ ":rtc_sdk_common_objc_config" ] 35 public_configs = [ ":rtc_sdk_common_objc_config" ]
39 sources = [ 36 sources = [
40 "objc/Framework/Classes/NSString+StdString.h", 37 "objc/Framework/Classes/NSString+StdString.h",
41 "objc/Framework/Classes/NSString+StdString.mm", 38 "objc/Framework/Classes/NSString+StdString.mm",
42 "objc/Framework/Classes/RTCDispatcher.m", 39 "objc/Framework/Classes/RTCDispatcher.m",
43 "objc/Framework/Classes/RTCFieldTrials.mm", 40 "objc/Framework/Classes/RTCFieldTrials.mm",
44 "objc/Framework/Classes/RTCLogging.mm", 41 "objc/Framework/Classes/RTCLogging.mm",
45 "objc/Framework/Classes/RTCMetrics.mm", 42 "objc/Framework/Classes/RTCMetrics.mm",
46 "objc/Framework/Classes/RTCMetricsSampleInfo+Private.h", 43 "objc/Framework/Classes/RTCMetricsSampleInfo+Private.h",
47 "objc/Framework/Classes/RTCMetricsSampleInfo.mm", 44 "objc/Framework/Classes/RTCMetricsSampleInfo.mm",
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 sources += [ 209 sources += [
213 "objc/Framework/Classes/RTCNSGLVideoView.m", 210 "objc/Framework/Classes/RTCNSGLVideoView.m",
214 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", 211 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
215 ] 212 ]
216 libs = [ 213 libs = [
217 "CoreMedia.framework", 214 "CoreMedia.framework",
218 "OpenGL.framework", 215 "OpenGL.framework",
219 ] 216 ]
220 } 217 }
221 218
222 configs += [ 219 configs += [ "..:common_objc" ]
223 "..:common_objc",
224 "//build/config/compiler:enable_arc",
225 ]
226 220
227 public_configs = [ ":rtc_sdk_common_objc_config" ] 221 public_configs = [ ":rtc_sdk_common_objc_config" ]
228 222
229 if (!build_with_chromium && is_clang) { 223 if (!build_with_chromium && is_clang) {
230 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 224 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
231 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 225 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
232 } 226 }
233 227
234 libs += [ "AVFoundation.framework" ] 228 libs += [ "AVFoundation.framework" ]
235 229
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 348
355 libs = [ 349 libs = [
356 "AVFoundation.framework", 350 "AVFoundation.framework",
357 "AudioToolbox.framework", 351 "AudioToolbox.framework",
358 "CoreGraphics.framework", 352 "CoreGraphics.framework",
359 "CoreMedia.framework", 353 "CoreMedia.framework",
360 "GLKit.framework", 354 "GLKit.framework",
361 "VideoToolbox.framework", 355 "VideoToolbox.framework",
362 ] 356 ]
363 357
364 configs += [ 358 configs += [ "..:common_objc" ]
365 "..:common_objc",
366 "//build/config/compiler:enable_arc",
367 ]
368 359
369 public_configs = [ ":rtc_sdk_common_objc_config" ] 360 public_configs = [ ":rtc_sdk_common_objc_config" ]
370 361
371 if (!build_with_chromium && is_clang) { 362 if (!build_with_chromium && is_clang) {
372 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) 363 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
373 configs -= [ "//build/config/clang:find_bad_constructs" ] 364 configs -= [ "//build/config/clang:find_bad_constructs" ]
374 } 365 }
375 } 366 }
376 } 367 }
377 368
378 rtc_static_library("rtc_sdk_objc") { 369 rtc_static_library("rtc_sdk_objc") {
379 complete_static_lib = true 370 complete_static_lib = true
380 deps = [ 371 deps = [
381 ":rtc_sdk_peerconnection_objc", 372 ":rtc_sdk_peerconnection_objc",
382 "//webrtc/system_wrappers:field_trial_default", 373 "//webrtc/system_wrappers:field_trial_default",
383 "//webrtc/system_wrappers:metrics_default", 374 "//webrtc/system_wrappers:metrics_default",
384 ] 375 ]
385 } 376 }
386 377
387 rtc_static_library("webrtc_h264_video_toolbox") { 378 rtc_static_library("webrtc_h264_video_toolbox") {
388 sources = [ 379 sources = [
389 "objc/Framework/Classes/h264_video_toolbox_decoder.cc", 380 "objc/Framework/Classes/h264_video_toolbox_decoder.cc",
390 "objc/Framework/Classes/h264_video_toolbox_decoder.h", 381 "objc/Framework/Classes/h264_video_toolbox_decoder.h",
391 "objc/Framework/Classes/h264_video_toolbox_encoder.h", 382 "objc/Framework/Classes/h264_video_toolbox_encoder.h",
392 "objc/Framework/Classes/h264_video_toolbox_encoder.mm", 383 "objc/Framework/Classes/h264_video_toolbox_encoder.mm",
393 "objc/Framework/Classes/h264_video_toolbox_nalu.cc", 384 "objc/Framework/Classes/h264_video_toolbox_nalu.cc",
394 "objc/Framework/Classes/h264_video_toolbox_nalu.h", 385 "objc/Framework/Classes/h264_video_toolbox_nalu.h",
395 ] 386 ]
396 387
397 configs += [ 388 configs += [ "//webrtc:common_objc" ]
398 "//webrtc:common_objc",
399 "//build/config/compiler:enable_arc",
400 ]
401 389
402 deps = [ 390 deps = [
403 ":rtc_sdk_common_objc", 391 ":rtc_sdk_common_objc",
404 ] 392 ]
405 393
406 libs = [ 394 libs = [
407 "CoreFoundation.framework", 395 "CoreFoundation.framework",
408 "CoreMedia.framework", 396 "CoreMedia.framework",
409 "CoreVideo.framework", 397 "CoreVideo.framework",
410 "VideoToolbox.framework", 398 "VideoToolbox.framework",
411 ] 399 ]
412 400
413 if (!build_with_chromium && is_clang) { 401 if (!build_with_chromium && is_clang) {
414 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 402 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
415 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
416 } 404 }
417 405
418 if (rtc_build_libyuv) { 406 if (rtc_build_libyuv) {
419 deps += [ "$rtc_libyuv_dir" ] 407 deps += [ "$rtc_libyuv_dir" ]
420 public_deps = [ 408 public_deps = [
421 "$rtc_libyuv_dir", 409 "$rtc_libyuv_dir",
422 ] 410 ]
423 } else { 411 } else {
424 # Need to add a directory normally exported by libyuv. 412 # Need to add a directory normally exported by libyuv.
425 include_dirs = [ "$rtc_libyuv_dir/include" ] 413 include_dirs = [ "$rtc_libyuv_dir/include" ]
426 } 414 }
427 } 415 }
428 } 416 }
OLDNEW
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/webrtc.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698