• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20blueprint_go_binary {
21    name: "compliance_checkshare",
22    srcs: ["cmd/checkshare/checkshare.go"],
23    deps: [
24        "compliance-module",
25        "soong-response",
26    ],
27    testSrcs: ["cmd/checkshare/checkshare_test.go"],
28}
29
30blueprint_go_binary {
31    name: "compliancenotice_bom",
32    srcs: ["cmd/bom/bom.go"],
33    deps: [
34        "compliance-module",
35        "soong-response",
36    ],
37    testSrcs: ["cmd/bom/bom_test.go"],
38}
39
40blueprint_go_binary {
41    name: "compliancenotice_shippedlibs",
42    srcs: ["cmd/shippedlibs/shippedlibs.go"],
43    deps: [
44        "compliance-module",
45        "soong-response",
46    ],
47    testSrcs: ["cmd/shippedlibs/shippedlibs_test.go"],
48}
49
50blueprint_go_binary {
51    name: "compliance_listshare",
52    srcs: ["cmd/listshare/listshare.go"],
53    deps: [
54        "compliance-module",
55        "soong-response",
56    ],
57    testSrcs: ["cmd/listshare/listshare_test.go"],
58}
59
60blueprint_go_binary {
61    name: "compliance_dumpgraph",
62    srcs: ["cmd/dumpgraph/dumpgraph.go"],
63    deps: [
64        "compliance-module",
65        "soong-response",
66    ],
67    testSrcs: ["cmd/dumpgraph/dumpgraph_test.go"],
68}
69
70blueprint_go_binary {
71    name: "compliance_dumpresolutions",
72    srcs: ["cmd/dumpresolutions/dumpresolutions.go"],
73    deps: [
74        "compliance-module",
75        "soong-response",
76    ],
77    testSrcs: ["cmd/dumpresolutions/dumpresolutions_test.go"],
78}
79
80blueprint_go_binary {
81    name: "htmlnotice",
82    srcs: ["cmd/htmlnotice/htmlnotice.go"],
83    deps: [
84        "compliance-module",
85        "blueprint-deptools",
86        "soong-response",
87    ],
88    testSrcs: ["cmd/htmlnotice/htmlnotice_test.go"],
89}
90
91blueprint_go_binary {
92    name: "compliance_rtrace",
93    srcs: ["cmd/rtrace/rtrace.go"],
94    deps: [
95        "compliance-module",
96        "soong-response",
97    ],
98    testSrcs: ["cmd/rtrace/rtrace_test.go"],
99}
100
101blueprint_go_binary {
102    name: "textnotice",
103    srcs: ["cmd/textnotice/textnotice.go"],
104    deps: [
105        "compliance-module",
106        "blueprint-deptools",
107        "soong-response",
108    ],
109    testSrcs: ["cmd/textnotice/textnotice_test.go"],
110}
111
112blueprint_go_binary {
113    name: "xmlnotice",
114    srcs: ["cmd/xmlnotice/xmlnotice.go"],
115    deps: [
116        "compliance-module",
117        "blueprint-deptools",
118        "soong-response",
119    ],
120    testSrcs: ["cmd/xmlnotice/xmlnotice_test.go"],
121}
122
123bootstrap_go_package {
124    name: "compliance-module",
125    srcs: [
126        "condition.go",
127        "conditionset.go",
128        "doc.go",
129        "graph.go",
130        "noticeindex.go",
131        "policy_policy.go",
132        "policy_resolve.go",
133        "policy_resolvenotices.go",
134        "policy_resolveshare.go",
135        "policy_resolveprivacy.go",
136        "policy_shareprivacyconflicts.go",
137        "policy_shipped.go",
138        "policy_walk.go",
139        "readgraph.go",
140        "resolution.go",
141        "resolutionset.go",
142    ],
143    testSrcs: [
144        "condition_test.go",
145        "conditionset_test.go",
146        "readgraph_test.go",
147        "policy_policy_test.go",
148        "policy_resolve_test.go",
149        "policy_resolvenotices_test.go",
150        "policy_resolveshare_test.go",
151        "policy_resolveprivacy_test.go",
152        "policy_shareprivacyconflicts_test.go",
153        "policy_shipped_test.go",
154        "policy_walk_test.go",
155        "resolutionset_test.go",
156        "test_util.go",
157    ],
158    deps: [
159        "golang-protobuf-proto",
160        "golang-protobuf-encoding-prototext",
161        "license_metadata_proto",
162    ],
163    pkgPath: "android/soong/tools/compliance",
164}
165