1// Copyright 2017 Google Inc. All rights reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["external_golang-protobuf_license"], 17} 18 19// Added automatically by a large-scale-change 20// See: http://go/android-license-faq 21license { 22 name: "external_golang-protobuf_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-BSD", 26 ], 27 license_text: [ 28 "LICENSE", 29 ], 30} 31 32bootstrap_go_package { 33 name: "protoc-gen-go_descriptor", 34 pkgPath: "github.com/golang/protobuf/protoc-gen-go/descriptor", 35 deps: ["golang-protobuf-proto"], 36 srcs: ["protoc-gen-go/descriptor/descriptor.pb.go"], 37} 38 39bootstrap_go_package { 40 name: "protoc-gen-go_plugin", 41 pkgPath: "github.com/golang/protobuf/protoc-gen-go/plugin", 42 deps: [ 43 "golang-protobuf-proto", 44 "protoc-gen-go_descriptor", 45 ], 46 srcs: ["protoc-gen-go/plugin/plugin.pb.go"], 47} 48 49bootstrap_go_package { 50 name: "protoc-gen-go_generator_internal_remap", 51 pkgPath: "github.com/golang/protobuf/protoc-gen-go/generator/internal/remap", 52 srcs: ["protoc-gen-go/generator/internal/remap/remap.go"], 53 testSrcs: ["protoc-gen-go/generator/internal/remap/remap_test.go"], 54} 55 56bootstrap_go_package { 57 name: "protoc-gen-go_generator", 58 pkgPath: "github.com/golang/protobuf/protoc-gen-go/generator", 59 deps: [ 60 "golang-protobuf-proto", 61 "protoc-gen-go_descriptor", 62 "protoc-gen-go_plugin", 63 "protoc-gen-go_generator_internal_remap", 64 ], 65 srcs: ["protoc-gen-go/generator/generator.go"], 66 testSrcs: ["protoc-gen-go/generator/name_test.go"], 67} 68 69bootstrap_go_package { 70 name: "protoc-gen-go_grpc", 71 pkgPath: "github.com/golang/protobuf/protoc-gen-go/grpc", 72 deps: [ 73 "protoc-gen-go_descriptor", 74 "protoc-gen-go_generator", 75 ], 76 srcs: ["protoc-gen-go/grpc/grpc.go"], 77} 78 79blueprint_go_binary { 80 name: "protoc-gen-go", 81 deps: [ 82 "golang-protobuf-proto", 83 "protoc-gen-go_generator", 84 "protoc-gen-go_grpc", 85 ], 86 srcs: [ 87 "protoc-gen-go/main.go", 88 "protoc-gen-go/link_grpc.go", 89 ], 90 testSrcs: [ 91 // execs protoc from the PATH 92 //"protoc-gen-go/golden_test.go", 93 ], 94} 95 96bootstrap_go_package { 97 name: "golang-protobuf-proto", 98 pkgPath: "github.com/golang/protobuf/proto", 99 srcs: [ 100 "proto/clone.go", 101 "proto/decode.go", 102 "proto/discard.go", 103 "proto/encode.go", 104 "proto/equal.go", 105 "proto/extensions.go", 106 "proto/lib.go", 107 "proto/message_set.go", 108 "proto/table_marshal.go", 109 "proto/table_merge.go", 110 "proto/table_unmarshal.go", 111 "proto/pointer_unsafe.go", 112 "proto/properties.go", 113 "proto/text.go", 114 "proto/text_parser.go", 115 ], 116 testSrcs: [ 117 "proto/size2_test.go", 118 ], 119} 120 121bootstrap_go_package { 122 name: "golang-protobuf-proto-proto3_proto", 123 pkgPath: "github.com/golang/protobuf/proto/proto3_proto", 124 deps: [ 125 "golang-protobuf-proto", 126 "golang-protobuf-proto-test-proto", 127 "golang-protobuf-ptypes-any", 128 ], 129 srcs: ["proto/proto3_proto/proto3.pb.go"], 130} 131 132// These won't run by default (they also print output, which we don't want), but 133// can be run with: 134// m out/soong/.bootstrap/golang-protobuf-proto_test/test/test.passed 135bootstrap_go_package { 136 name: "golang-protobuf-proto_test", 137 pkgPath: "github.com/golang/protobuf/proto_test", 138 deps: [ 139 "golang-protobuf-jsonpb", 140 "golang-protobuf-proto", 141 "golang-protobuf-proto-proto3_proto", 142 "golang-protobuf-proto-test-proto", 143 "golang-protobuf-ptypes", 144 ], 145 testSrcs: [ 146 "proto/all_test.go", 147 "proto/any_test.go", 148 "proto/clone_test.go", 149 "proto/decode_test.go", 150 "proto/discard_test.go", 151 "proto/encode_test.go", 152 "proto/equal_test.go", 153 // Requires golang.org/x/sync/errgroup 154 //"proto/extensions_test.go", 155 "proto/map_test.go", 156 "proto/message_set_test.go", 157 "proto/proto3_test.go", 158 "proto/size_test.go", 159 "proto/text_parser_test.go", 160 "proto/text_test.go", 161 ], 162} 163 164bootstrap_go_package { 165 name: "golang-protobuf-proto-test-proto", 166 pkgPath: "github.com/golang/protobuf/proto/test_proto", 167 deps: ["golang-protobuf-proto"], 168 srcs: ["proto/test_proto/test.pb.go"], 169} 170 171bootstrap_go_package { 172 name: "golang-protobuf-ptypes", 173 pkgPath: "github.com/golang/protobuf/ptypes", 174 deps: [ 175 "golang-protobuf-proto", 176 "golang-protobuf-ptypes-any", 177 "golang-protobuf-ptypes-duration", 178 "golang-protobuf-ptypes-timestamp", 179 "protoc-gen-go_descriptor", 180 ], 181 srcs: [ 182 "ptypes/any.go", 183 "ptypes/doc.go", 184 "ptypes/duration.go", 185 "ptypes/timestamp.go", 186 ], 187 testSrcs: [ 188 "ptypes/any_test.go", 189 "ptypes/duration_test.go", 190 "ptypes/timestamp_test.go", 191 ], 192} 193 194bootstrap_go_package { 195 name: "golang-protobuf-ptypes-any", 196 pkgPath: "github.com/golang/protobuf/ptypes/any", 197 deps: ["golang-protobuf-proto"], 198 srcs: ["ptypes/any/any.pb.go"], 199} 200 201bootstrap_go_package { 202 name: "golang-protobuf-ptypes-duration", 203 pkgPath: "github.com/golang/protobuf/ptypes/duration", 204 deps: ["golang-protobuf-proto"], 205 srcs: ["ptypes/duration/duration.pb.go"], 206} 207 208bootstrap_go_package { 209 name: "golang-protobuf-ptypes-empty", 210 pkgPath: "github.com/golang/protobuf/ptypes/empty", 211 deps: ["golang-protobuf-proto"], 212 srcs: ["ptypes/empty/empty.pb.go"], 213} 214 215bootstrap_go_package { 216 name: "golang-protobuf-ptypes-struct", 217 pkgPath: "github.com/golang/protobuf/ptypes/struct", 218 deps: ["golang-protobuf-proto"], 219 srcs: ["ptypes/struct/struct.pb.go"], 220} 221 222bootstrap_go_package { 223 name: "golang-protobuf-ptypes-timestamp", 224 pkgPath: "github.com/golang/protobuf/ptypes/timestamp", 225 deps: ["golang-protobuf-proto"], 226 srcs: ["ptypes/timestamp/timestamp.pb.go"], 227} 228 229bootstrap_go_package { 230 name: "golang-protobuf-ptypes-wrappers", 231 pkgPath: "github.com/golang/protobuf/ptypes/wrappers", 232 deps: ["golang-protobuf-proto"], 233 srcs: ["ptypes/wrappers/wrappers.pb.go"], 234} 235 236bootstrap_go_package { 237 name: "golang-protobuf-jsonpb", 238 pkgPath: "github.com/golang/protobuf/jsonpb", 239 srcs: ["jsonpb/jsonpb.go"], 240 deps: [ 241 "golang-protobuf-proto", 242 "golang-protobuf-ptypes-struct", 243 ], 244} 245