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