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 | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 48 | bootstrap_go_package { |
| 49 | name: "compliance-module", |
| 50 | srcs: [ |
| 51 | "actionset.go", |
| 52 | "condition.go", |
| 53 | "conditionset.go", |
Bob Badour | afaeb6a | 2021-10-25 16:59:56 -0700 | [diff] [blame^] | 54 | "doc.go", |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 55 | "graph.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 56 | "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 Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 64 | "readgraph.go", |
| 65 | "resolution.go", |
| 66 | "resolutionset.go", |
| 67 | ], |
| 68 | testSrcs: [ |
| 69 | "condition_test.go", |
| 70 | "conditionset_test.go", |
| 71 | "readgraph_test.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 72 | "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 Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 80 | "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 | } |