| 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 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } else if (is_android) { | 155 } else if (is_android) { |
| 156 configs += [ "//build/config/android:compiler" ] | 156 configs += [ "//build/config/android:compiler" ] |
| 157 } else if (is_linux) { | 157 } else if (is_linux) { |
| 158 configs += [ "//build/config/linux:compiler" ] | 158 configs += [ "//build/config/linux:compiler" ] |
| 159 } else if (is_nacl) { | 159 } else if (is_nacl) { |
| 160 configs += [ "//build/config/nacl:compiler" ] | 160 configs += [ "//build/config/nacl:compiler" ] |
| 161 } else if (is_ios || is_mac) { | 161 } else if (is_ios || is_mac) { |
| 162 configs += [ "//build/config/mac:compiler" ] | 162 configs += [ "//build/config/mac:compiler" ] |
| 163 } | 163 } |
| 164 | 164 |
| 165 # Applies to all Posix systems. |
| 166 if (is_posix) { |
| 167 configs += [ "//build/config/posix:compiler" ] |
| 168 } |
| 169 |
| 165 # See the definitions below. | 170 # See the definitions below. |
| 166 configs += [ | 171 configs += [ |
| 167 ":compiler_cpu_abi", | 172 ":compiler_cpu_abi", |
| 168 ":compiler_codegen", | 173 ":compiler_codegen", |
| 169 ] | 174 ] |
| 170 | 175 |
| 171 # In general, Windows is totally different, but all the other builds share | 176 # In general, Windows is totally different, but all the other builds share |
| 172 # some common GCC configuration. | 177 # some common GCC configuration. |
| 173 if (!is_win) { | 178 if (!is_win) { |
| 174 # Common GCC compiler flags setup. | 179 # Common GCC compiler flags setup. |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 | 1432 |
| 1428 if (is_ios || is_mac) { | 1433 if (is_ios || is_mac) { |
| 1429 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1434 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1430 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1435 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1431 config("enable_arc") { | 1436 config("enable_arc") { |
| 1432 common_flags = [ "-fobjc-arc" ] | 1437 common_flags = [ "-fobjc-arc" ] |
| 1433 cflags_objc = common_flags | 1438 cflags_objc = common_flags |
| 1434 cflags_objcc = common_flags | 1439 cflags_objcc = common_flags |
| 1435 } | 1440 } |
| 1436 } | 1441 } |
| OLD | NEW |