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/clang/clang.gni") | 5 import("//build/config/clang/clang.gni") |
6 import("//build/config/sysroot.gni") # Imports android/config.gni. | 6 import("//build/config/sysroot.gni") # Imports android/config.gni. |
7 import("//build/toolchain/gcc_toolchain.gni") | 7 import("//build/toolchain/gcc_toolchain.gni") |
8 | 8 |
9 # The Android GCC toolchains share most of the same parameters, so we have this | 9 # The Android GCC toolchains share most of the same parameters, so we have this |
10 # wrapper around gcc_toolchain to avoid duplication of logic. | 10 # wrapper around gcc_toolchain to avoid duplication of logic. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 nm = _tool_prefix + "nm" | 63 nm = _tool_prefix + "nm" |
64 strip = "${_tool_prefix}strip" | 64 strip = "${_tool_prefix}strip" |
65 | 65 |
66 # Don't use .cr.so for loadable_modules since they are always loaded via | 66 # Don't use .cr.so for loadable_modules since they are always loaded via |
67 # absolute path. | 67 # absolute path. |
68 loadable_module_extension = ".so" | 68 loadable_module_extension = ".so" |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 template("android_gcc_toolchains_helper") { | 72 template("android_gcc_toolchains_helper") { |
73 android_gcc_toolchain(target_name) { | 73 android_gcc_toolchain("android_$target_name") { |
74 forward_variables_from(invoker, "*") | 74 forward_variables_from(invoker, "*") |
75 toolchain_args.is_clang = false | 75 toolchain_args.is_clang = false |
76 } | 76 } |
77 | 77 |
78 android_gcc_toolchain("clang_$target_name") { | 78 android_gcc_toolchain("android_clang_$target_name") { |
79 forward_variables_from(invoker, "*") | 79 forward_variables_from(invoker, "*") |
80 toolchain_args.is_clang = true | 80 toolchain_args.is_clang = true |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 android_gcc_toolchains_helper("x86") { | 84 android_gcc_toolchains_helper("x86") { |
85 toolchain_root = x86_android_toolchain_root | 85 toolchain_root = x86_android_toolchain_root |
86 sysroot = "$android_ndk_root/$x86_android_sysroot_subdir" | 86 sysroot = "$android_ndk_root/$x86_android_sysroot_subdir" |
87 lib_dir = "usr/lib" | 87 lib_dir = "usr/lib" |
88 binary_prefix = "i686-linux-android" | 88 binary_prefix = "i686-linux-android" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 android_gcc_toolchains_helper("mips64el") { | 134 android_gcc_toolchains_helper("mips64el") { |
135 toolchain_root = mips64_android_toolchain_root | 135 toolchain_root = mips64_android_toolchain_root |
136 sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" | 136 sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" |
137 lib_dir = "usr/lib64" | 137 lib_dir = "usr/lib64" |
138 binary_prefix = "mips64el-linux-android" | 138 binary_prefix = "mips64el-linux-android" |
139 toolchain_args = { | 139 toolchain_args = { |
140 current_cpu = "mips64el" | 140 current_cpu = "mips64el" |
141 } | 141 } |
142 } | 142 } |
OLD | NEW |