• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  hosttestlib \
26  host-libprotobuf-java-full \
27  loganalysis \
28  tradefed \
29  vts-tradefed \
30  vts10-tradefed \
31  vts10-tradefed-tests \
32
33vtf_tradefed_copy_pairs := \
34  $(foreach f,$(vtf_tradefed_modules),\
35    $(HOST_OUT)/framework/$(f).jar:$(VTF_TOOLS_OUT)/$(f).jar)
36
37vtf_tradefed_additional_deps_copy_pairs := \
38  test/vts/tools/vts-tradefed/etc/vts10-tradefed:$(VTF_TOOLS_OUT)/vts10-tradefed
39
40vtf_tradefed_additional_deps_copy_pairs += \
41  $(foreach f,$(VTF_COPY_VTF_BINARY),\
42    test/vts/tools/vts-tradefed/etc/$(f):$(VTF_TESTCASES_OUT)/$(f))
43
44vtf_package_copy_pairs := \
45  $(call copy-many-files,$(vtf_tradefed_copy_pairs)) \
46  $(call copy-many-files,$(vtf_tradefed_additional_deps_copy_pairs)) \
47
48.PHONY: vtf
49vtf: $(vtf_copy_pairs) $(vtf_package_copy_pairs)
50