Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: build/toolchain/android/BUILD.gn

Issue 1236543004: GN (android): Append ".cr" to component .so's to avoid zygote lib collisions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn16
Patch Set: android_shared_library_extension -> android_product_extension (to match GYP) Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/android/rules.gni ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698