xref: /aosp_15_r20/external/angle/build/android/gradle/dependencies.jinja (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker{# Copyright 2016 The Chromium Authors #}
2*8975f5c5SAndroid Build Coastguard Worker{# Use of this source code is governed by a BSD-style license that can be #}
3*8975f5c5SAndroid Build Coastguard Worker{# found in the LICENSE file. #}
4*8975f5c5SAndroid Build Coastguard Worker{% macro expand_deps(variables, prefix) %}
5*8975f5c5SAndroid Build Coastguard Worker{% if variables is defined %}
6*8975f5c5SAndroid Build Coastguard Worker{% if variables.prebuilts is defined %}
7*8975f5c5SAndroid Build Coastguard Worker{% for path in variables.prebuilts %}
8*8975f5c5SAndroid Build Coastguard Worker    {{ prefix }} files("{{ path }}")
9*8975f5c5SAndroid Build Coastguard Worker{% endfor %}
10*8975f5c5SAndroid Build Coastguard Worker{% endif %}
11*8975f5c5SAndroid Build Coastguard Worker{% if variables.java_project_deps is defined %}
12*8975f5c5SAndroid Build Coastguard Worker{% for proj in variables.java_project_deps %}
13*8975f5c5SAndroid Build Coastguard Worker    {{ prefix }} project(":{{ proj }}")
14*8975f5c5SAndroid Build Coastguard Worker{% endfor %}
15*8975f5c5SAndroid Build Coastguard Worker{% endif %}
16*8975f5c5SAndroid Build Coastguard Worker{% if variables.android_project_deps is defined %}
17*8975f5c5SAndroid Build Coastguard Worker{% for proj in variables.android_project_deps %}
18*8975f5c5SAndroid Build Coastguard Worker    {{ prefix }} project(path: ":{{ proj }}")
19*8975f5c5SAndroid Build Coastguard Worker{% endfor %}
20*8975f5c5SAndroid Build Coastguard Worker{% endif %}
21*8975f5c5SAndroid Build Coastguard Worker{% endif %}
22*8975f5c5SAndroid Build Coastguard Worker{% endmacro %}
23*8975f5c5SAndroid Build Coastguard Worker
24*8975f5c5SAndroid Build Coastguard Workerdependencies {
25*8975f5c5SAndroid Build Coastguard Worker{{ expand_deps(main, 'implementation') }}
26*8975f5c5SAndroid Build Coastguard Worker{{ expand_deps(test, 'testImplementation') }}
27*8975f5c5SAndroid Build Coastguard Worker{{ expand_deps(android_test, 'androidTestImplementation') }}
28*8975f5c5SAndroid Build Coastguard Worker}
29