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

Unified Diff: build/config/android/rules.gni

Issue 2545793002: Android: Add java files from android_apk targets (Closed)
Patch Set: Explicit is better than implicit. Created 4 years 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 | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 0f189143392cd88184e3ec9f76ac8db0402112d2..91d84cc48dd514cc274735a92ddcd3ccd3bfea8f 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -1433,6 +1433,9 @@ if (enable_java_templates) {
_lib_dex_path = "$base_path.dex.jar"
_rebased_lib_dex_path = rebase_path(_lib_dex_path, root_build_dir)
_template_name = target_name
+ if (defined(invoker.java_files)) {
+ _java_sources_file = "$base_path.sources"
+ }
enable_multidex =
defined(invoker.enable_multidex) && invoker.enable_multidex
@@ -1616,6 +1619,10 @@ if (enable_java_templates) {
build_config = _build_config
android_manifest = _android_manifest
+ if (defined(_java_sources_file)) {
+ java_sources_file = _java_sources_file
+ }
+
deps = _android_manifest_deps
if (defined(invoker.deps)) {
@@ -1782,6 +1789,9 @@ if (enable_java_templates) {
jar_path = _jar_path
dex_path = _lib_dex_path
emma_never_instrument = _emma_never_instrument
+ if (defined(_java_sources_file)) {
+ java_sources_file = _java_sources_file
+ }
if (defined(invoker.deps)) {
deps += invoker.deps
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698