| 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/ccache.gni") | 6 import("//build/toolchain/ccache.gni") |
| 7 import("//build/toolchain/clang.gni") | 7 import("//build/toolchain/clang.gni") |
| 8 import("//build/toolchain/goma.gni") | 8 import("//build/toolchain/goma.gni") |
| 9 import("//build/toolchain/gcc_toolchain.gni") | 9 import("//build/toolchain/gcc_toolchain.gni") |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } else if (use_ccache) { | 42 } else if (use_ccache) { |
| 43 compiler_prefix = "ccache " | 43 compiler_prefix = "ccache " |
| 44 } else { | 44 } else { |
| 45 compiler_prefix = "" | 45 compiler_prefix = "" |
| 46 } | 46 } |
| 47 | 47 |
| 48 cc = compiler_prefix + tool_prefix + "gcc" | 48 cc = compiler_prefix + tool_prefix + "gcc" |
| 49 cxx = compiler_prefix + tool_prefix + "g++" | 49 cxx = compiler_prefix + tool_prefix + "g++" |
| 50 ar = tool_prefix + "ar" | 50 ar = tool_prefix + "ar" |
| 51 ld = cxx | 51 ld = cxx |
| 52 readelf = compiler_prefix + tool_prefix + "readelf" |
| 53 nm = compiler_prefix + tool_prefix + "nm" |
| 52 | 54 |
| 53 toolchain_os = "android" | 55 toolchain_os = "android" |
| 54 toolchain_cpu = invoker.toolchain_cpu | 56 toolchain_cpu = invoker.toolchain_cpu |
| 55 | 57 |
| 56 # We make the assumption that the gcc_toolchain will produce a soname with | 58 # We make the assumption that the gcc_toolchain will produce a soname with |
| 57 # the following definition. | 59 # the following definition. |
| 58 soname = "{{target_output_name}}{{output_extension}}" | 60 soname = "{{target_output_name}}{{output_extension}}" |
| 59 | 61 |
| 60 stripped_soname = "lib.stripped/${soname}" | 62 stripped_soname = "lib.stripped/${soname}" |
| 61 temp_stripped_soname = "${stripped_soname}.tmp" | 63 temp_stripped_soname = "${stripped_soname}.tmp" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 toolchain_cpu = "aarch64" | 122 toolchain_cpu = "aarch64" |
| 121 } | 123 } |
| 122 | 124 |
| 123 android_gcc_toolchain("mips64el") { | 125 android_gcc_toolchain("mips64el") { |
| 124 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" | 126 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" |
| 125 android_ndk_lib_dir = "usr/lib64" | 127 android_ndk_lib_dir = "usr/lib64" |
| 126 | 128 |
| 127 tool_prefix = "$mips64_android_toolchain_root/bin/mipsel-linux-android-" | 129 tool_prefix = "$mips64_android_toolchain_root/bin/mipsel-linux-android-" |
| 128 toolchain_cpu = "mipsel64el" | 130 toolchain_cpu = "mipsel64el" |
| 129 } | 131 } |
| OLD | NEW |