Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 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 | |
| 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Bob Badour | fa739da | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 20 | blueprint_go_binary { |
Bob Badour | 6dd0035 | 2021-10-01 15:21:58 -0700 | [diff] [blame] | 21 | name: "checkshare", |
| 22 | srcs: ["cmd/checkshare.go"], |
| 23 | deps: ["compliance-module"], |
| 24 | testSrcs: ["cmd/checkshare_test.go"], |
| 25 | } |
| 26 | |
| 27 | blueprint_go_binary { |
| 28 | name: "listshare", |
| 29 | srcs: ["cmd/listshare.go"], |
| 30 | deps: ["compliance-module"], |
| 31 | testSrcs: ["cmd/listshare_test.go"], |
| 32 | } |
| 33 | |
| 34 | blueprint_go_binary { |
Bob Badour | fa739da | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 35 | name: "dumpgraph", |
| 36 | srcs: ["cmd/dumpgraph.go"], |
| 37 | deps: ["compliance-module"], |
| 38 | testSrcs: ["cmd/dumpgraph_test.go"], |
| 39 | } |
| 40 | |
Bob Badour | 1ded0a1 | 2021-12-03 17:16:14 -0800 | [diff] [blame] | 41 | blueprint_go_binary { |
| 42 | name: "dumpresolutions", |
| 43 | srcs: ["cmd/dumpresolutions.go"], |
| 44 | deps: ["compliance-module"], |
| 45 | testSrcs: ["cmd/dumpresolutions_test.go"], |
| 46 | } |
| 47 | |
Bob Badour | e6fdd14 | 2021-12-09 22:10:43 -0800 | [diff] [blame] | 48 | blueprint_go_binary { |
Bob Badour | 6ea1457 | 2022-01-23 17:15:46 -0800 | [diff] [blame^] | 49 | name: "htmlnotice", |
| 50 | srcs: ["cmd/htmlnotice.go"], |
| 51 | deps: ["compliance-module"], |
| 52 | testSrcs: ["cmd/htmlnotice_test.go"], |
| 53 | } |
| 54 | |
| 55 | blueprint_go_binary { |
Bob Badour | e6fdd14 | 2021-12-09 22:10:43 -0800 | [diff] [blame] | 56 | name: "textnotice", |
| 57 | srcs: ["cmd/textnotice.go"], |
| 58 | deps: ["compliance-module"], |
| 59 | testSrcs: ["cmd/textnotice_test.go"], |
| 60 | } |
| 61 | |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 62 | bootstrap_go_package { |
| 63 | name: "compliance-module", |
| 64 | srcs: [ |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 65 | "condition.go", |
| 66 | "conditionset.go", |
Bob Badour | afaeb6a | 2021-10-25 16:59:56 -0700 | [diff] [blame] | 67 | "doc.go", |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 68 | "graph.go", |
Bob Badour | e6fdd14 | 2021-12-09 22:10:43 -0800 | [diff] [blame] | 69 | "noticeindex.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 70 | "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 Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 78 | "readgraph.go", |
| 79 | "resolution.go", |
| 80 | "resolutionset.go", |
| 81 | ], |
| 82 | testSrcs: [ |
| 83 | "condition_test.go", |
| 84 | "conditionset_test.go", |
| 85 | "readgraph_test.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 86 | "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 Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 94 | "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 | } |