OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 | 6 |
7 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" | 7 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" |
8 | 8 |
9 action("find_sun_tools_jar") { | 9 action("find_sun_tools_jar") { |
10 script = "//build/android/gyp/find_sun_tools_jar.py" | 10 script = "//build/android/gyp/find_sun_tools_jar.py" |
11 depfile = "$target_gen_dir/$target_name.d" | 11 depfile = "$target_gen_dir/$target_name.d" |
12 outputs = [ | 12 outputs = [ |
13 depfile, | 13 depfile, |
14 sun_tools_jar_path, | 14 sun_tools_jar_path, |
15 ] | 15 ] |
16 args = [ | 16 args = [ |
17 "--depfile", | 17 "--depfile", |
18 rebase_path(depfile, root_build_dir), | 18 rebase_path(depfile, root_build_dir), |
19 "--output", | 19 "--output", |
20 rebase_path(sun_tools_jar_path, root_build_dir), | 20 rebase_path(sun_tools_jar_path, root_build_dir), |
21 ] | 21 ] |
22 } | 22 } |
23 | 23 |
24 java_prebuilt("sun_tools_java") { | 24 java_prebuilt("sun_tools_java") { |
25 jar_path = sun_tools_jar_path | 25 jar_path = sun_tools_jar_path |
26 deps = [ | 26 deps = [ |
27 ":find_sun_tools_jar", | 27 ":find_sun_tools_jar", |
28 ] | 28 ] |
29 } | 29 } |
| 30 |
| 31 action("cpplib_stripped") { |
| 32 _strip_bin = "${android_tool_prefix}strip" |
| 33 _soname = "libc++_shared.so" |
| 34 _input_so = "${android_libcpp_root}/libs/${android_app_abi}/${_soname}" |
| 35 _output_so = "${root_out_dir}/lib.stripped/${_soname}" |
| 36 |
| 37 script = "//build/gn_run_binary.py" |
| 38 inputs = [ |
| 39 _strip_bin, |
| 40 ] |
| 41 sources = [ |
| 42 _input_so, |
| 43 ] |
| 44 outputs = [ |
| 45 _output_so, |
| 46 ] |
| 47 |
| 48 _rebased_strip_bin = rebase_path(_strip_bin, root_out_dir) |
| 49 _rebased_input_so = rebase_path(_input_so, root_out_dir) |
| 50 _rebased_output_so = rebase_path(_output_so, root_out_dir) |
| 51 args = [ |
| 52 _rebased_strip_bin, |
| 53 "--strip-unneeded", |
| 54 "-o", |
| 55 _rebased_output_so, |
| 56 _rebased_input_so, |
| 57 ] |
| 58 } |
OLD | NEW |