1#
2# Copyright (C) 2018 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Build rules for VTF (Vendor Test Framework).
18LOCAL_PATH := $(call my-dir)
19
20vtf_tradefed_modules := \
21  compatibility-common-util-tests \
22  compatibility-host-util \
23  compatibility-host-util-tests \
24  compatibility-tradefed-tests \
25  host-libprotobuf-java-full \
26  loganalysis \
27  tradefed \
28  vts-tradefed \
29  vts10-tradefed \
30  vts10-tradefed-tests \
31
32vtf_tradefed_copy_pairs := \
33  $(foreach f,$(vtf_tradefed_modules),\
34    $(HOST_OUT)/framework/$(f).jar:$(VTF_TOOLS_OUT)/$(f).jar)
35
36vtf_tradefed_additional_deps_copy_pairs := \
37  test/vts/tools/vts-tradefed/etc/vts10-tradefed:$(VTF_TOOLS_OUT)/vts10-tradefed
38
39vtf_tradefed_additional_deps_copy_pairs += \
40  $(foreach f,$(VTF_COPY_VTF_BINARY),\
41    test/vts/tools/vts-tradefed/etc/$(f):$(VTF_TESTCASES_OUT)/$(f))
42
43vtf_package_copy_pairs := \
44  $(call copy-many-files,$(vtf_tradefed_copy_pairs)) \
45  $(call copy-many-files,$(vtf_tradefed_additional_deps_copy_pairs)) \
46
47.PHONY: vtf
48vtf: $(vtf_copy_pairs) $(vtf_package_copy_pairs)
49