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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/android/gradle/generate_gradle.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# Copyright 2016 The Chromium Authors. All rights reserved. #} 1 {# Copyright 2016 The Chromium Authors. All rights reserved. #}
2 {# Use of this source code is governed by a BSD-style license that can be #} 2 {# Use of this source code is governed by a BSD-style license that can be #}
3 {# found in the LICENSE file. #} 3 {# found in the LICENSE file. #}
4 // Generated by //build/android/generate_gradle.py 4 // Generated by //build/android/generate_gradle.py
5 {% if template_type == 'root' %} 5 {% if template_type == 'root' %}
6 6
7 buildscript { 7 buildscript {
8 repositories { 8 repositories {
9 jcenter() 9 jcenter()
10 } 10 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 java.srcDirs = [] 67 java.srcDirs = []
68 jni.srcDirs = [] 68 jni.srcDirs = []
69 renderscript.srcDirs = [] 69 renderscript.srcDirs = []
70 res.srcDirs = [] 70 res.srcDirs = []
71 resources.srcDirs = [] 71 resources.srcDirs = []
72 } 72 }
73 {% endfor %} 73 {% endfor %}
74 74
75 main.manifest.srcFile "{{ android_manifest }}" 75 main.manifest.srcFile "{{ android_manifest }}"
76 76
77 {% if template_type == 'android_library' %} 77 {{ sourceSetName }} {
78 main {
79 {% else %}
80 test {
81 {% endif %}
82 java.srcDirs = [ 78 java.srcDirs = [
83 {% for path in java_dirs %} 79 {% for path in java_dirs %}
84 "{{ path }}", 80 "{{ path }}",
85 {% endfor %} 81 {% endfor %}
86 ] 82 ]
83 jniLibs.srcDirs = [
84 {% for path in jni_libs %}
85 "{{ path }}",
86 {% endfor %}
87 ]
87 } 88 }
88 } 89 }
89 } 90 }
90 91
91 {% endif %} 92 {% endif %}
92 {% if template_type != 'root' %} 93 {% if template_type != 'root' %}
93 94
94 dependencies { 95 dependencies {
95 {% for path in prebuilts %} 96 {% for path in prebuilts %}
96 {{ depCompileName }} files("{{ path }}") 97 {{ depCompileName }} files("{{ path }}")
(...skipping 27 matching lines...) Expand all
124 || it.name.endsWith('Renderscript') 125 || it.name.endsWith('Renderscript')
125 || it.name.endsWith('Shaders')) 126 || it.name.endsWith('Shaders'))
126 } 127 }
127 tasksToDisable.each { Task task -> 128 tasksToDisable.each { Task task ->
128 task.enabled = false 129 task.enabled = false
129 } 130 }
130 } 131 }
131 132
132 {% endif %} 133 {% endif %}
133 {% endif %} 134 {% endif %}
OLDNEW
« 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