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