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

Side by Side Diff: build/android/gradle/android.jinja

Issue 2858233002: Android: Fix generate_gradle.py (Closed)
Patch Set: Created 3 years, 7 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 {% macro expand_sourceset(variables, prefix) %} 4 {% macro expand_sourceset(variables, prefix) %}
5 {% if variables is defined %} 5 {% if variables is defined %}
6 {{ prefix }} { 6 {{ prefix }} {
7 {% if variables.android_manifest is defined %} 7 {% if variables.android_manifest is defined %}
8 manifest.srcFile "{{ variables.android_manifest }}" 8 manifest.srcFile "{{ variables.android_manifest }}"
9 {% endif %} 9 {% endif %}
10 {% if variables.java_dirs is defined %} 10 {% if variables.java_dirs is defined %}
11 java.srcDirs = [ 11 java.srcDirs = [
12 {% for path in variables.java_dirs %} 12 {% for path in variables.java_dirs %}
13 "{{ path }}", 13 "{{ path }}",
14 {% endfor %} 14 {% endfor %}
15 ] 15 ]
16 {% endif %} 16 {% endif %}
17 {% if variables.java_excludes is defined %} 17 {% if variables.java_excludes is defined %}
18 java.filter.exclude( 18 java.filter.exclude(
19 {% for path in variables.java_excludes %} 19 {% for path in variables.java_excludes %}
20 "{{ path }}", 20 "{{ path }}",
21 {% endfor %} 21 {% endfor %}
22 ) 22 )
23 {% endif %} 23 {% endif %}
24 {% if variables.jniLibs is defined %} 24 {% if variables.jni_libs is defined %}
25 jniLibs.srcDirs = [ 25 jniLibs.srcDirs = [
26 {% for path in variables.jni_libs %} 26 {% for path in variables.jni_libs %}
27 "{{ path }}", 27 "{{ path }}",
28 {% endfor %} 28 {% endfor %}
29 ] 29 ]
30 {% endif %} 30 {% endif %}
31 {% if variables.res_dirs is defined %} 31 {% if variables.res_dirs is defined %}
32 res.srcDirs = [ 32 res.srcDirs = [
33 {% for path in variables.res_dirs %} 33 {% for path in variables.res_dirs %}
34 "{{ path }}", 34 "{{ path }}",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 tasksToDisable.each { Task task -> 102 tasksToDisable.each { Task task ->
103 task.enabled = false 103 task.enabled = false
104 } 104 }
105 {% if bootclasspath is defined %} 105 {% if bootclasspath is defined %}
106 tasks.withType(JavaCompile) { 106 tasks.withType(JavaCompile) {
107 options.bootClasspath = "{{ bootclasspath }}" 107 options.bootClasspath = "{{ bootclasspath }}"
108 } 108 }
109 {% endif %} 109 {% endif %}
110 } 110 }
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