Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 2843493002: [ios] Partially decouple iOS and macOS GN configuration. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/compiler/compiler.gni") 8 import("//build/config/compiler/compiler.gni")
9 import("//build/config/nacl/config.gni") 9 import("//build/config/nacl/config.gni")
10 import("//build/toolchain/cc_wrapper.gni") 10 import("//build/toolchain/cc_wrapper.gni")
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 # categories here, add it to the associated file to keep this shared config 156 # categories here, add it to the associated file to keep this shared config
157 # smaller. 157 # smaller.
158 if (is_win) { 158 if (is_win) {
159 configs += [ "//build/config/win:compiler" ] 159 configs += [ "//build/config/win:compiler" ]
160 } else if (is_android) { 160 } else if (is_android) {
161 configs += [ "//build/config/android:compiler" ] 161 configs += [ "//build/config/android:compiler" ]
162 } else if (is_linux) { 162 } else if (is_linux) {
163 configs += [ "//build/config/linux:compiler" ] 163 configs += [ "//build/config/linux:compiler" ]
164 } else if (is_nacl) { 164 } else if (is_nacl) {
165 configs += [ "//build/config/nacl:compiler" ] 165 configs += [ "//build/config/nacl:compiler" ]
166 } else if (is_ios || is_mac) { 166 } else if (is_mac) {
167 configs += [ "//build/config/mac:compiler" ] 167 configs += [ "//build/config/mac:compiler" ]
168 } else if (is_ios) {
169 configs += [ "//build/config/ios:compiler" ]
168 } 170 }
169 171
170 # See the definitions below. 172 # See the definitions below.
171 configs += [ 173 configs += [
172 ":compiler_cpu_abi", 174 ":compiler_cpu_abi",
173 ":compiler_codegen", 175 ":compiler_codegen",
174 ] 176 ]
175 177
176 # In general, Windows is totally different, but all the other builds share 178 # In general, Windows is totally different, but all the other builds share
177 # some common GCC configuration. 179 # some common GCC configuration.
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 1733
1732 if (is_ios || is_mac) { 1734 if (is_ios || is_mac) {
1733 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1735 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1734 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1736 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1735 config("enable_arc") { 1737 config("enable_arc") {
1736 common_flags = [ "-fobjc-arc" ] 1738 common_flags = [ "-fobjc-arc" ]
1737 cflags_objc = common_flags 1739 cflags_objc = common_flags
1738 cflags_objcc = common_flags 1740 cflags_objcc = common_flags
1739 } 1741 }
1740 } 1742 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698