blob: d671f45f97a9451230411bd199bdc1bbe715e91f [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 {
21 name: "dumpgraph",
22 srcs: ["cmd/dumpgraph.go"],
23 deps: ["compliance-module"],
24 testSrcs: ["cmd/dumpgraph_test.go"],
25}
26
Bob Badour1ded0a12021-12-03 17:16:14 -080027blueprint_go_binary {
28 name: "dumpresolutions",
29 srcs: ["cmd/dumpresolutions.go"],
30 deps: ["compliance-module"],
31 testSrcs: ["cmd/dumpresolutions_test.go"],
32}
33
Bob Badoura99ac622021-10-25 16:21:00 -070034bootstrap_go_package {
35 name: "compliance-module",
36 srcs: [
37 "actionset.go",
38 "condition.go",
39 "conditionset.go",
40 "graph.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070041 "policy/policy.go",
42 "policy/resolve.go",
43 "policy/resolvenotices.go",
44 "policy/resolveshare.go",
45 "policy/resolveprivacy.go",
46 "policy/shareprivacyconflicts.go",
47 "policy/shipped.go",
48 "policy/walk.go",
Bob Badoura99ac622021-10-25 16:21:00 -070049 "readgraph.go",
50 "resolution.go",
51 "resolutionset.go",
52 ],
53 testSrcs: [
54 "condition_test.go",
55 "conditionset_test.go",
56 "readgraph_test.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070057 "policy/policy_test.go",
58 "policy/resolve_test.go",
59 "policy/resolvenotices_test.go",
60 "policy/resolveshare_test.go",
61 "policy/resolveprivacy_test.go",
62 "policy/shareprivacyconflicts_test.go",
63 "policy/shipped_test.go",
64 "policy/walk_test.go",
Bob Badoura99ac622021-10-25 16:21:00 -070065 "resolutionset_test.go",
66 "test_util.go",
67 ],
68 deps: [
69 "golang-protobuf-proto",
70 "golang-protobuf-encoding-prototext",
71 "license_metadata_proto",
72 ],
73 pkgPath: "compliance",
74}