| 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 {% if variables.java_excludes %} |
| 13 java.filter.exclude( | 14 java.filter.exclude( |
| 14 {% for path in variables.java_excludes %} | 15 {% for path in variables.java_excludes %} |
| 15 "{{ path }}", | 16 "{{ path }}", |
| 16 {% endfor %} | 17 {% endfor %} |
| 17 ) | 18 ) |
| 19 {% endif %} |
| 18 jniLibs.srcDirs = [ | 20 jniLibs.srcDirs = [ |
| 19 {% for path in variables.jni_libs %} | 21 {% for path in variables.jni_libs %} |
| 20 "{{ path }}", | 22 "{{ path }}", |
| 21 {% endfor %} | 23 {% endfor %} |
| 22 ] | 24 ] |
| 23 res.srcDirs = [ | 25 res.srcDirs = [ |
| 24 {% for path in variables.res_dirs %} | 26 {% for path in variables.res_dirs %} |
| 25 "{{ path }}", | 27 "{{ path }}", |
| 26 {% endfor %} | 28 {% endfor %} |
| 27 ] | 29 ] |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 || it.name.endsWith('Resources') | 85 || it.name.endsWith('Resources') |
| 84 || it.name.endsWith('ResValues') | 86 || it.name.endsWith('ResValues') |
| 85 {% endif %} | 87 {% endif %} |
| 86 || it.name.endsWith('Aidl') | 88 || it.name.endsWith('Aidl') |
| 87 || it.name.endsWith('Renderscript') | 89 || it.name.endsWith('Renderscript') |
| 88 || it.name.endsWith('Shaders')) | 90 || it.name.endsWith('Shaders')) |
| 89 } | 91 } |
| 90 tasksToDisable.each { Task task -> | 92 tasksToDisable.each { Task task -> |
| 91 task.enabled = false | 93 task.enabled = false |
| 92 } | 94 } |
| 95 {% if bootclasspath is defined %} |
| 96 tasks.withType(JavaCompile) { |
| 97 options.bootClasspath = "{{ bootclasspath }}" |
| 98 } |
| 99 {% endif %} |
| 93 } | 100 } |
| OLD | NEW |