blob: 42bf8feeccea97a0ec8a99e2576ce94407ca08ba [file] [log] [blame]
Ian Kasprzak9601e6e2019-11-08 18:40:39 -08001// Copyright (C) 2019 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
Bob Badour03905802021-02-12 21:42:54 -080015package {
16 // See: http://go/android-license-faq
Bob Badourd2c7c082022-01-24 15:21:32 -080017 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour03905802021-02-12 21:42:54 -080018}
19
Ian Kasprzak9601e6e2019-11-08 18:40:39 -080020python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070021 name: "generate-self-extracting-archive",
22 srcs: ["generate-self-extracting-archive.py"],
Ian Kasprzak9601e6e2019-11-08 18:40:39 -080023}
Jiyong Parkae556382020-05-20 18:33:43 +090024
25python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070026 name: "post_process_props",
27 srcs: ["post_process_props.py"],
Jiyong Parkae556382020-05-20 18:33:43 +090028}
Jiyong Parkd721e872020-06-22 17:30:57 +090029
30python_test_host {
Cole Faust80fad162023-10-04 14:48:25 -070031 name: "post_process_props_unittest",
32 main: "test_post_process_props.py",
33 srcs: [
34 "post_process_props.py",
35 "test_post_process_props.py",
36 ],
37 test_config: "post_process_props_unittest.xml",
38 test_suites: ["general-tests"],
Jiyong Parkd721e872020-06-22 17:30:57 +090039}
Yifan Hong351b6b82020-07-27 18:49:41 -070040
41python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070042 name: "extract_kernel",
43 srcs: ["extract_kernel.py"],
Yifan Hong351b6b82020-07-27 18:49:41 -070044}
45
46genrule_defaults {
Cole Faust80fad162023-10-04 14:48:25 -070047 name: "extract_kernel_release_defaults",
48 tools: [
49 "extract_kernel",
50 "lz4",
51 ],
52 out: ["kernel_release.txt"],
53 cmd: "$(location) --tools lz4:$(location lz4) --input $(in) --output-release > $(out)",
Yifan Hong351b6b82020-07-27 18:49:41 -070054}
Sasha Smundak2bfc5702022-06-22 16:24:47 -070055
56cc_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070057 name: "build-runfiles",
58 srcs: ["build-runfiles.cc"],
Sasha Smundak2bfc5702022-06-22 16:24:47 -070059}
Spandan Dasce69e9c2022-10-23 01:13:50 +000060
61python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070062 name: "check_radio_versions",
63 srcs: ["check_radio_versions.py"],
Spandan Dasce69e9c2022-10-23 01:13:50 +000064}
Spandan Das60b81952022-10-27 00:44:24 +000065
66python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070067 name: "check_elf_file",
68 srcs: ["check_elf_file.py"],
Spandan Das60b81952022-10-27 00:44:24 +000069}
Yihan Dong881461f2022-11-30 18:06:20 +080070
71python_binary_host {
Cole Faust80fad162023-10-04 14:48:25 -070072 name: "generate_gts_shared_report",
73 srcs: ["generate_gts_shared_report.py"],
Yihan Dong881461f2022-11-30 18:06:20 +080074}
Wei Li49933362023-01-04 17:13:47 -080075
76python_binary_host {
Jihoon Kang10837932023-03-30 21:48:05 +000077 name: "list_files",
78 main: "list_files.py",
79 srcs: [
80 "list_files.py",
81 ],
Jihoon Kang8f6edbb2023-04-05 22:30:27 +000082 version: {
Cole Faust80fad162023-10-04 14:48:25 -070083 py3: {
84 embedded_launcher: true,
85 },
86 },
87}
88
89python_binary_host {
90 name: "compare_file_list_to_staging_dir",
91 srcs: ["compare_file_list_to_staging_dir.py"],
92 version: {
93 py3: {
94 embedded_launcher: true,
95 },
96 },
Jihoon Kang10837932023-03-30 21:48:05 +000097}
Jingwen Chenf3406e62023-09-18 07:19:11 +000098
99python_test_host {
100 name: "auto_gen_test_config_test",
101 main: "auto_gen_test_config_test.py",
102 srcs: [
103 "auto_gen_test_config.py",
104 "auto_gen_test_config_test.py",
105 ],
106 auto_gen_config: true,
107 test_suites: ["general-tests"],
108 test_options: {
109 unit_test: true,
110 },
111}