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

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

Issue 2708133002: Android: Android studio single module per target (Closed)
Patch Set: Rebase Created 3 years, 9 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_deps(variables, prefix) %} 4 {% macro expand_deps(variables, prefix) %}
5 {% if variables is defined %} 5 {% if variables is defined %}
6 {% if variables.prebuilts is defined %}
6 {% for path in variables.prebuilts %} 7 {% for path in variables.prebuilts %}
7 {{ prefix }} files("{{ path }}") 8 {{ prefix }} files("{{ path }}")
8 {% endfor %} 9 {% endfor %}
10 {% endif %}
11 {% if variables.java_project_deps is defined %}
9 {% for proj in variables.java_project_deps %} 12 {% for proj in variables.java_project_deps %}
10 {{ prefix }} project(":{{ proj }}") 13 {{ prefix }} project(":{{ proj }}")
11 {% endfor %} 14 {% endfor %}
15 {% endif %}
16 {% if variables.android_project_deps is defined %}
12 {% for proj in variables.android_project_deps %} 17 {% for proj in variables.android_project_deps %}
13 {{ prefix }} project(path: ":{{ proj }}", configuration: "debug") 18 {{ prefix }} project(path: ":{{ proj }}", configuration: "debug")
14 {% endfor %} 19 {% endfor %}
15 {% endif %} 20 {% endif %}
21 {% endif %}
16 {% endmacro %} 22 {% endmacro %}
17 23
18 dependencies { 24 dependencies {
19 {{ expand_deps(main, 'compile') }} 25 {{ expand_deps(main, 'compile') }}
20 {{ expand_deps(test, 'testCompile') }} 26 {{ expand_deps(test, 'testCompile') }}
21 {{ expand_deps(android_test, 'androidTestCompile') }} 27 {{ expand_deps(android_test, 'androidTestCompile') }}
22 } 28 }
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