blob: 4f412ae82c709b9d5c87a7d8f39b114b3054747b [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 Badour00c8a382022-01-26 17:21:39 -080056 name: "shippedlibs",
57 srcs: ["cmd/shippedlibs.go"],
58 deps: ["compliance-module"],
59 testSrcs: ["cmd/shippedlibs_test.go"],
60}
61
62blueprint_go_binary {
Bob Badoure6fdd142021-12-09 22:10:43 -080063 name: "textnotice",
64 srcs: ["cmd/textnotice.go"],
65 deps: ["compliance-module"],
66 testSrcs: ["cmd/textnotice_test.go"],
67}
68
Bob Badoura99ac622021-10-25 16:21:00 -070069bootstrap_go_package {
70 name: "compliance-module",
71 srcs: [
Bob Badoura99ac622021-10-25 16:21:00 -070072 "condition.go",
73 "conditionset.go",
Bob Badourafaeb6a2021-10-25 16:59:56 -070074 "doc.go",
Bob Badoura99ac622021-10-25 16:21:00 -070075 "graph.go",
Bob Badoure6fdd142021-12-09 22:10:43 -080076 "noticeindex.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070077 "policy/policy.go",
78 "policy/resolve.go",
79 "policy/resolvenotices.go",
80 "policy/resolveshare.go",
81 "policy/resolveprivacy.go",
82 "policy/shareprivacyconflicts.go",
83 "policy/shipped.go",
84 "policy/walk.go",
Bob Badoura99ac622021-10-25 16:21:00 -070085 "readgraph.go",
86 "resolution.go",
87 "resolutionset.go",
88 ],
89 testSrcs: [
90 "condition_test.go",
91 "conditionset_test.go",
92 "readgraph_test.go",
Bob Badour9ee7d032021-10-25 16:51:48 -070093 "policy/policy_test.go",
94 "policy/resolve_test.go",
95 "policy/resolvenotices_test.go",
96 "policy/resolveshare_test.go",
97 "policy/resolveprivacy_test.go",
98 "policy/shareprivacyconflicts_test.go",
99 "policy/shipped_test.go",
100 "policy/walk_test.go",
Bob Badoura99ac622021-10-25 16:21:00 -0700101 "resolutionset_test.go",
102 "test_util.go",
103 ],
104 deps: [
105 "golang-protobuf-proto",
106 "golang-protobuf-encoding-prototext",
107 "license_metadata_proto",
108 ],
109 pkgPath: "compliance",
110}