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

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

Issue 2781713004: GN: Enable ARC for Mac and iOS in rtc_* templates (Closed)
Patch Set: Rebase 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
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 sources += [ 213 sources += [
217 "objc/Framework/Classes/RTCNSGLVideoView.m", 214 "objc/Framework/Classes/RTCNSGLVideoView.m",
218 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h", 215 "objc/Framework/Headers/WebRTC/RTCNSGLVideoView.h",
219 ] 216 ]
220 libs = [ 217 libs = [
221 "CoreMedia.framework", 218 "CoreMedia.framework",
222 "OpenGL.framework", 219 "OpenGL.framework",
223 ] 220 ]
224 } 221 }
225 222
226 configs += [ 223 configs += [ "..:common_objc" ]
227 "..:common_objc",
228 "//build/config/compiler:enable_arc",
229 ]
230 224
231 public_configs = [ ":rtc_sdk_common_objc_config" ] 225 public_configs = [ ":rtc_sdk_common_objc_config" ]
232 226
233 if (!build_with_chromium && is_clang) { 227 if (!build_with_chromium && is_clang) {
234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 228 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 229 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
236 } 230 }
237 231
238 libs += [ "AVFoundation.framework" ] 232 libs += [ "AVFoundation.framework" ]
239 233
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 352
359 libs = [ 353 libs = [
360 "AVFoundation.framework", 354 "AVFoundation.framework",
361 "AudioToolbox.framework", 355 "AudioToolbox.framework",
362 "CoreGraphics.framework", 356 "CoreGraphics.framework",
363 "CoreMedia.framework", 357 "CoreMedia.framework",
364 "GLKit.framework", 358 "GLKit.framework",
365 "VideoToolbox.framework", 359 "VideoToolbox.framework",
366 ] 360 ]
367 361
368 configs += [ 362 configs += [ "..:common_objc" ]
369 "..:common_objc",
370 "//build/config/compiler:enable_arc",
371 ]
372 363
373 public_configs = [ ":rtc_sdk_common_objc_config" ] 364 public_configs = [ ":rtc_sdk_common_objc_config" ]
374 365
375 if (!build_with_chromium && is_clang) { 366 if (!build_with_chromium && is_clang) {
376 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) 367 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
377 configs -= [ "//build/config/clang:find_bad_constructs" ] 368 configs -= [ "//build/config/clang:find_bad_constructs" ]
378 } 369 }
379 } 370 }
380 } 371 }
381 372
382 rtc_static_library("rtc_sdk_objc") { 373 rtc_static_library("rtc_sdk_objc") {
383 complete_static_lib = true 374 complete_static_lib = true
384 deps = [ 375 deps = [
385 ":rtc_sdk_peerconnection_objc", 376 ":rtc_sdk_peerconnection_objc",
386 "//webrtc/system_wrappers:field_trial_default", 377 "//webrtc/system_wrappers:field_trial_default",
387 "//webrtc/system_wrappers:metrics_default", 378 "//webrtc/system_wrappers:metrics_default",
388 ] 379 ]
389 } 380 }
390 381
391 rtc_static_library("webrtc_h264_video_toolbox") { 382 rtc_static_library("webrtc_h264_video_toolbox") {
392 sources = [ 383 sources = [
393 "objc/Framework/Classes/h264_video_toolbox_decoder.cc", 384 "objc/Framework/Classes/h264_video_toolbox_decoder.cc",
394 "objc/Framework/Classes/h264_video_toolbox_decoder.h", 385 "objc/Framework/Classes/h264_video_toolbox_decoder.h",
395 "objc/Framework/Classes/h264_video_toolbox_encoder.h", 386 "objc/Framework/Classes/h264_video_toolbox_encoder.h",
396 "objc/Framework/Classes/h264_video_toolbox_encoder.mm", 387 "objc/Framework/Classes/h264_video_toolbox_encoder.mm",
397 "objc/Framework/Classes/h264_video_toolbox_nalu.cc", 388 "objc/Framework/Classes/h264_video_toolbox_nalu.cc",
398 "objc/Framework/Classes/h264_video_toolbox_nalu.h", 389 "objc/Framework/Classes/h264_video_toolbox_nalu.h",
399 ] 390 ]
400 391
401 configs += [ 392 configs += [ "//webrtc:common_objc" ]
402 "//webrtc:common_objc",
403 "//build/config/compiler:enable_arc",
404 ]
405 393
406 deps = [ 394 deps = [
407 ":rtc_sdk_common_objc", 395 ":rtc_sdk_common_objc",
408 ] 396 ]
409 397
410 libs = [ 398 libs = [
411 "CoreFoundation.framework", 399 "CoreFoundation.framework",
412 "CoreMedia.framework", 400 "CoreMedia.framework",
413 "CoreVideo.framework", 401 "CoreVideo.framework",
414 "VideoToolbox.framework", 402 "VideoToolbox.framework",
415 ] 403 ]
416 404
417 if (!build_with_chromium && is_clang) { 405 if (!build_with_chromium && is_clang) {
418 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 406 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
419 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 407 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
420 } 408 }
421 409
422 if (rtc_build_libyuv) { 410 if (rtc_build_libyuv) {
423 deps += [ "$rtc_libyuv_dir" ] 411 deps += [ "$rtc_libyuv_dir" ]
424 public_deps = [ 412 public_deps = [
425 "$rtc_libyuv_dir", 413 "$rtc_libyuv_dir",
426 ] 414 ]
427 } else { 415 } else {
428 # Need to add a directory normally exported by libyuv. 416 # Need to add a directory normally exported by libyuv.
429 include_dirs = [ "$rtc_libyuv_dir/include" ] 417 include_dirs = [ "$rtc_libyuv_dir/include" ]
430 } 418 }
431 } 419 }
432 } 420 }
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm ('k') | webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698