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 # 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/clang/clang.gni") |
10 import("//build/config/ios/ios_sdk.gni") | 11 import("//build/config/ios/ios_sdk.gni") |
11 import("//build/config/mac/mac_sdk.gni") | 12 import("//build/config/mac/mac_sdk.gni") |
12 import("//build/config/mac/symbols.gni") | 13 import("//build/config/mac/symbols.gni") |
13 | 14 |
14 assert(host_os == "mac") | 15 assert(host_os == "mac") |
15 | 16 |
16 import("//build/toolchain/cc_wrapper.gni") | 17 import("//build/toolchain/cc_wrapper.gni") |
17 import("//build/toolchain/goma.gni") | 18 import("//build/toolchain/goma.gni") |
18 import("//build/toolchain/toolchain.gni") | 19 import("//build/toolchain/toolchain.gni") |
19 import("//build/toolchain/concurrent_links.gni") | 20 import("//build/toolchain/concurrent_links.gni") |
20 | 21 |
21 if (use_goma) { | 22 if (use_goma) { |
22 assert(cc_wrapper == "", "Goma and cc_wrapper can't be used together.") | 23 assert(cc_wrapper == "", "Goma and cc_wrapper can't be used together.") |
23 compiler_prefix = "$goma_dir/gomacc " | 24 compiler_prefix = "$goma_dir/gomacc " |
24 } else if (cc_wrapper != "") { | 25 } else if (cc_wrapper != "") { |
25 compiler_prefix = cc_wrapper + " " | 26 compiler_prefix = cc_wrapper + " " |
26 } else { | 27 } else { |
27 compiler_prefix = "" | 28 compiler_prefix = "" |
28 } | 29 } |
29 | 30 |
30 if (!use_xcode_clang) { | 31 if (!use_xcode_clang) { |
31 compiler_prefix = compiler_prefix + | 32 compiler_prefix = |
32 rebase_path("//third_party/llvm-build/Release+Asserts/bin/", | 33 compiler_prefix + rebase_path("$clang_base_path/bin/", root_build_dir) |
33 root_build_dir) | |
34 } | 34 } |
35 | 35 |
36 if (current_toolchain == default_toolchain) { | 36 if (current_toolchain == default_toolchain) { |
37 # Reduce the number of tasks using the copy_bundle_data and compile_xcassets | 37 # Reduce the number of tasks using the copy_bundle_data and compile_xcassets |
38 # tools as they can cause lots of I/O contention when invoking ninja with a | 38 # tools as they can cause lots of I/O contention when invoking ninja with a |
39 # large number of parallel jobs (e.g. when using distributed build like goma). | 39 # large number of parallel jobs (e.g. when using distributed build like goma). |
40 pool("bundle_pool") { | 40 pool("bundle_pool") { |
41 depth = concurrent_links | 41 depth = concurrent_links |
42 } | 42 } |
43 } | 43 } |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 mac_toolchain("ios_clang_x86") { | 371 mac_toolchain("ios_clang_x86") { |
372 toolchain_cpu = "x86" | 372 toolchain_cpu = "x86" |
373 toolchain_os = "ios" | 373 toolchain_os = "ios" |
374 } | 374 } |
375 | 375 |
376 mac_toolchain("ios_clang_x64") { | 376 mac_toolchain("ios_clang_x64") { |
377 toolchain_cpu = "x64" | 377 toolchain_cpu = "x64" |
378 toolchain_os = "ios" | 378 toolchain_os = "ios" |
379 } | 379 } |
OLD | NEW |