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

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

Issue 2697313004: Android: Cache android studio project entries (Closed)
Patch Set: Rebase and avoid error logs Created 3 years, 10 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 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
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 }
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