diff --git a/android/BUILD.gn b/android/BUILD.gn index 2c6d6fd7f..3a5a4d215 100644 --- a/android/BUILD.gn +++ b/android/BUILD.gn @@ -52,7 +52,8 @@ if (enable_java_templates) { _data += "android_sdk_root=" + rebase_path(android_sdk_root, root_build_dir) + CR _data += "android_sdk_version=$android_sdk_version$CR" - _data += "android_tool_prefix=$android_tool_prefix" + _data += "android_tool_prefix=" + + rebase_path(android_tool_prefix, root_build_dir) + CR write_file("$root_build_dir/build_vars.txt", _data) } diff --git a/android/resource_sizes.py b/android/resource_sizes.py index 976f888a6..a0ff3f04d 100755 --- a/android/resource_sizes.py +++ b/android/resource_sizes.py @@ -723,7 +723,8 @@ def main(): constants.CheckOutputDirectory() devil_chromium.Initialize() build_vars = _ReadBuildVars(constants.GetOutDirectory()) - tools_prefix = build_vars['android_tool_prefix'] + tools_prefix = os.path.join(constants.GetOutDirectory(), + build_vars['android_tool_prefix']) else: tools_prefix = ''