• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_TF_JARNAMES = [
25    f.replace("{prebuilts_dir_name}/host/tradefed/", "") for f in _TF_JARS
26]
27
28genrule(name="tradefed_lib_soong_import",
29        srcs=_TF_JARS,
30        outs=_TF_JARNAMES,
31        cmd="cp -t $(RULEDIR) $(SRCS)")
32
33java_import(name="tradefed_lib", jars=[":tradefed_lib_soong_import"])
34
35genrule(name="script_help",
36        srcs=[
37            "{prebuilts_dir_name}/host/bin/script_help.sh",
38        ],
39        outs=["script_help.sh"],
40        cmd="cp -t $(RULEDIR) $<")
41
42genrule(
43    name="tradefed",
44    srcs=[
45        ":script_help",
46        ":tradefed_lib",
47        "{prebuilts_dir_name}/host/bin/tradefed.sh",
48    ],
49    outs=["tradefed.sh"],
50    cmd=
51    "cp -t $(RULEDIR) $(location {prebuilts_dir_name}/host/bin/tradefed.sh)",
52    executable=True,
53)
54
55genrule(
56    name="atest_tradefed",
57    srcs=[
58        ":script_help", ":tradefed_lib",
59        "{prebuilts_dir_name}/host/bin/atest_tradefed.sh"
60    ],
61    outs=["atest_tradefed.sh"],
62    cmd=
63    "cp -t $(RULEDIR) $(location {prebuilts_dir_name}/host/bin/atest_tradefed.sh)",
64    executable=True,
65)
66