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

Unified Diff: build/android/gradle/android.jinja

Issue 2812133003: Android: Add pseudo module for Android Studio (Closed)
Patch Set: Created 3 years, 8 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/gradle/generate_gradle.py » ('j') | build/android/gradle/generate_gradle.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gradle/android.jinja
diff --git a/build/android/gradle/android.jinja b/build/android/gradle/android.jinja
index 197f98f298c2f01e416212578fcc1240254b6cf1..c2024662eea579a2468443c6876ba119295e5e6f 100644
--- a/build/android/gradle/android.jinja
+++ b/build/android/gradle/android.jinja
@@ -5,28 +5,34 @@
{% if variables is defined %}
{{ prefix }} {
manifest.srcFile "{{ variables.android_manifest }}"
+{% if variables.java_dirs is defined %}
java.srcDirs = [
{% for path in variables.java_dirs %}
"{{ path }}",
{% endfor %}
]
-{% if variables.java_excludes %}
+{% endif %}
+{% if variables.java_excludes is defined %}
java.filter.exclude(
{% for path in variables.java_excludes %}
"{{ path }}",
{% endfor %}
)
{% endif %}
+{% if variables.jniLibs is defined %}
jniLibs.srcDirs = [
{% for path in variables.jni_libs %}
"{{ path }}",
{% endfor %}
]
+{% endif %}
+{% if variables.res_dirs is defined %}
res.srcDirs = [
{% for path in variables.res_dirs %}
"{{ path }}",
{% endfor %}
]
+{% endif %}
}
{% endif %}
{% endmacro %}
« no previous file with comments | « no previous file | build/android/gradle/generate_gradle.py » ('j') | build/android/gradle/generate_gradle.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698