blob: 6901b067203b3f83d329e92043ed723ef7efa503 [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 ],
24 version: {
25 py3: {
26 embedded_launcher: true,
27 },
28 },
29 libs: [
30 "metadata_file_proto_py",
31 "libprotobuf-python",
32 "sbom_lib",
33 ],
34}
35
Wei Lia3265ef2024-02-05 14:49:50 -080036python_binary_host {
37 name: "gen_sbom",
38 srcs: [
39 "gen_sbom.py",
40 ],
41 version: {
42 py3: {
43 embedded_launcher: true,
44 },
45 },
46 libs: [
47 "metadata_file_proto_py",
48 "libprotobuf-python",
49 "sbom_lib",
50 ],
51}
52
Wei Lidec97b12023-04-07 16:45:17 -070053python_library_host {
54 name: "sbom_lib",
55 srcs: [
56 "sbom_data.py",
57 "sbom_writers.py",
58 ],
59}
60
61python_test_host {
62 name: "sbom_writers_test",
63 main: "sbom_writers_test.py",
64 srcs: [
65 "sbom_writers_test.py",
66 ],
67 data: [
68 "testdata/*",
69 ],
70 libs: [
71 "sbom_lib",
72 ],
Wei Lif99db992023-07-31 14:12:52 -070073 version: {
74 py3: {
75 embedded_launcher: true,
76 },
77 },
78 test_suites: ["general-tests"],
79}
80
81python_test_host {
82 name: "sbom_data_test",
83 main: "sbom_data_test.py",
84 srcs: [
85 "sbom_data_test.py",
86 ],
87 libs: [
88 "sbom_lib",
89 ],
90 version: {
91 py3: {
92 embedded_launcher: true,
93 },
94 },
Wei Lidec97b12023-04-07 16:45:17 -070095 test_suites: ["general-tests"],
96}
Wei Lic134b762023-10-17 23:52:30 -070097
98python_binary_host {
99 name: "generate-sbom-framework_res",
Wei Liee4ab532023-10-25 15:49:26 -0700100 srcs: [
101 "generate-sbom-framework_res.py",
102 ],
103 version: {
104 py3: {
105 embedded_launcher: true,
Wei Lic134b762023-10-17 23:52:30 -0700106 },
Wei Liee4ab532023-10-25 15:49:26 -0700107 },
108 libs: [
109 "sbom_lib",
110 ],
Wei Lia3265ef2024-02-05 14:49:50 -0800111}