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

Side by Side Diff: build/toolchain/android/BUILD.gn

Issue 111633004: [MIPS] Add support for Chromium-Android for MIPS build to BUILD.gn (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update tools/gn/variables.cc. Created 6 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/gyp_chromium ('k') | tools/gn/variables.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 import("../clang.gni") 5 import("../clang.gni")
6 import("../goma.gni") 6 import("../goma.gni")
7 import("../gcc_toolchain.gni") 7 import("../gcc_toolchain.gni")
8 8
9 # Get the location of the Android tools in our tree. 9 # Get the location of the Android tools in our tree.
10 android_ndk_root = 10 android_ndk_root =
(...skipping 17 matching lines...) Expand all
28 # any given build. 28 # any given build.
29 if (is_clang) { 29 if (is_clang) {
30 # Set the GYP header for all toolchains when running under Clang. 30 # Set the GYP header for all toolchains when running under Clang.
31 gyp_header = make_clang_global_settings 31 gyp_header = make_clang_global_settings
32 } else { 32 } else {
33 # Find the compiler for GYP for non-Clang Android. 33 # Find the compiler for GYP for non-Clang Android.
34 if (cpu_arch == "x86") { 34 if (cpu_arch == "x86") {
35 android_toolchain_arch = "x86-4.6" 35 android_toolchain_arch = "x86-4.6"
36 } else if (cpu_arch == "arm") { 36 } else if (cpu_arch == "arm") {
37 android_toolchain_arch = "arm-linux-androideabi-4.6" 37 android_toolchain_arch = "arm-linux-androideabi-4.6"
38 } else if (cpu_arch == "mipsel") {
39 android_toolchain_arch = "mipsel-linux-android-4.6"
38 } else { 40 } else {
39 assert(false, "Need Android toolchain support for your platform.") 41 assert(false, "Need Android toolchain support for your platform.")
40 } 42 }
41 43
42 android_toolchain = 44 android_toolchain =
43 "$android_ndk_root/toolchains/$android_toolchain_arch/prebuilt/$build_os-$ android_host_arch/bin" 45 "$android_ndk_root/toolchains/$android_toolchain_arch/prebuilt/$build_os-$ android_host_arch/bin"
44 46
45 # This script will find the compilers for the given Android toolchain 47 # This script will find the compilers for the given Android toolchain
46 # directory. 48 # directory.
47 # TODO(brettw) write this script which locates the Android compilers. 49 # TODO(brettw) write this script which locates the Android compilers.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 gcc_toolchain("arm") { 94 gcc_toolchain("arm") {
93 prefix = "$android_ndk_root/toolchains/arm-linux-androideabi-4.6/prebuilt/$bui ld_os-$android_host_arch/bin/arm-linux-androideabi-" 95 prefix = "$android_ndk_root/toolchains/arm-linux-androideabi-4.6/prebuilt/$bui ld_os-$android_host_arch/bin/arm-linux-androideabi-"
94 cc = prefix + "gcc" 96 cc = prefix + "gcc"
95 cxx = prefix + "g++" 97 cxx = prefix + "g++"
96 ar = prefix + "ar" 98 ar = prefix + "ar"
97 ld = cxx 99 ld = cxx
98 100
99 toolchain_cpu_arch = "arm" 101 toolchain_cpu_arch = "arm"
100 toolchain_os = "android" 102 toolchain_os = "android"
101 } 103 }
104
105 gcc_toolchain("mipsel") {
106 prefix = "$android_ndk_root/toolchains/mipsel-linux-android-4.6/prebuilt/$buil d_os-$android_host_arch/bin/mipsel-linux-android-"
107 cc = prefix + "gcc"
108 cxx = prefix + "g++"
109 ar = prefix + "ar"
110 ld = cxx
111
112 toolchain_cpu_arch = "mipsel"
113 toolchain_os = "android"
114 }
OLDNEW
« no previous file with comments | « build/gyp_chromium ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698