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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 stripped_soname = "lib.stripped/${soname}" | 62 stripped_soname = "lib.stripped/${soname}" |
63 temp_stripped_soname = "${stripped_soname}.tmp" | 63 temp_stripped_soname = "${stripped_soname}.tmp" |
64 | 64 |
65 android_strip = "${tool_prefix}strip" | 65 android_strip = "${tool_prefix}strip" |
66 | 66 |
67 strip_command = | 67 strip_command = |
68 "$android_strip --strip-unneeded -o $temp_stripped_soname $soname" | 68 "$android_strip --strip-unneeded -o $temp_stripped_soname $soname" |
69 replace_command = "if ! cmp -s $temp_stripped_soname $stripped_soname; then
mv $temp_stripped_soname $stripped_soname; fi" | 69 replace_command = "if ! cmp -s $temp_stripped_soname $stripped_soname; then
mv $temp_stripped_soname $stripped_soname; fi" |
70 postsolink = "$strip_command && $replace_command" | 70 postsolink = "$strip_command && $replace_command" |
71 solink_outputs = [ stripped_soname ] | 71 solink_outputs = [ stripped_soname ] |
| 72 default_output_extension = android_product_extension |
72 | 73 |
73 # We make the assumption that the gcc_toolchain will produce an exe with | 74 # We make the assumption that the gcc_toolchain will produce an exe with |
74 # the following definition. | 75 # the following definition. |
75 exe = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" | 76 exe = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" |
76 stripped_exe = "exe.stripped/$exe" | 77 stripped_exe = "exe.stripped/$exe" |
77 postlink = "$android_strip --strip-unneeded -o $stripped_exe $exe" | 78 postlink = "$android_strip --strip-unneeded -o $stripped_exe $exe" |
78 link_outputs = [ stripped_exe ] | 79 link_outputs = [ stripped_exe ] |
79 } | 80 } |
80 } | 81 } |
81 | 82 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 toolchain_cpu = "aarch64" | 120 toolchain_cpu = "aarch64" |
120 } | 121 } |
121 | 122 |
122 android_gcc_toolchain("mips64el") { | 123 android_gcc_toolchain("mips64el") { |
123 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" | 124 android_ndk_sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" |
124 android_ndk_lib_dir = "usr/lib64" | 125 android_ndk_lib_dir = "usr/lib64" |
125 | 126 |
126 tool_prefix = "$mips64_android_toolchain_root/bin/mipsel-linux-android-" | 127 tool_prefix = "$mips64_android_toolchain_root/bin/mipsel-linux-android-" |
127 toolchain_cpu = "mipsel64el" | 128 toolchain_cpu = "mipsel64el" |
128 } | 129 } |
OLD | NEW |