OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 | 10 |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 if (symbol_level == 0) { | 1328 if (symbol_level == 0) { |
1329 configs = [ ":no_symbols" ] | 1329 configs = [ ":no_symbols" ] |
1330 } else if (symbol_level == 1) { | 1330 } else if (symbol_level == 1) { |
1331 configs = [ ":minimal_symbols" ] | 1331 configs = [ ":minimal_symbols" ] |
1332 } else if (symbol_level == 2) { | 1332 } else if (symbol_level == 2) { |
1333 configs = [ ":symbols" ] | 1333 configs = [ ":symbols" ] |
1334 } else { | 1334 } else { |
1335 assert(false) | 1335 assert(false) |
1336 } | 1336 } |
1337 } | 1337 } |
| 1338 |
| 1339 if (is_ios || is_mac) { |
| 1340 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1341 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1342 config("enable_arc") { |
| 1343 common_flags = [ "-fobjc-arc" ] |
| 1344 cflags_objc = common_flags |
| 1345 cflags_objcc = common_flags |
| 1346 } |
| 1347 } |
OLD | NEW |