blob: d2e6b55189812e6bb1750dbcbc20ac908c19bfd7 [file] [log] [blame]
Wei Lidec97b12023-04-07 16:45:17 -07001// Copyright (C) 2023 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 Badourffba21b2023-04-19 09:48:01 -070015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Wei Lidec97b12023-04-07 16:45:17 -070019python_binary_host {
20 name: "generate-sbom",
21 srcs: [
22 "generate-sbom.py",
23 ],
Wei Lidec97b12023-04-07 16:45:17 -070024 libs: [
25 "metadata_file_proto_py",
26 "libprotobuf-python",
27 "sbom_lib",
28 ],
29}
30
Wei Li0c6bc1a2024-09-23 21:24:13 +000031python_library_host {
32 name: "compliance_metadata",
33 srcs: [
34 "compliance_metadata.py",
35 ],
36}
37
Wei Lia3265ef2024-02-05 14:49:50 -080038python_binary_host {
39 name: "gen_sbom",
40 srcs: [
41 "gen_sbom.py",
42 ],
Wei Lia3265ef2024-02-05 14:49:50 -080043 libs: [
Wei Li0c6bc1a2024-09-23 21:24:13 +000044 "compliance_metadata",
Wei Lia3265ef2024-02-05 14:49:50 -080045 "metadata_file_proto_py",
46 "libprotobuf-python",
47 "sbom_lib",
48 ],
49}
50
Wei Lidec97b12023-04-07 16:45:17 -070051python_library_host {
52 name: "sbom_lib",
53 srcs: [
54 "sbom_data.py",
55 "sbom_writers.py",
56 ],
57}
58
59python_test_host {
60 name: "sbom_writers_test",
61 main: "sbom_writers_test.py",
62 srcs: [
63 "sbom_writers_test.py",
64 ],
65 data: [
66 "testdata/*",
67 ],
68 libs: [
69 "sbom_lib",
70 ],
Wei Lif99db992023-07-31 14:12:52 -070071 test_suites: ["general-tests"],
72}
73
74python_test_host {
75 name: "sbom_data_test",
76 main: "sbom_data_test.py",
77 srcs: [
78 "sbom_data_test.py",
79 ],
80 libs: [
81 "sbom_lib",
82 ],
Wei Lidec97b12023-04-07 16:45:17 -070083 test_suites: ["general-tests"],
84}
Wei Lic134b762023-10-17 23:52:30 -070085
86python_binary_host {
87 name: "generate-sbom-framework_res",
Wei Liee4ab532023-10-25 15:49:26 -070088 srcs: [
89 "generate-sbom-framework_res.py",
90 ],
Wei Liee4ab532023-10-25 15:49:26 -070091 libs: [
92 "sbom_lib",
93 ],
Wei Lia3265ef2024-02-05 14:49:50 -080094}
Wei Li486c6272024-09-19 17:55:10 +000095
96python_binary_host {
97 name: "gen_notice_xml",
98 srcs: [
99 "gen_notice_xml.py",
100 ],
Wei Li486c6272024-09-19 17:55:10 +0000101 libs: [
Wei Li0a3d8942025-01-31 12:23:06 -0800102 "compliance_metadata",
103 "metadata_file_proto_py",
Wei Li486c6272024-09-19 17:55:10 +0000104 ],
105}