Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: build/android/BUILD.gn

Issue 2130933002: 🎧 Initial version of Android Studio project generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 2 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
+
+ # 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.
« no previous file with comments | « no previous file | build/android/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698