blob: afb3080d3de502ce6077f733dc516ef57dcc0224 [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 Badoura99ac622021-10-25 16:21:00 -070048bootstrap_go_package {
49 name: "compliance-module",
50 srcs: [
51 "actionset.go",
52 "condition.go",
53 "conditionset.go",
Bob Badourafaeb6a2021-10-25 16:59:56 -070054 "doc.go",
Bob Badoura99ac622021-10-25 16:21:00 -070055 "graph.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070056 "policy/policy.go",
57 "policy/resolve.go",
58 "policy/resolvenotices.go",
59 "policy/resolveshare.go",
60 "policy/resolveprivacy.go",
61 "policy/shareprivacyconflicts.go",
62 "policy/shipped.go",
63 "policy/walk.go",
Bob Badoura99ac622021-10-25 16:21:00 -070064 "readgraph.go",
65 "resolution.go",
66 "resolutionset.go",
67 ],
68 testSrcs: [
69 "condition_test.go",
70 "conditionset_test.go",
71 "readgraph_test.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070072 "policy/policy_test.go",
73 "policy/resolve_test.go",
74 "policy/resolvenotices_test.go",
75 "policy/resolveshare_test.go",
76 "policy/resolveprivacy_test.go",
77 "policy/shareprivacyconflicts_test.go",
78 "policy/shipped_test.go",
79 "policy/walk_test.go",
Bob Badoura99ac622021-10-25 16:21:00 -070080 "resolutionset_test.go",
81 "test_util.go",
82 ],
83 deps: [
84 "golang-protobuf-proto",
85 "golang-protobuf-encoding-prototext",
86 "license_metadata_proto",
87 ],
88 pkgPath: "compliance",
89}