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

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 1183633003: cross gn Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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 | build/toolchain/win/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 # ============================================================================= 5 # =============================================================================
6 # PLATFORM SELECTION 6 # PLATFORM SELECTION
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name
10 # of the GN thing that encodes combinations of these things. 10 # of the GN thing that encodes combinations of these things.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 if (is_clang) { 207 if (is_clang) {
208 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 208 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
209 } else { 209 } else {
210 _default_toolchain = "//build/toolchain/linux:$target_cpu" 210 _default_toolchain = "//build/toolchain/linux:$target_cpu"
211 } 211 }
212 } else if (target_os == "mac") { 212 } else if (target_os == "mac") {
213 assert(host_os == "mac", "Mac cross-compiles are unsupported.") 213 assert(host_os == "mac", "Mac cross-compiles are unsupported.")
214 _default_toolchain = host_toolchain 214 _default_toolchain = host_toolchain
215 } else if (target_os == "win") { 215 } else if (target_os == "win") {
216 # On Windows we use the same toolchain for host and target by default. 216 # On Windows we use the same toolchain for host and target by default.
217 assert(target_os == host_os, "Win cross-compiles only work on win hosts.") 217 #assert(target_os == host_os, "Win cross-compiles only work on win hosts.")
218 if (is_clang) { 218 if (is_clang) {
219 _default_toolchain = "//build/toolchain/win:clang_$target_cpu" 219 _default_toolchain = "//build/toolchain/win:clang_$target_cpu"
220 } else { 220 } else {
221 _default_toolchain = "//build/toolchain/win:$target_cpu" 221 _default_toolchain = "//build/toolchain/win:$target_cpu"
222 } 222 }
223 } else if (target_os == "winrt_81" || target_os == "winrt_81_phone" || 223 } else if (target_os == "winrt_81" || target_os == "winrt_81_phone" ||
224 target_os == "winrt_10") { 224 target_os == "winrt_10") {
225 _default_toolchain = "//build/toolchain/win:winrt_$target_cpu" 225 _default_toolchain = "//build/toolchain/win:winrt_$target_cpu"
226 } else { 226 } else {
227 assert(false, "Unsupported target_os: $target_os") 227 assert(false, "Unsupported target_os: $target_os")
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 forward_variables_from(invoker, "*") 602 forward_variables_from(invoker, "*")
603 603
604 # All shared libraries must have the sanitizer deps to properly link in 604 # All shared libraries must have the sanitizer deps to properly link in
605 # asan mode (this target will be empty in other cases). 605 # asan mode (this target will be empty in other cases).
606 if (!defined(deps)) { 606 if (!defined(deps)) {
607 deps = [] 607 deps = []
608 } 608 }
609 deps += [ "//build/config/sanitizers:deps" ] 609 deps += [ "//build/config/sanitizers:deps" ]
610 } 610 }
611 } 611 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698