Chromium Code Reviews| Index: build/android/BUILD.gn |
| diff --git a/build/android/BUILD.gn b/build/android/BUILD.gn |
| index 066dd19479453f8259a07384ffbe10c365d50965..e1d4e9b02bb40fd9f911c90bf410829f5f4c026f 100644 |
| --- a/build/android/BUILD.gn |
| +++ b/build/android/BUILD.gn |
| @@ -41,6 +41,19 @@ if (enable_java_templates) { |
| input_jar = android_sdk_jar |
| output_jar = "$root_out_dir/lib.java/android.interface.jar" |
| } |
| + |
| + _rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
|
jbudorick
2016/07/07 22:32:29
Should this be a part of a group or action rather
agrieve
2016/07/08 19:07:28
If we made it its own action, then "gn gen" would
|
| + |
| + # Record GN vars that are needed by generate_gradle.py. |
| + # One statement per-line to make GN's formatter leave it alone. |
| + CR = "$0x0A" |
| + _json = "{$CR" |
| + _json += " \"android_sdk_root\": \"$_rebased_android_sdk_root\",$CR" |
| + _json += " \"android_sdk_root\": \"$_rebased_android_sdk_root\",$CR" |
| + _json += " \"compile_sdk_version\": \"$android_sdk_version\",$CR" |
| + _json += " \"build_tools_version\": \"$android_sdk_build_tools_version\"$CR" |
| + _json += "}$CR" |
| + write_file("$root_build_dir/gradle/config.json", _json) |
| } |
| # Copy to the lib.unstripped directory so that gdb can easily find it. |