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

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

Issue 2463143002: Android: Prefix target toolchain names with "android_". (Closed)
Patch Set: Created 4 years, 1 month 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/config/android/config.gni » ('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 # WHAT IS THIS FILE? 6 # WHAT IS THIS FILE?
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # This is the master GN build configuration. This file is loaded after the 9 # This is the master GN build configuration. This file is loaded after the
10 # build args (args.gn) for the build directory and after the toplevel ".gn" 10 # build args (args.gn) for the build directory and after the toplevel ".gn"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 assert(false, "Unsupported host_os: $host_os") 209 assert(false, "Unsupported host_os: $host_os")
210 } 210 }
211 } 211 }
212 212
213 _default_toolchain = "" 213 _default_toolchain = ""
214 214
215 if (target_os == "android") { 215 if (target_os == "android") {
216 assert(host_os == "linux" || host_os == "mac", 216 assert(host_os == "linux" || host_os == "mac",
217 "Android builds are only supported on Linux and Mac hosts.") 217 "Android builds are only supported on Linux and Mac hosts.")
218 if (is_clang) { 218 if (is_clang) {
219 _default_toolchain = "//build/toolchain/android:clang_$target_cpu" 219 _default_toolchain = "//build/toolchain/android:android_clang_$target_cpu"
220 } else { 220 } else {
221 _default_toolchain = "//build/toolchain/android:$target_cpu" 221 _default_toolchain = "//build/toolchain/android:android_$target_cpu"
222 } 222 }
223 } else if (target_os == "chromeos" || target_os == "linux") { 223 } else if (target_os == "chromeos" || target_os == "linux") {
224 # See comments in build/toolchain/cros/BUILD.gn about board compiles. 224 # See comments in build/toolchain/cros/BUILD.gn about board compiles.
225 if (is_clang) { 225 if (is_clang) {
226 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" 226 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
227 } else { 227 } else {
228 _default_toolchain = "//build/toolchain/linux:$target_cpu" 228 _default_toolchain = "//build/toolchain/linux:$target_cpu"
229 } 229 }
230 } else if (target_os == "ios") { 230 } else if (target_os == "ios") {
231 _default_toolchain = "//build/toolchain/mac:ios_clang_$target_cpu" 231 _default_toolchain = "//build/toolchain/mac:ios_clang_$target_cpu"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 set_defaults("component") { 642 set_defaults("component") {
643 if (is_component_build) { 643 if (is_component_build) {
644 configs = default_shared_library_configs 644 configs = default_shared_library_configs
645 if (is_android) { 645 if (is_android) {
646 configs -= [ "//build/config/android:hide_native_jni_exports" ] 646 configs -= [ "//build/config/android:hide_native_jni_exports" ]
647 } 647 }
648 } else { 648 } else {
649 configs = default_compiler_configs 649 configs = default_compiler_configs
650 } 650 }
651 } 651 }
OLDNEW
« no previous file with comments | « no previous file | build/config/android/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698