blob: 4837dde51d307a2f3bd5b54eba624544b0db00eb [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
36python_library_host {
37 name: "sbom_lib",
38 srcs: [
39 "sbom_data.py",
40 "sbom_writers.py",
41 ],
42}
43
44python_test_host {
45 name: "sbom_writers_test",
46 main: "sbom_writers_test.py",
47 srcs: [
48 "sbom_writers_test.py",
49 ],
50 data: [
51 "testdata/*",
52 ],
53 libs: [
54 "sbom_lib",
55 ],
56 test_suites: ["general-tests"],
57}