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

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

Issue 2622133004: Add support for .so files in generate_gradle.py. (Closed)
Patch Set: Fixes according to agrieve's comments. Created 3 years, 11 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gradle/build.gradle.jinja
diff --git a/build/android/gradle/build.gradle.jinja b/build/android/gradle/build.gradle.jinja
index 008a1d94f32c14486c2ac97940e27bad9d105b44..1475cea39ee026926fff0915aec2d8ceca608493 100644
--- a/build/android/gradle/build.gradle.jinja
+++ b/build/android/gradle/build.gradle.jinja
@@ -74,16 +74,17 @@ android {
main.manifest.srcFile "{{ android_manifest }}"
-{% if template_type == 'android_library' %}
- main {
-{% else %}
- test {
-{% endif %}
+ {{ sourceSetName }} {
java.srcDirs = [
{% for path in java_dirs %}
"{{ path }}",
{% endfor %}
]
+ jniLibs.srcDirs = [
+{% for path in jni_libs %}
+ "{{ path }}",
+{% endfor %}
+ ]
}
}
}
« no previous file with comments | « no previous file | build/android/gradle/generate_gradle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698