• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19python_binary_host {
20    name: "generate-sbom",
21    srcs: [
22        "generate-sbom.py",
23    ],
24    libs: [
25        "metadata_file_proto_py",
26        "libprotobuf-python",
27        "sbom_lib",
28    ],
29}
30
31python_library_host {
32    name: "compliance_metadata",
33    srcs: [
34        "compliance_metadata.py",
35    ],
36}
37
38python_binary_host {
39    name: "gen_sbom",
40    srcs: [
41        "gen_sbom.py",
42    ],
43    libs: [
44        "compliance_metadata",
45        "metadata_file_proto_py",
46        "libprotobuf-python",
47        "sbom_lib",
48    ],
49}
50
51python_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    ],
71    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    ],
83    test_suites: ["general-tests"],
84}
85
86python_binary_host {
87    name: "generate-sbom-framework_res",
88    srcs: [
89        "generate-sbom-framework_res.py",
90    ],
91    libs: [
92        "sbom_lib",
93    ],
94}
95
96python_binary_host {
97    name: "gen_notice_xml",
98    srcs: [
99        "gen_notice_xml.py",
100    ],
101    libs: [
102        "compliance_metadata",
103        "metadata_file_proto_py",
104    ],
105}
106