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 }}", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 android.variantFilter { variant -> | 72 android.variantFilter { variant -> |
73 if (variant.buildType.name.equals('release')) { | 73 if (variant.buildType.name.equals('release')) { |
74 variant.setIgnore(true); | 74 variant.setIgnore(true); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 afterEvaluate { | 78 afterEvaluate { |
79 def tasksToDisable = tasks.findAll { | 79 def tasksToDisable = tasks.findAll { |
80 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java | 80 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java |
81 || it.name.equals('generateReleaseSources') | 81 || it.name.equals('generateReleaseSources') |
| 82 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java |
82 {% if not use_gradle_process_resources %} | 83 {% if not use_gradle_process_resources %} |
83 || it.name.endsWith('Assets') | 84 || it.name.endsWith('Assets') |
84 {% endif %} | |
85 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java | |
86 {% if not use_gradle_process_resources %} | |
87 || it.name.endsWith('Resources') | 85 || it.name.endsWith('Resources') |
88 || it.name.endsWith('ResValues') | 86 || it.name.endsWith('ResValues') |
89 {% endif %} | 87 {% endif %} |
90 || it.name.endsWith('Aidl') | 88 || it.name.endsWith('Aidl') |
91 || it.name.endsWith('Renderscript') | 89 || it.name.endsWith('Renderscript') |
92 || it.name.endsWith('Shaders')) | 90 || it.name.endsWith('Shaders')) |
93 } | 91 } |
94 tasksToDisable.each { Task task -> | 92 tasksToDisable.each { Task task -> |
95 task.enabled = false | 93 task.enabled = false |
96 } | 94 } |
97 } | 95 } |
OLD | NEW |