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

Side by Side Diff: build/toolchain/toolchain.gni

Issue 2626063002: Allow using the same checkout to build both iOS and macOS. (Closed)
Patch Set: Address nitpick. Created 3 years, 11 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/mac_toolchain.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/mac_toolchain.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698