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 import("//third_party/ijar/ijar.gni") | 6 import("//third_party/ijar/ijar.gni") |
7 | 7 |
8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" | 8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" |
9 | 9 |
10 action("find_sun_tools_jar") { | 10 action("find_sun_tools_jar") { |
(...skipping 14 matching lines...) Expand all Loading... |
25 java_prebuilt("sun_tools_java") { | 25 java_prebuilt("sun_tools_java") { |
26 jar_path = sun_tools_jar_path | 26 jar_path = sun_tools_jar_path |
27 jar_dep = ":find_sun_tools_jar" | 27 jar_dep = ":find_sun_tools_jar" |
28 } | 28 } |
29 | 29 |
30 generate_interface_jar("android_ijar") { | 30 generate_interface_jar("android_ijar") { |
31 input_jar = android_sdk_jar | 31 input_jar = android_sdk_jar |
32 output_jar = "$root_out_dir/lib.java/android.interface.jar" | 32 output_jar = "$root_out_dir/lib.java/android.interface.jar" |
33 } | 33 } |
34 | 34 |
| 35 # Copy to the lib.unstripped directory so that gdb can easily find it. |
| 36 copy("cpplib_unstripped") { |
| 37 _soname = "libc++_shared.so" |
| 38 sources = [ |
| 39 "${android_libcpp_root}/libs/${android_app_abi}/${_soname}", |
| 40 ] |
| 41 outputs = [ |
| 42 "${root_out_dir}/lib.unstripped/${_soname}", |
| 43 ] |
| 44 } |
| 45 |
35 action("cpplib_stripped") { | 46 action("cpplib_stripped") { |
36 _strip_bin = "${android_tool_prefix}strip" | 47 _strip_bin = "${android_tool_prefix}strip" |
37 _soname = "libc++_shared.so" | 48 _soname = "libc++_shared.so" |
38 _input_so = "${android_libcpp_root}/libs/${android_app_abi}/${_soname}" | 49 _input_so = "${root_out_dir}/lib.unstripped/${_soname}" |
39 _output_so = "${root_shlib_dir}/${_soname}" | 50 _output_so = "${root_shlib_dir}/${_soname}" |
40 | 51 |
| 52 deps = [ |
| 53 ":cpplib_unstripped", |
| 54 ] |
| 55 |
41 script = "//build/gn_run_binary.py" | 56 script = "//build/gn_run_binary.py" |
42 inputs = [ | 57 inputs = [ |
43 _strip_bin, | 58 _strip_bin, |
44 ] | 59 ] |
45 sources = [ | 60 sources = [ |
46 _input_so, | 61 _input_so, |
47 ] | 62 ] |
48 outputs = [ | 63 outputs = [ |
49 _output_so, | 64 _output_so, |
50 ] | 65 ] |
51 | 66 |
52 _rebased_strip_bin = rebase_path(_strip_bin, root_out_dir) | 67 _rebased_strip_bin = rebase_path(_strip_bin, root_out_dir) |
53 _rebased_input_so = rebase_path(_input_so, root_out_dir) | 68 _rebased_input_so = rebase_path(_input_so, root_out_dir) |
54 _rebased_output_so = rebase_path(_output_so, root_out_dir) | 69 _rebased_output_so = rebase_path(_output_so, root_out_dir) |
55 args = [ | 70 args = [ |
56 _rebased_strip_bin, | 71 _rebased_strip_bin, |
57 "--strip-unneeded", | 72 "--strip-unneeded", |
58 "-o", | 73 "-o", |
59 _rebased_output_so, | 74 _rebased_output_so, |
60 _rebased_input_so, | 75 _rebased_input_so, |
61 ] | 76 ] |
62 } | 77 } |
OLD | NEW |