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 {% if variables.android_manifest is defined %} |
7 manifest.srcFile "{{ variables.android_manifest }}" | 8 manifest.srcFile "{{ variables.android_manifest }}" |
| 9 {% endif %} |
8 {% if variables.java_dirs is defined %} | 10 {% if variables.java_dirs is defined %} |
9 java.srcDirs = [ | 11 java.srcDirs = [ |
10 {% for path in variables.java_dirs %} | 12 {% for path in variables.java_dirs %} |
11 "{{ path }}", | 13 "{{ path }}", |
12 {% endfor %} | 14 {% endfor %} |
13 ] | 15 ] |
14 {% endif %} | 16 {% endif %} |
15 {% if variables.java_excludes is defined %} | 17 {% if variables.java_excludes is defined %} |
16 java.filter.exclude( | 18 java.filter.exclude( |
17 {% for path in variables.java_excludes %} | 19 {% for path in variables.java_excludes %} |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 101 } |
100 tasksToDisable.each { Task task -> | 102 tasksToDisable.each { Task task -> |
101 task.enabled = false | 103 task.enabled = false |
102 } | 104 } |
103 {% if bootclasspath is defined %} | 105 {% if bootclasspath is defined %} |
104 tasks.withType(JavaCompile) { | 106 tasks.withType(JavaCompile) { |
105 options.bootClasspath = "{{ bootclasspath }}" | 107 options.bootClasspath = "{{ bootclasspath }}" |
106 } | 108 } |
107 {% endif %} | 109 {% endif %} |
108 } | 110 } |
OLD | NEW |