| Index: build/android/BUILD.gn
|
| diff --git a/build/android/BUILD.gn b/build/android/BUILD.gn
|
| index 1b588230f1ba714c4486c6f4fd12ffb3688be5d0..87cc788676373c0b5bd1d507462fc3d3e162ea19 100644
|
| --- a/build/android/BUILD.gn
|
| +++ b/build/android/BUILD.gn
|
| @@ -27,3 +27,32 @@ java_prebuilt("sun_tools_java") {
|
| ":find_sun_tools_jar",
|
| ]
|
| }
|
| +
|
| +action("cpplib_stripped") {
|
| + _strip_bin = "${android_tool_prefix}strip"
|
| + _soname = "libc++_shared.so"
|
| + _input_so = "${android_libcpp_root}/libs/${android_app_abi}/${_soname}"
|
| + _output_so = "${root_out_dir}/lib.stripped/${_soname}"
|
| +
|
| + script = "//build/gn_run_binary.py"
|
| + inputs = [
|
| + _strip_bin,
|
| + ]
|
| + sources = [
|
| + _input_so,
|
| + ]
|
| + outputs = [
|
| + _output_so,
|
| + ]
|
| +
|
| + _rebased_strip_bin = rebase_path(_strip_bin, root_out_dir)
|
| + _rebased_input_so = rebase_path(_input_so, root_out_dir)
|
| + _rebased_output_so = rebase_path(_output_so, root_out_dir)
|
| + args = [
|
| + _rebased_strip_bin,
|
| + "--strip-unneeded",
|
| + "-o",
|
| + _rebased_output_so,
|
| + _rebased_input_so,
|
| + ]
|
| +}
|
|
|