1# Copyright {year}, The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# WARNING: This BUILD file was generated by a tool. 16# It should not be manually modified. 17 18# SOONG_TARGET:tradefed-core 19# SOONG_TARGET:atest-tradefed 20 21package(default_visibility=["//visibility:public"]) 22 23_TF_JARS = glob(["{prebuilts_dir_name}/host/tradefed/*.jar"]) 24_ATEST_TF_JAR_SRC = ["{prebuilts_dir_name}/host/framework/atest-tradefed.jar"] 25_ATEST_TF_JAR_DEST = ["atest-tradefed.jar"] 26_TF_JARNAMES = [ 27 f.replace("{prebuilts_dir_name}/host/tradefed/", "") for f in _TF_JARS 28] 29 30genrule(name="tradefed_lib_soong_import", 31 srcs=_TF_JARS + _ATEST_TF_JAR_SRC, 32 outs=_TF_JARNAMES + _ATEST_TF_JAR_DEST, 33 cmd="cp -t $(RULEDIR) $(SRCS)") 34 35java_import(name="tradefed_lib", jars=[":tradefed_lib_soong_import"]) 36 37genrule(name="script_help", 38 srcs=[ 39 "{prebuilts_dir_name}/host/bin/script_help.sh", 40 ], 41 outs=["script_help.sh"], 42 cmd="cp -t $(RULEDIR) $<") 43 44genrule(name="atest_script_help", 45 srcs=[ 46 "{prebuilts_dir_name}/host/bin/atest_script_help.sh" 47 ], 48 outs=["atest_script_help.sh"], 49 cmd="cp -t $(RULEDIR) $<") 50 51genrule( 52 name="tradefed", 53 srcs=[ 54 ":script_help", 55 ":tradefed_lib", 56 "{prebuilts_dir_name}/host/bin/tradefed.sh", 57 ], 58 outs=["tradefed.sh"], 59 cmd= 60 "cp -t $(RULEDIR) $(location {prebuilts_dir_name}/host/bin/tradefed.sh)", 61 executable=True, 62) 63 64genrule( 65 name="atest_tradefed", 66 srcs=[ 67 ":tradefed_lib", ":atest_script_help", 68 "{prebuilts_dir_name}/host/bin/atest_tradefed.sh", 69 ], 70 outs=["atest_tradefed.sh"], 71 cmd= 72 "cp -t $(RULEDIR) $(location {prebuilts_dir_name}/host/bin/atest_tradefed.sh)", 73 executable=True, 74) 75