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

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: better comments 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') | build/toolchain/cros/BUILD.gn » ('J')
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 if (target_os == "android") { 175 if (target_os == "android") {
176 assert(host_os == "linux" || host_os == "mac", 176 assert(host_os == "linux" || host_os == "mac",
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 # See comments in build/toolchain/cros/BUILD.gn about board compiles.
184 assert(host_os == "linux", 185 assert(host_os == "linux",
185 "ChromeOS builds are only supported on Linux hosts.") 186 "ChromeOS builds are only supported on Linux hosts.")
186 if (is_clang) { 187 if (is_clang) {
187 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 188 _default_toolchain = "//build/toolchain/cros:clang_$target_cpu"
188 } else { 189 } else {
189 _default_toolchain = "//build/toolchain/linux:$target_cpu" 190 _default_toolchain = "//build/toolchain/cros:$target_cpu"
190 } 191 }
191 } else if (target_os == "ios") { 192 } else if (target_os == "ios") {
192 _default_toolchain = "//build/toolchain/mac:ios_clang_arm" 193 _default_toolchain = "//build/toolchain/mac:ios_clang_arm"
193 } else if (target_os == "linux") { 194 } else if (target_os == "linux") {
194 if (is_clang) { 195 if (is_clang) {
195 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 196 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
196 } else { 197 } else {
197 _default_toolchain = "//build/toolchain/linux:$target_cpu" 198 _default_toolchain = "//build/toolchain/linux:$target_cpu"
198 } 199 }
199 } else if (target_os == "mac") { 200 } else if (target_os == "mac") {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 forward_variables_from(invoker, "*") 582 forward_variables_from(invoker, "*")
582 583
583 # All shared libraries must have the sanitizer deps to properly link in 584 # All shared libraries must have the sanitizer deps to properly link in
584 # asan mode (this target will be empty in other cases). 585 # asan mode (this target will be empty in other cases).
585 if (!defined(deps)) { 586 if (!defined(deps)) {
586 deps = [] 587 deps = []
587 } 588 }
588 deps += [ "//build/config/sanitizers:deps" ] 589 deps += [ "//build/config/sanitizers:deps" ]
589 } 590 }
590 } 591 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/cros/BUILD.gn » ('j') | build/toolchain/cros/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698