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 { |
| 21 | name: "dumpgraph", |
| 22 | srcs: ["cmd/dumpgraph.go"], |
| 23 | deps: ["compliance-module"], |
| 24 | testSrcs: ["cmd/dumpgraph_test.go"], |
| 25 | } |
| 26 | |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 27 | bootstrap_go_package { |
| 28 | name: "compliance-module", |
| 29 | srcs: [ |
| 30 | "actionset.go", |
| 31 | "condition.go", |
| 32 | "conditionset.go", |
| 33 | "graph.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 34 | "policy/policy.go", |
| 35 | "policy/resolve.go", |
| 36 | "policy/resolvenotices.go", |
| 37 | "policy/resolveshare.go", |
| 38 | "policy/resolveprivacy.go", |
| 39 | "policy/shareprivacyconflicts.go", |
| 40 | "policy/shipped.go", |
| 41 | "policy/walk.go", |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 42 | "readgraph.go", |
| 43 | "resolution.go", |
| 44 | "resolutionset.go", |
| 45 | ], |
| 46 | testSrcs: [ |
| 47 | "condition_test.go", |
| 48 | "conditionset_test.go", |
| 49 | "readgraph_test.go", |
Bob Badour | 9ee7d03 | 2021-10-25 16:51:48 -0700 | [diff] [blame] | 50 | "policy/policy_test.go", |
| 51 | "policy/resolve_test.go", |
| 52 | "policy/resolvenotices_test.go", |
| 53 | "policy/resolveshare_test.go", |
| 54 | "policy/resolveprivacy_test.go", |
| 55 | "policy/shareprivacyconflicts_test.go", |
| 56 | "policy/shipped_test.go", |
| 57 | "policy/walk_test.go", |
Bob Badour | a99ac62 | 2021-10-25 16:21:00 -0700 | [diff] [blame] | 58 | "resolutionset_test.go", |
| 59 | "test_util.go", |
| 60 | ], |
| 61 | deps: [ |
| 62 | "golang-protobuf-proto", |
| 63 | "golang-protobuf-encoding-prototext", |
| 64 | "license_metadata_proto", |
| 65 | ], |
| 66 | pkgPath: "compliance", |
| 67 | } |