OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Toolchain-related configuration that may be needed outside the context of the | 5 # Toolchain-related configuration that may be needed outside the context of the |
6 # toolchain() rules themselves. | 6 # toolchain() rules themselves. |
7 | 7 |
8 import("//build_overrides/build.gni") | 8 import("//build_overrides/build.gni") |
9 import("//build/config/chrome_build.gni") | 9 import("//build/config/chrome_build.gni") |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 # Compile with Xcode version of clang instead of hermetic version shipped | 40 # Compile with Xcode version of clang instead of hermetic version shipped |
41 # with the build. Used on iOS to ship official builds (as they are built | 41 # with the build. Used on iOS to ship official builds (as they are built |
42 # with the version of clang shipped with Xcode). | 42 # with the version of clang shipped with Xcode). |
43 use_xcode_clang = is_ios && is_official_build | 43 use_xcode_clang = is_ios && is_official_build |
44 } | 44 } |
45 | 45 |
46 # The path to the hermetic install of Xcode. Only relevant when | 46 # The path to the hermetic install of Xcode. Only relevant when |
47 # use_system_xcode = false. | 47 # use_system_xcode = false. |
48 hermetic_xcode_path = | 48 hermetic_xcode_path = |
49 rebase_path("//build/mac_files/Xcode.app", "", root_build_dir) | 49 rebase_path("//build/${target_os}_files/Xcode.app", "", root_build_dir) |
50 | 50 |
51 declare_args() { | 51 declare_args() { |
52 if (is_clang) { | 52 if (is_clang) { |
53 # Clang compiler version. Clang files are placed at version-dependent paths. | 53 # Clang compiler version. Clang files are placed at version-dependent paths. |
54 clang_version = "4.0.0" | 54 clang_version = "4.0.0" |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 # Check target_os here instead of is_ios as this file is loaded for secondary | 58 # Check target_os here instead of is_ios as this file is loaded for secondary |
59 # toolchain (host toolchain in particular) but the argument is the same for | 59 # toolchain (host toolchain in particular) but the argument is the same for |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 _tool_wrapper_path = | 107 _tool_wrapper_path = |
108 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) | 108 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) |
109 | 109 |
110 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" | 110 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" |
111 copy_command = | 111 copy_command = |
112 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" | 112 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" |
113 } else { | 113 } else { |
114 stamp_command = "touch {{output}}" | 114 stamp_command = "touch {{output}}" |
115 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}}
&& cp -af {{source}} {{output}})" | 115 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}}
&& cp -af {{source}} {{output}})" |
116 } | 116 } |
OLD | NEW |