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

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

Issue 2812133003: Android: Add pseudo module for Android Studio (Closed)
Patch Set: Update docs and switch to sorted 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 unified diff | Download patch
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 {% if variables.java_dirs is defined %}
8 java.srcDirs = [ 9 java.srcDirs = [
9 {% for path in variables.java_dirs %} 10 {% for path in variables.java_dirs %}
10 "{{ path }}", 11 "{{ path }}",
11 {% endfor %} 12 {% endfor %}
12 ] 13 ]
13 {% if variables.java_excludes %} 14 {% endif %}
15 {% if variables.java_excludes is defined %}
14 java.filter.exclude( 16 java.filter.exclude(
15 {% for path in variables.java_excludes %} 17 {% for path in variables.java_excludes %}
16 "{{ path }}", 18 "{{ path }}",
17 {% endfor %} 19 {% endfor %}
18 ) 20 )
19 {% endif %} 21 {% endif %}
22 {% if variables.jniLibs is defined %}
sakal-chromium 2017/05/04 09:37:39 Should be jni_libs not jniLibs.
Peter Wen 2017/05/04 10:19:58 +1 will fix in follow-up CL.
20 jniLibs.srcDirs = [ 23 jniLibs.srcDirs = [
21 {% for path in variables.jni_libs %} 24 {% for path in variables.jni_libs %}
22 "{{ path }}", 25 "{{ path }}",
23 {% endfor %} 26 {% endfor %}
24 ] 27 ]
28 {% endif %}
29 {% if variables.res_dirs is defined %}
25 res.srcDirs = [ 30 res.srcDirs = [
26 {% for path in variables.res_dirs %} 31 {% for path in variables.res_dirs %}
27 "{{ path }}", 32 "{{ path }}",
28 {% endfor %} 33 {% endfor %}
29 ] 34 ]
35 {% endif %}
30 } 36 }
31 {% endif %} 37 {% endif %}
32 {% endmacro %} 38 {% endmacro %}
33 // Generated by //build/android/generate_gradle.py 39 // Generated by //build/android/generate_gradle.py
34 40
35 {% if template_type in ('android_library', 'android_junit') %} 41 {% if template_type in ('android_library', 'android_junit') %}
36 apply plugin: "com.android.library" 42 apply plugin: "com.android.library"
37 {% elif template_type == 'android_apk' %} 43 {% elif template_type == 'android_apk' %}
38 apply plugin: "com.android.application" 44 apply plugin: "com.android.application"
39 {% endif %} 45 {% endif %}
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 99 }
94 tasksToDisable.each { Task task -> 100 tasksToDisable.each { Task task ->
95 task.enabled = false 101 task.enabled = false
96 } 102 }
97 {% if bootclasspath is defined %} 103 {% if bootclasspath is defined %}
98 tasks.withType(JavaCompile) { 104 tasks.withType(JavaCompile) {
99 options.bootClasspath = "{{ bootclasspath }}" 105 options.bootClasspath = "{{ bootclasspath }}"
100 } 106 }
101 {% endif %} 107 {% endif %}
102 } 108 }
OLDNEW
« 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