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

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

Issue 2843493002: [ios] Partially decouple iOS and macOS GN configuration. (Closed)
Patch Set: Address comment. Created 3 years, 7 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
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/ios/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 # categories here, add it to the associated file to keep this shared config 158 # categories here, add it to the associated file to keep this shared config
159 # smaller. 159 # smaller.
160 if (is_win) { 160 if (is_win) {
161 configs += [ "//build/config/win:compiler" ] 161 configs += [ "//build/config/win:compiler" ]
162 } else if (is_android) { 162 } else if (is_android) {
163 configs += [ "//build/config/android:compiler" ] 163 configs += [ "//build/config/android:compiler" ]
164 } else if (is_linux) { 164 } else if (is_linux) {
165 configs += [ "//build/config/linux:compiler" ] 165 configs += [ "//build/config/linux:compiler" ]
166 } else if (is_nacl) { 166 } else if (is_nacl) {
167 configs += [ "//build/config/nacl:compiler" ] 167 configs += [ "//build/config/nacl:compiler" ]
168 } else if (is_ios || is_mac) { 168 } else if (is_mac) {
169 configs += [ "//build/config/mac:compiler" ] 169 configs += [ "//build/config/mac:compiler" ]
170 } else if (is_ios) {
171 configs += [ "//build/config/ios:compiler" ]
170 } 172 }
171 173
172 # See the definitions below. 174 # See the definitions below.
173 configs += [ 175 configs += [
174 ":compiler_cpu_abi", 176 ":compiler_cpu_abi",
175 ":compiler_codegen", 177 ":compiler_codegen",
176 ] 178 ]
177 179
178 # In general, Windows is totally different, but all the other builds share 180 # In general, Windows is totally different, but all the other builds share
179 # some common GCC configuration. 181 # some common GCC configuration.
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 1745
1744 if (is_ios || is_mac) { 1746 if (is_ios || is_mac) {
1745 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1747 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1746 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1748 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1747 config("enable_arc") { 1749 config("enable_arc") {
1748 common_flags = [ "-fobjc-arc" ] 1750 common_flags = [ "-fobjc-arc" ]
1749 cflags_objc = common_flags 1751 cflags_objc = common_flags
1750 cflags_objcc = common_flags 1752 cflags_objcc = common_flags
1751 } 1753 }
1752 } 1754 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/ios/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698