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

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

Issue 2746103004: Android: Support Android Studio 2.3 (Closed)
Patch Set: Fix per review. Created 3 years, 9 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 manifest.srcFile "{{ variables.android_manifest }}" 7 manifest.srcFile "{{ variables.android_manifest }}"
8 java.srcDirs = [ 8 java.srcDirs = [
9 {% for path in variables.java_dirs %} 9 {% for path in variables.java_dirs %}
10 "{{ path }}", 10 "{{ path }}",
11 {% endfor %} 11 {% endfor %}
12 ] 12 {% if variables.java_files %}
13 {% if variables.java_excludes %} 13 {% for path in variables.java_files %}
14 java.filter.exclude(
15 {% for path in variables.java_excludes %}
16 "{{ path }}", 14 "{{ path }}",
17 {% endfor %} 15 {% endfor %}
18 )
19 {% endif %} 16 {% endif %}
17 ]
20 jniLibs.srcDirs = [ 18 jniLibs.srcDirs = [
21 {% for path in variables.jni_libs %} 19 {% for path in variables.jni_libs %}
22 "{{ path }}", 20 "{{ path }}",
23 {% endfor %} 21 {% endfor %}
24 ] 22 ]
25 res.srcDirs = [ 23 res.srcDirs = [
26 {% for path in variables.res_dirs %} 24 {% for path in variables.res_dirs %}
27 "{{ path }}", 25 "{{ path }}",
28 {% endfor %} 26 {% endfor %}
29 ] 27 ]
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 91 }
94 tasksToDisable.each { Task task -> 92 tasksToDisable.each { Task task ->
95 task.enabled = false 93 task.enabled = false
96 } 94 }
97 {% if bootclasspath is defined %} 95 {% if bootclasspath is defined %}
98 tasks.withType(JavaCompile) { 96 tasks.withType(JavaCompile) {
99 options.bootClasspath = "{{ bootclasspath }}" 97 options.bootClasspath = "{{ bootclasspath }}"
100 } 98 }
101 {% endif %} 99 {% endif %}
102 } 100 }
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