OLD | NEW |
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 ] |
13 java.filter.exclude( | 13 java.filter.exclude( |
14 {% for path in variables.java_excludes %} | 14 {% for path in variables.java_excludes %} |
15 "{{ path }}", | 15 "{{ path }}", |
16 {% endfor %} | 16 {% endfor %} |
17 ) | 17 ) |
18 jniLibs.srcDirs = [ | 18 jniLibs.srcDirs = [ |
19 {% for path in variables.jni_libs %} | 19 {% for path in variables.jni_libs %} |
20 "{{ path }}", | 20 "{{ path }}", |
21 {% endfor %} | 21 {% endfor %} |
22 ] | 22 ] |
| 23 res.srcDirs = [ |
| 24 {% for path in variables.res_dirs %} |
| 25 "{{ path }}", |
| 26 {% endfor %} |
| 27 ] |
23 } | 28 } |
24 {% endif %} | 29 {% endif %} |
25 {% endmacro %} | 30 {% endmacro %} |
26 // Generated by //build/android/generate_gradle.py | 31 // Generated by //build/android/generate_gradle.py |
27 | 32 |
28 {% if template_type in ('android_library', 'android_junit') %} | 33 {% if template_type in ('android_library', 'android_junit') %} |
29 apply plugin: "com.android.library" | 34 apply plugin: "com.android.library" |
30 {% elif template_type == 'android_apk' %} | 35 {% elif template_type == 'android_apk' %} |
31 apply plugin: "com.android.application" | 36 apply plugin: "com.android.application" |
32 {% endif %} | 37 {% endif %} |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 || it.name.endsWith('ResValues') | 84 || it.name.endsWith('ResValues') |
80 {% endif %} | 85 {% endif %} |
81 || it.name.endsWith('Aidl') | 86 || it.name.endsWith('Aidl') |
82 || it.name.endsWith('Renderscript') | 87 || it.name.endsWith('Renderscript') |
83 || it.name.endsWith('Shaders')) | 88 || it.name.endsWith('Shaders')) |
84 } | 89 } |
85 tasksToDisable.each { Task task -> | 90 tasksToDisable.each { Task task -> |
86 task.enabled = false | 91 task.enabled = false |
87 } | 92 } |
88 } | 93 } |
OLD | NEW |