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/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 if (enable_java_templates) { | 8 if (enable_java_templates) { |
9 import("//third_party/ijar/ijar.gni") | 9 import("//third_party/ijar/ijar.gni") |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 # 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 |
46 # 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. |
47 CR = "$0x0A" | 47 CR = "$0x0A" |
48 _data = "" | 48 _data = "" |
49 _data += "android_sdk_build_tools=" + | 49 _data += "android_sdk_build_tools=" + |
50 rebase_path(android_sdk_build_tools, root_build_dir) + CR | 50 rebase_path(android_sdk_build_tools, root_build_dir) + CR |
51 _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" |
52 _data += | 52 _data += |
53 "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 |
54 _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" | 55 _data += "android_tool_prefix=" + |
| 56 rebase_path(android_tool_prefix, root_build_dir) + CR |
56 write_file("$root_build_dir/build_vars.txt", _data) | 57 write_file("$root_build_dir/build_vars.txt", _data) |
57 } | 58 } |
58 | 59 |
59 # Copy to the lib.unstripped directory so that gdb can easily find it. | 60 # Copy to the lib.unstripped directory so that gdb can easily find it. |
60 copy("cpplib_unstripped") { | 61 copy("cpplib_unstripped") { |
61 _soname = "libc++_shared.so" | 62 _soname = "libc++_shared.so" |
62 sources = [ | 63 sources = [ |
63 "${android_libcpp_lib_dir}/${_soname}", | 64 "${android_libcpp_lib_dir}/${_soname}", |
64 ] | 65 ] |
65 outputs = [ | 66 outputs = [ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 _target_name = get_path_info(script, "name") + "_wrapper" | 145 _target_name = get_path_info(script, "name") + "_wrapper" |
145 _wrapper_targets += [ ":$_target_name" ] | 146 _wrapper_targets += [ ":$_target_name" ] |
146 wrapper_script(_target_name) { | 147 wrapper_script(_target_name) { |
147 target = script | 148 target = script |
148 } | 149 } |
149 } | 150 } |
150 | 151 |
151 group("wrapper_scripts") { | 152 group("wrapper_scripts") { |
152 deps = _wrapper_targets | 153 deps = _wrapper_targets |
153 } | 154 } |
OLD | NEW |