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/config.gni") |
5 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
6 | 7 |
7 if (enable_java_templates) { | 8 if (enable_java_templates) { |
8 import("//third_party/ijar/ijar.gni") | 9 import("//third_party/ijar/ijar.gni") |
9 | 10 |
10 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" | 11 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" |
11 | 12 |
12 # Create or update the API versions cache if necessary by running a | 13 # Create or update the API versions cache if necessary by running a |
13 # functionally empty lint task. This prevents racy creation of the | 14 # functionally empty lint task. This prevents racy creation of the |
14 # cache while linting java targets in android_lint. | 15 # cache while linting java targets in android_lint. |
(...skipping 29 matching lines...) Expand all Loading... |
44 # Write to a file some GN vars that are useful to scripts that use the output | 45 # Write to a file some GN vars that are useful to scripts that use the output |
45 # directory. Format is chosen as easliy importable by both python and bash. | 46 # directory. Format is chosen as easliy importable by both python and bash. |
46 CR = "$0x0A" | 47 CR = "$0x0A" |
47 _data = "" | 48 _data = "" |
48 _data += "android_sdk_build_tools=" + | 49 _data += "android_sdk_build_tools=" + |
49 rebase_path(android_sdk_build_tools, root_build_dir) + CR | 50 rebase_path(android_sdk_build_tools, root_build_dir) + CR |
50 _data += "android_sdk_build_tools_version=$android_sdk_build_tools_version$CR" | 51 _data += "android_sdk_build_tools_version=$android_sdk_build_tools_version$CR" |
51 _data += | 52 _data += |
52 "android_sdk_root=" + rebase_path(android_sdk_root, root_build_dir) + CR | 53 "android_sdk_root=" + rebase_path(android_sdk_root, root_build_dir) + CR |
53 _data += "android_sdk_version=$android_sdk_version$CR" | 54 _data += "android_sdk_version=$android_sdk_version$CR" |
| 55 _data += "android_tool_prefix=$android_tool_prefix" |
54 write_file("$root_build_dir/build_vars.txt", _data) | 56 write_file("$root_build_dir/build_vars.txt", _data) |
55 } | 57 } |
56 | 58 |
57 # Copy to the lib.unstripped directory so that gdb can easily find it. | 59 # Copy to the lib.unstripped directory so that gdb can easily find it. |
58 copy("cpplib_unstripped") { | 60 copy("cpplib_unstripped") { |
59 _soname = "libc++_shared.so" | 61 _soname = "libc++_shared.so" |
60 sources = [ | 62 sources = [ |
61 "${android_libcpp_lib_dir}/${_soname}", | 63 "${android_libcpp_lib_dir}/${_soname}", |
62 ] | 64 ] |
63 outputs = [ | 65 outputs = [ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 _target_name = get_path_info(script, "name") + "_wrapper" | 144 _target_name = get_path_info(script, "name") + "_wrapper" |
143 _wrapper_targets += [ ":$_target_name" ] | 145 _wrapper_targets += [ ":$_target_name" ] |
144 wrapper_script(_target_name) { | 146 wrapper_script(_target_name) { |
145 target = script | 147 target = script |
146 } | 148 } |
147 } | 149 } |
148 | 150 |
149 group("wrapper_scripts") { | 151 group("wrapper_scripts") { |
150 deps = _wrapper_targets | 152 deps = _wrapper_targets |
151 } | 153 } |
OLD | NEW |