OLD | NEW |
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("//build/config/android/config.gni") |
6 import("../goma.gni") | 6 import("//build/toolchain/clang.gni") |
7 import("../gcc_toolchain.gni") | 7 import("//build/toolchain/goma.gni") |
8 | 8 import("//build/toolchain/gcc_toolchain.gni") |
9 # Get the location of the Android tools in our tree. | |
10 android_ndk_root = | |
11 rebase_path("//third_party/android_tools/ndk", ".", "") | |
12 | 9 |
13 # Get the Android version of the name of the build host's architecture. | 10 # Get the Android version of the name of the build host's architecture. |
14 if (build_cpu_arch == "x64") { | 11 if (build_cpu_arch == "x64") { |
15 android_host_arch = "x86_64" | 12 android_host_arch = "x86_64" |
16 } else if (build_cpu_arch == "x86") { | 13 } else if (build_cpu_arch == "x86") { |
17 android_host_arch = "x86" | 14 android_host_arch = "x86" |
18 } else { | 15 } else { |
19 assert(false, "Need Android toolchain support for your build OS.") | 16 assert(false, "Need Android toolchain support for your build OS.") |
20 } | 17 } |
21 | 18 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 gcc_toolchain("mipsel") { | 102 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-" | 103 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" | 104 cc = prefix + "gcc" |
108 cxx = prefix + "g++" | 105 cxx = prefix + "g++" |
109 ar = prefix + "ar" | 106 ar = prefix + "ar" |
110 ld = cxx | 107 ld = cxx |
111 | 108 |
112 toolchain_cpu_arch = "mipsel" | 109 toolchain_cpu_arch = "mipsel" |
113 toolchain_os = "android" | 110 toolchain_os = "android" |
114 } | 111 } |
OLD | NEW |