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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } else if (is_android) { | 158 } else if (is_android) { |
159 configs += [ "//build/config/android:compiler" ] | 159 configs += [ "//build/config/android:compiler" ] |
160 } else if (is_linux) { | 160 } else if (is_linux) { |
161 configs += [ "//build/config/linux:compiler" ] | 161 configs += [ "//build/config/linux:compiler" ] |
162 } else if (is_nacl) { | 162 } else if (is_nacl) { |
163 configs += [ "//build/config/nacl:compiler" ] | 163 configs += [ "//build/config/nacl:compiler" ] |
164 } else if (is_ios || is_mac) { | 164 } else if (is_ios || is_mac) { |
165 configs += [ "//build/config/mac:compiler" ] | 165 configs += [ "//build/config/mac:compiler" ] |
166 } | 166 } |
167 | 167 |
168 # Applies to all Posix systems. | |
169 if (is_posix) { | |
170 configs += [ "//build/config/posix:compiler" ] | |
171 } | |
172 | |
173 # See the definitions below. | 168 # See the definitions below. |
174 configs += [ | 169 configs += [ |
175 ":compiler_cpu_abi", | 170 ":compiler_cpu_abi", |
176 ":compiler_codegen", | 171 ":compiler_codegen", |
177 ] | 172 ] |
178 | 173 |
179 # In general, Windows is totally different, but all the other builds share | 174 # In general, Windows is totally different, but all the other builds share |
180 # some common GCC configuration. | 175 # some common GCC configuration. |
181 if (!is_win) { | 176 if (!is_win) { |
182 # Common GCC compiler flags setup. | 177 # Common GCC compiler flags setup. |
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 | 1443 |
1449 if (is_ios || is_mac) { | 1444 if (is_ios || is_mac) { |
1450 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1445 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1451 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1446 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1452 config("enable_arc") { | 1447 config("enable_arc") { |
1453 common_flags = [ "-fobjc-arc" ] | 1448 common_flags = [ "-fobjc-arc" ] |
1454 cflags_objc = common_flags | 1449 cflags_objc = common_flags |
1455 cflags_objcc = common_flags | 1450 cflags_objcc = common_flags |
1456 } | 1451 } |
1457 } | 1452 } |
OLD | NEW |