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

Side by Side Diff: build/toolchain/mac/BUILD.gn

Issue 2392603005: Improvements to tools/gn.py (Closed)
Patch Set: Better script description Created 4 years, 2 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 | « no previous file | tools/build.py » ('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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 import("//build/config/ios/ios_sdk.gni")
11 import("//build/config/mac/mac_sdk.gni") 10 import("//build/config/mac/mac_sdk.gni")
12 11
13 assert(host_os == "mac") 12 assert(host_os == "mac")
14 13
15 import("//build/toolchain/clang.gni") 14 import("//build/toolchain/clang.gni")
16 import("//build/toolchain/goma.gni") 15 import("//build/toolchain/goma.gni")
17 import("//build/config/sysroot.gni") 16 import("//build/config/sysroot.gni")
18 17
19 if (use_goma) { 18 if (use_goma) {
20 goma_prefix = "$goma_dir/gomacc " 19 goma_prefix = "$goma_dir/gomacc "
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 target_os = target_os 200 target_os = target_os
202 target_cpu = target_cpu 201 target_cpu = target_cpu
203 202
204 if (defined(invoker.is_clang)) { 203 if (defined(invoker.is_clang)) {
205 is_clang = invoker.is_clang 204 is_clang = invoker.is_clang
206 } 205 }
207 } 206 }
208 } 207 }
209 } 208 }
210 209
211 # Toolchain used for iOS device targets.
212 mac_toolchain("ios_clang_arm") {
213 toolchain_cpu = "arm"
214 toolchain_os = "mac"
215 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
216 root_build_dir)
217 cc = "${goma_prefix}$prefix/clang"
218 cxx = "${goma_prefix}$prefix/clang++"
219 ld = cxx
220 is_clang = true
221 sysroot_flags = "-isysroot $ios_device_sdk_path -miphoneos-version-min=$ios_de ployment_target"
222 }
223
224 # Toolchain used for iOS simulator targets.
225 mac_toolchain("ios_clang_x64") {
226 toolchain_cpu = "x64"
227 toolchain_os = "mac"
228 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
229 root_build_dir)
230 cc = "${goma_prefix}$prefix/clang"
231 cxx = "${goma_prefix}$prefix/clang++"
232 ld = cxx
233 is_clang = true
234 sysroot_flags = "-isysroot $ios_simulator_sdk_path -mios-simulator-version-min =$ios_deployment_target"
235 }
236
237 # Toolchain used for Mac host targets. 210 # Toolchain used for Mac host targets.
238 mac_toolchain("clang_x64") { 211 mac_toolchain("clang_x64") {
239 toolchain_cpu = "x64" 212 toolchain_cpu = "x64"
240 toolchain_os = "mac" 213 toolchain_os = "mac"
241 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 214 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
242 root_build_dir) 215 root_build_dir)
243 cc = "${goma_prefix}$prefix/clang" 216 cc = "${goma_prefix}$prefix/clang"
244 cxx = "${goma_prefix}$prefix/clang++" 217 cxx = "${goma_prefix}$prefix/clang++"
245 ld = cxx 218 ld = cxx
246 is_clang = true 219 is_clang = true
247 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" 220 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min"
248 } 221 }
249 222
250 # Toolchain used for Mac host (i386) targets. 223 # Toolchain used for Mac host (i386) targets.
251 mac_toolchain("clang_i386") { 224 mac_toolchain("clang_i386") {
252 toolchain_cpu = "i386" 225 toolchain_cpu = "i386"
253 toolchain_os = "mac" 226 toolchain_os = "mac"
254 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 227 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
255 root_build_dir) 228 root_build_dir)
256 cc = "${goma_prefix}$prefix/clang" 229 cc = "${goma_prefix}$prefix/clang"
257 cxx = "${goma_prefix}$prefix/clang++" 230 cxx = "${goma_prefix}$prefix/clang++"
258 ld = cxx 231 ld = cxx
259 is_clang = true 232 is_clang = true
260 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" 233 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min"
261 } 234 }
OLDNEW
« no previous file with comments | « no previous file | tools/build.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698