| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 # where stuff should go. Put warning related stuff in the "warnings" config. | 141 # where stuff should go. Put warning related stuff in the "warnings" config. |
| 142 | 142 |
| 143 config("compiler") { | 143 config("compiler") { |
| 144 asmflags = [] | 144 asmflags = [] |
| 145 cflags = [] | 145 cflags = [] |
| 146 cflags_c = [] | 146 cflags_c = [] |
| 147 cflags_cc = [] | 147 cflags_cc = [] |
| 148 cflags_objc = [] | 148 cflags_objc = [] |
| 149 cflags_objcc = [] | 149 cflags_objcc = [] |
| 150 ldflags = [] | 150 ldflags = [] |
| 151 defines = [] | 151 defines = [ "CQ_TEST=4" ] |
| 152 configs = [] | 152 configs = [] |
| 153 | 153 |
| 154 # System-specific flags. If your compiler flags apply to one of the | 154 # System-specific flags. If your compiler flags apply to one of the |
| 155 # categories here, add it to the associated file to keep this shared config | 155 # categories here, add it to the associated file to keep this shared config |
| 156 # smaller. | 156 # smaller. |
| 157 if (is_win) { | 157 if (is_win) { |
| 158 configs += [ "//build/config/win:compiler" ] | 158 configs += [ "//build/config/win:compiler" ] |
| 159 } else if (is_android) { | 159 } else if (is_android) { |
| 160 configs += [ "//build/config/android:compiler" ] | 160 configs += [ "//build/config/android:compiler" ] |
| 161 } else if (is_linux) { | 161 } else if (is_linux) { |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 | 1706 |
| 1707 if (is_ios || is_mac) { | 1707 if (is_ios || is_mac) { |
| 1708 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1708 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1709 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1709 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1710 config("enable_arc") { | 1710 config("enable_arc") { |
| 1711 common_flags = [ "-fobjc-arc" ] | 1711 common_flags = [ "-fobjc-arc" ] |
| 1712 cflags_objc = common_flags | 1712 cflags_objc = common_flags |
| 1713 cflags_objcc = common_flags | 1713 cflags_objcc = common_flags |
| 1714 } | 1714 } |
| 1715 } | 1715 } |
| OLD | NEW |