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 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 java.srcDirs = [] | 67 java.srcDirs = [] |
68 jni.srcDirs = [] | 68 jni.srcDirs = [] |
69 renderscript.srcDirs = [] | 69 renderscript.srcDirs = [] |
70 res.srcDirs = [] | 70 res.srcDirs = [] |
71 resources.srcDirs = [] | 71 resources.srcDirs = [] |
72 } | 72 } |
73 {% endfor %} | 73 {% endfor %} |
74 | 74 |
75 main.manifest.srcFile "{{ android_manifest }}" | 75 main.manifest.srcFile "{{ android_manifest }}" |
76 | 76 |
77 {% if template_type == 'android_library' %} | 77 {{ sourceSetName }} { |
78 main { | |
79 {% else %} | |
80 test { | |
81 {% endif %} | |
82 java.srcDirs = [ | 78 java.srcDirs = [ |
83 {% for path in java_dirs %} | 79 {% for path in java_dirs %} |
84 "{{ path }}", | 80 "{{ path }}", |
85 {% endfor %} | 81 {% endfor %} |
86 ] | 82 ] |
| 83 jniLibs.srcDirs = [ |
| 84 {% for path in jni_libs %} |
| 85 "{{ path }}", |
| 86 {% endfor %} |
| 87 ] |
87 } | 88 } |
88 } | 89 } |
89 } | 90 } |
90 | 91 |
91 {% endif %} | 92 {% endif %} |
92 {% if template_type != 'root' %} | 93 {% if template_type != 'root' %} |
93 | 94 |
94 dependencies { | 95 dependencies { |
95 {% for path in prebuilts %} | 96 {% for path in prebuilts %} |
96 {{ depCompileName }} files("{{ path }}") | 97 {{ depCompileName }} files("{{ path }}") |
(...skipping 27 matching lines...) Expand all Loading... |
124 || it.name.endsWith('Renderscript') | 125 || it.name.endsWith('Renderscript') |
125 || it.name.endsWith('Shaders')) | 126 || it.name.endsWith('Shaders')) |
126 } | 127 } |
127 tasksToDisable.each { Task task -> | 128 tasksToDisable.each { Task task -> |
128 task.enabled = false | 129 task.enabled = false |
129 } | 130 } |
130 } | 131 } |
131 | 132 |
132 {% endif %} | 133 {% endif %} |
133 {% endif %} | 134 {% endif %} |
OLD | NEW |