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

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

Issue 1491463002: build CrOS chrome with gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/cros/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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 "Android builds are only supported on Linux and Mac hosts.") 177 "Android builds are only supported on Linux and Mac hosts.")
178 if (is_clang) { 178 if (is_clang) {
179 _default_toolchain = "//build/toolchain/android:clang_$target_cpu" 179 _default_toolchain = "//build/toolchain/android:clang_$target_cpu"
180 } else { 180 } else {
181 _default_toolchain = "//build/toolchain/android:$target_cpu" 181 _default_toolchain = "//build/toolchain/android:$target_cpu"
182 } 182 }
183 } else if (target_os == "chromeos") { 183 } else if (target_os == "chromeos") {
184 assert(host_os == "linux", 184 assert(host_os == "linux",
185 "ChromeOS builds are only supported on Linux hosts.") 185 "ChromeOS builds are only supported on Linux hosts.")
186 if (is_clang) { 186 if (is_clang) {
187 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 187 _default_toolchain = "//build/toolchain/cros:clang_$target_cpu"
Peter Mayo 2015/11/30 22:11:24 I don't think this is the intent.
Peter Mayo 2015/12/01 00:51:21 I see that without this the other code the other c
188 } else { 188 } else {
189 _default_toolchain = "//build/toolchain/linux:$target_cpu" 189 _default_toolchain = "//build/toolchain/cros:$target_cpu"
190 } 190 }
191 } else if (target_os == "ios") { 191 } else if (target_os == "ios") {
192 _default_toolchain = "//build/toolchain/mac:ios_clang_arm" 192 _default_toolchain = "//build/toolchain/mac:ios_clang_arm"
193 } else if (target_os == "linux") { 193 } else if (target_os == "linux") {
194 if (is_clang) { 194 if (is_clang) {
195 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 195 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
196 } else { 196 } else {
197 _default_toolchain = "//build/toolchain/linux:$target_cpu" 197 _default_toolchain = "//build/toolchain/linux:$target_cpu"
198 } 198 }
199 } else if (target_os == "mac") { 199 } else if (target_os == "mac") {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 forward_variables_from(invoker, "*") 581 forward_variables_from(invoker, "*")
582 582
583 # All shared libraries must have the sanitizer deps to properly link in 583 # All shared libraries must have the sanitizer deps to properly link in
584 # asan mode (this target will be empty in other cases). 584 # asan mode (this target will be empty in other cases).
585 if (!defined(deps)) { 585 if (!defined(deps)) {
586 deps = [] 586 deps = []
587 } 587 }
588 deps += [ "//build/config/sanitizers:deps" ] 588 deps += [ "//build/config/sanitizers:deps" ]
589 } 589 }
590 } 590 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698