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("//build/config/sysroot.gni") # Imports android/config.gni. | 5 import("//build/config/sysroot.gni") # Imports android/config.gni. |
6 import("//build/toolchain/gcc_toolchain.gni") | 6 import("//build/toolchain/gcc_toolchain.gni") |
7 | 7 |
8 # The Android GCC toolchains share most of the same parameters, so we have this | 8 # The Android GCC toolchains share most of the same parameters, so we have this |
9 # wrapper around gcc_toolchain to avoid duplication of logic. | 9 # wrapper around gcc_toolchain to avoid duplication of logic. |
10 # | 10 # |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 android_ndk_lib_dir = "usr/lib64" | 104 android_ndk_lib_dir = "usr/lib64" |
105 | 105 |
106 tool_prefix = "$x86_64_android_toolchain_root/bin/x86_64-linux-android-" | 106 tool_prefix = "$x86_64_android_toolchain_root/bin/x86_64-linux-android-" |
107 toolchain_cpu = "x86_64" | 107 toolchain_cpu = "x86_64" |
108 } | 108 } |
109 | 109 |
110 android_gcc_toolchains_helper("arm64") { | 110 android_gcc_toolchains_helper("arm64") { |
111 android_ndk_sysroot = "$android_ndk_root/$arm64_android_sysroot_subdir" | 111 android_ndk_sysroot = "$android_ndk_root/$arm64_android_sysroot_subdir" |
112 android_ndk_lib_dir = "usr/lib" | 112 android_ndk_lib_dir = "usr/lib" |
113 | 113 |
114 tool_prefix = "$arm64_android_toolchain_root/bin/arm-linux-androideabi-" | 114 tool_prefix = "$arm64_android_toolchain_root/bin/aarch64-linux-android-" |
115 toolchain_cpu = "aarch64" | 115 toolchain_cpu = "aarch64" |
116 } | 116 } |
117 | 117 |
118 android_gcc_toolchains_helper("mips64el") { | 118 android_gcc_toolchains_helper("mips64el") { |
119 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" | 119 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" |
120 android_ndk_lib_dir = "usr/lib64" | 120 android_ndk_lib_dir = "usr/lib64" |
121 | 121 |
122 tool_prefix = "$mips64_android_toolchain_root/bin/mipsel-linux-android-" | 122 tool_prefix = "$mips64_android_toolchain_root/bin/mips64el-linux-android-" |
123 toolchain_cpu = "mipsel64el" | 123 toolchain_cpu = "mipsel64el" |
124 } | 124 } |
OLD | NEW |