Keun Soo YIM | 9599712 | 2018-11-29 17:30:35 -0800 | [diff] [blame] | 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). |
| 18 | LOCAL_PATH := $(call my-dir) |
| 19 | |
| 20 | vtf_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 \ |
Dan Shi | 855d22f | 2020-04-04 00:17:58 +0000 | [diff] [blame] | 29 | vts-tradefed \ |
Dan Shi | 2dbc23a | 2020-03-31 20:34:10 +0000 | [diff] [blame] | 30 | vts10-tradefed \ |
| 31 | vts10-tradefed-tests \ |
Keun Soo YIM | 9599712 | 2018-11-29 17:30:35 -0800 | [diff] [blame] | 32 | |
| 33 | vtf_tradefed_copy_pairs := \ |
| 34 | $(foreach f,$(vtf_tradefed_modules),\ |
| 35 | $(HOST_OUT)/framework/$(f).jar:$(VTF_TOOLS_OUT)/$(f).jar) |
| 36 | |
| 37 | vtf_tradefed_additional_deps_copy_pairs := \ |
Dan Shi | 2dbc23a | 2020-03-31 20:34:10 +0000 | [diff] [blame] | 38 | test/vts/tools/vts-tradefed/etc/vts10-tradefed:$(VTF_TOOLS_OUT)/vts10-tradefed |
Keun Soo YIM | 9599712 | 2018-11-29 17:30:35 -0800 | [diff] [blame] | 39 | |
| 40 | vtf_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 | |
| 44 | vtf_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 |
| 49 | vtf: $(vtf_copy_pairs) $(vtf_package_copy_pairs) |