blob: f6c01900c5a4a4055daf068ce525e7ab4ff2008d [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
15python_binary_host {
16 name: "generate-sbom",
17 srcs: [
18 "generate-sbom.py",
19 ],
20 version: {
21 py3: {
22 embedded_launcher: true,
23 },
24 },
25 libs: [
26 "metadata_file_proto_py",
27 "libprotobuf-python",
28 "sbom_lib",
29 ],
30}
31
32python_library_host {
33 name: "sbom_lib",
34 srcs: [
35 "sbom_data.py",
36 "sbom_writers.py",
37 ],
38}
39
40python_test_host {
41 name: "sbom_writers_test",
42 main: "sbom_writers_test.py",
43 srcs: [
44 "sbom_writers_test.py",
45 ],
46 data: [
47 "testdata/*",
48 ],
49 libs: [
50 "sbom_lib",
51 ],
52 test_suites: ["general-tests"],
53}