blob: 0d7cf10472ade3e47bb244bfb984bdd7f03eaa7f [file] [log] [blame]
Bob Badoura99ac622021-10-25 16:21:00 -07001//
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
Bob Badourfa739da2021-10-25 16:21:00 -070020blueprint_go_binary {
Bob Badour6dd00352021-10-01 15:21:58 -070021 name: "checkshare",
22 srcs: ["cmd/checkshare.go"],
23 deps: ["compliance-module"],
24 testSrcs: ["cmd/checkshare_test.go"],
25}
26
27blueprint_go_binary {
28 name: "listshare",
29 srcs: ["cmd/listshare.go"],
30 deps: ["compliance-module"],
31 testSrcs: ["cmd/listshare_test.go"],
32}
33
34blueprint_go_binary {
Bob Badourfa739da2021-10-25 16:21:00 -070035 name: "dumpgraph",
36 srcs: ["cmd/dumpgraph.go"],
37 deps: ["compliance-module"],
38 testSrcs: ["cmd/dumpgraph_test.go"],
39}
40
Bob Badour1ded0a12021-12-03 17:16:14 -080041blueprint_go_binary {
42 name: "dumpresolutions",
43 srcs: ["cmd/dumpresolutions.go"],
44 deps: ["compliance-module"],
45 testSrcs: ["cmd/dumpresolutions_test.go"],
46}
47
Bob Badoure6fdd142021-12-09 22:10:43 -080048blueprint_go_binary {
Bob Badour6ea14572022-01-23 17:15:46 -080049 name: "htmlnotice",
50 srcs: ["cmd/htmlnotice.go"],
51 deps: ["compliance-module"],
52 testSrcs: ["cmd/htmlnotice_test.go"],
53}
54
55blueprint_go_binary {
Bob Badoure6fdd142021-12-09 22:10:43 -080056 name: "textnotice",
57 srcs: ["cmd/textnotice.go"],
58 deps: ["compliance-module"],
59 testSrcs: ["cmd/textnotice_test.go"],
60}
61
Bob Badoura99ac622021-10-25 16:21:00 -070062bootstrap_go_package {
63 name: "compliance-module",
64 srcs: [
Bob Badoura99ac622021-10-25 16:21:00 -070065 "condition.go",
66 "conditionset.go",
Bob Badourafaeb6a2021-10-25 16:59:56 -070067 "doc.go",
Bob Badoura99ac622021-10-25 16:21:00 -070068 "graph.go",
Bob Badoure6fdd142021-12-09 22:10:43 -080069 "noticeindex.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070070 "policy/policy.go",
71 "policy/resolve.go",
72 "policy/resolvenotices.go",
73 "policy/resolveshare.go",
74 "policy/resolveprivacy.go",
75 "policy/shareprivacyconflicts.go",
76 "policy/shipped.go",
77 "policy/walk.go",
Bob Badoura99ac622021-10-25 16:21:00 -070078 "readgraph.go",
79 "resolution.go",
80 "resolutionset.go",
81 ],
82 testSrcs: [
83 "condition_test.go",
84 "conditionset_test.go",
85 "readgraph_test.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070086 "policy/policy_test.go",
87 "policy/resolve_test.go",
88 "policy/resolvenotices_test.go",
89 "policy/resolveshare_test.go",
90 "policy/resolveprivacy_test.go",
91 "policy/shareprivacyconflicts_test.go",
92 "policy/shipped_test.go",
93 "policy/walk_test.go",
Bob Badoura99ac622021-10-25 16:21:00 -070094 "resolutionset_test.go",
95 "test_util.go",
96 ],
97 deps: [
98 "golang-protobuf-proto",
99 "golang-protobuf-encoding-prototext",
100 "license_metadata_proto",
101 ],
102 pkgPath: "compliance",
103}