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 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20blueprint_go_binary { 21 name: "compliance_checkmetadata", 22 srcs: ["cmd/checkmetadata/checkmetadata.go"], 23 deps: [ 24 "compliance-module", 25 "projectmetadata-module", 26 "soong-response", 27 ], 28 testSrcs: ["cmd/checkmetadata/checkmetadata_test.go"], 29} 30 31blueprint_go_binary { 32 name: "compliance_checkshare", 33 srcs: ["cmd/checkshare/checkshare.go"], 34 deps: [ 35 "compliance-module", 36 "soong-response", 37 ], 38 testSrcs: ["cmd/checkshare/checkshare_test.go"], 39} 40 41blueprint_go_binary { 42 name: "compliancenotice_shippedlibs", 43 srcs: ["cmd/shippedlibs/shippedlibs.go"], 44 deps: [ 45 "compliance-module", 46 "soong-response", 47 ], 48 testSrcs: ["cmd/shippedlibs/shippedlibs_test.go"], 49} 50 51blueprint_go_binary { 52 name: "compliance_listshare", 53 srcs: ["cmd/listshare/listshare.go"], 54 deps: [ 55 "compliance-module", 56 "soong-response", 57 ], 58 testSrcs: ["cmd/listshare/listshare_test.go"], 59} 60 61blueprint_go_binary { 62 name: "compliance_dumpgraph", 63 srcs: ["cmd/dumpgraph/dumpgraph.go"], 64 deps: [ 65 "compliance-module", 66 "soong-response", 67 ], 68 testSrcs: ["cmd/dumpgraph/dumpgraph_test.go"], 69} 70 71blueprint_go_binary { 72 name: "compliance_dumpresolutions", 73 srcs: ["cmd/dumpresolutions/dumpresolutions.go"], 74 deps: [ 75 "compliance-module", 76 "soong-response", 77 ], 78 testSrcs: ["cmd/dumpresolutions/dumpresolutions_test.go"], 79} 80 81blueprint_go_binary { 82 name: "htmlnotice", 83 srcs: ["cmd/htmlnotice/htmlnotice.go"], 84 deps: [ 85 "compliance-module", 86 "blueprint-deptools", 87 "soong-response", 88 ], 89 testSrcs: ["cmd/htmlnotice/htmlnotice_test.go"], 90} 91 92blueprint_go_binary { 93 name: "compliance_rtrace", 94 srcs: ["cmd/rtrace/rtrace.go"], 95 deps: [ 96 "compliance-module", 97 "soong-response", 98 ], 99 testSrcs: ["cmd/rtrace/rtrace_test.go"], 100} 101 102blueprint_go_binary { 103 name: "textnotice", 104 srcs: ["cmd/textnotice/textnotice.go"], 105 deps: [ 106 "compliance-module", 107 "blueprint-deptools", 108 "soong-response", 109 ], 110 testSrcs: ["cmd/textnotice/textnotice_test.go"], 111} 112 113blueprint_go_binary { 114 name: "xmlnotice", 115 srcs: ["cmd/xmlnotice/xmlnotice.go"], 116 deps: [ 117 "compliance-module", 118 "blueprint-deptools", 119 "soong-response", 120 ], 121 testSrcs: ["cmd/xmlnotice/xmlnotice_test.go"], 122} 123 124bootstrap_go_package { 125 name: "compliance-module", 126 srcs: [ 127 "condition.go", 128 "conditionset.go", 129 "doc.go", 130 "graph.go", 131 "noticeindex.go", 132 "policy_policy.go", 133 "policy_resolve.go", 134 "policy_resolvenotices.go", 135 "policy_resolveshare.go", 136 "policy_resolveprivacy.go", 137 "policy_shareprivacyconflicts.go", 138 "policy_shipped.go", 139 "policy_walk.go", 140 "readgraph.go", 141 "resolution.go", 142 "resolutionset.go", 143 ], 144 testSrcs: [ 145 "condition_test.go", 146 "conditionset_test.go", 147 "readgraph_test.go", 148 "policy_policy_test.go", 149 "policy_resolve_test.go", 150 "policy_resolvenotices_test.go", 151 "policy_resolveshare_test.go", 152 "policy_resolveprivacy_test.go", 153 "policy_shareprivacyconflicts_test.go", 154 "policy_shipped_test.go", 155 "policy_walk_test.go", 156 "resolutionset_test.go", 157 "test_util.go", 158 ], 159 deps: [ 160 "compliance-test-fs-module", 161 "projectmetadata-module", 162 "golang-protobuf-proto", 163 "golang-protobuf-encoding-prototext", 164 "license_metadata_proto", 165 ], 166 pkgPath: "android/soong/tools/compliance", 167} 168