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

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

Issue 2362613002: generate_gradle.py: Allow multiple --target and add --all (Closed)
Patch Set: Created 4 years, 3 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 // Generated by //build/android/generate_gradle.py 4 // Generated by //build/android/generate_gradle.py
5 {% if template_type == 'root' %} 5 {% if template_type == 'root' %}
6 6
7 buildscript { 7 buildscript {
8 repositories { 8 repositories {
9 jcenter() 9 jcenter()
10 } 10 }
11 dependencies { 11 dependencies {
12 classpath "com.android.tools.build:gradle:2.2.0" 12 classpath "com.android.tools.build:gradle:2.2.0"
13 } 13 }
14 } 14 }
15 15
16 {% elif template_type == 'java_library' %} 16 {% elif template_type == 'java_library' %}
17 17
18 apply plugin: "java" 18 apply plugin: "java"
19 19
20 sourceSets { 20 sourceSets {
21 main { 21 main {
22 java.srcDirs = {{ java_dirs }} 22 java.srcDirs = [
23 {% for path in java_dirs %}
24 "{{ path }}",
25 {% endfor %}
26 ]
23 } 27 }
24 } 28 }
25 29
26 sourceCompatibility = JavaVersion.VERSION_1_7 30 sourceCompatibility = JavaVersion.VERSION_1_7
27 targetCompatibility = JavaVersion.VERSION_1_7 31 targetCompatibility = JavaVersion.VERSION_1_7
28 32
29 {% else %} 33 {% else %}
30 34
31 {% if template_type == 'android_library' %} 35 {% if template_type == 'android_library' %}
32 apply plugin: "com.android.library" 36 apply plugin: "com.android.library"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 || it.name.endsWith('Aidl') 93 || it.name.endsWith('Aidl')
90 || it.name.endsWith('Renderscript') 94 || it.name.endsWith('Renderscript')
91 || it.name.endsWith('Shaders')) 95 || it.name.endsWith('Shaders'))
92 } 96 }
93 tasksToDisable.each { Task task -> 97 tasksToDisable.each { Task task ->
94 task.enabled = false 98 task.enabled = false
95 } 99 }
96 } 100 }
97 101
98 {% endif %} 102 {% endif %}
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