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 // 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 Loading... |
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 %} |
OLD | NEW |