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

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

Issue 2697313004: Android: Cache android studio project entries (Closed)
Patch Set: Remove dup add docs 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
« no previous file with comments | « no previous file | build/android/gradle/generate_gradle.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 android.variantFilter { variant -> 74 android.variantFilter { variant ->
75 if (variant.buildType.name.equals('release')) { 75 if (variant.buildType.name.equals('release')) {
76 variant.setIgnore(true); 76 variant.setIgnore(true);
77 } 77 }
78 } 78 }
79 79
80 afterEvaluate { 80 afterEvaluate {
81 def tasksToDisable = tasks.findAll { 81 def tasksToDisable = tasks.findAll {
82 return (it.name.equals('generateDebugSources') // causes unwanted Andro idManifest.java 82 return (it.name.equals('generateDebugSources') // causes unwanted Andro idManifest.java
83 || it.name.equals('generateReleaseSources') 83 || it.name.equals('generateReleaseSources')
84 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf ig.java
84 {% if not use_gradle_process_resources %} 85 {% if not use_gradle_process_resources %}
85 || it.name.endsWith('Assets') 86 || it.name.endsWith('Assets')
86 {% endif %}
87 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf ig.java
88 {% if not use_gradle_process_resources %}
89 || it.name.endsWith('Resources') 87 || it.name.endsWith('Resources')
90 || it.name.endsWith('ResValues') 88 || it.name.endsWith('ResValues')
91 {% endif %} 89 {% endif %}
92 || it.name.endsWith('Aidl') 90 || it.name.endsWith('Aidl')
93 || it.name.endsWith('Renderscript') 91 || it.name.endsWith('Renderscript')
94 || it.name.endsWith('Shaders')) 92 || it.name.endsWith('Shaders'))
95 } 93 }
96 tasksToDisable.each { Task task -> 94 tasksToDisable.each { Task task ->
97 task.enabled = false 95 task.enabled = false
98 } 96 }
99 {% if bootclasspath is defined %} 97 {% if bootclasspath is defined %}
100 tasks.withType(JavaCompile) { 98 tasks.withType(JavaCompile) {
101 options.bootClasspath = "{{ bootclasspath }}" 99 options.bootClasspath = "{{ bootclasspath }}"
102 } 100 }
103 {% endif %} 101 {% endif %}
104 } 102 }
OLDNEW
« no previous file with comments | « no previous file | build/android/gradle/generate_gradle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698