Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 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 | |
| 15 | bootstrap_go_package { |
| 16 | name: "protoc-gen-go_descriptor", |
| 17 | pkgPath: "github.com/golang/protobuf/protoc-gen-go/descriptor", |
| 18 | deps: ["golang-protobuf-proto"], |
| 19 | srcs: ["protoc-gen-go/descriptor/descriptor.pb.go"], |
| 20 | } |
| 21 | |
| 22 | bootstrap_go_package { |
| 23 | name: "protoc-gen-go_plugin", |
| 24 | pkgPath: "github.com/golang/protobuf/protoc-gen-go/plugin", |
| 25 | deps: [ |
| 26 | "golang-protobuf-proto", |
| 27 | "protoc-gen-go_descriptor", |
| 28 | ], |
| 29 | srcs: ["protoc-gen-go/plugin/plugin.pb.go"], |
| 30 | } |
| 31 | |
| 32 | bootstrap_go_package { |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 33 | name: "protoc-gen-go_generator_internal_remap", |
| 34 | pkgPath: "github.com/golang/protobuf/protoc-gen-go/generator/internal/remap", |
| 35 | srcs: ["protoc-gen-go/generator/internal/remap/remap.go"], |
| 36 | testSrcs: ["protoc-gen-go/generator/internal/remap/remap_test.go"], |
| 37 | } |
| 38 | |
| 39 | bootstrap_go_package { |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 40 | name: "protoc-gen-go_generator", |
| 41 | pkgPath: "github.com/golang/protobuf/protoc-gen-go/generator", |
| 42 | deps: [ |
| 43 | "golang-protobuf-proto", |
| 44 | "protoc-gen-go_descriptor", |
| 45 | "protoc-gen-go_plugin", |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 46 | "protoc-gen-go_generator_internal_remap", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 47 | ], |
| 48 | srcs: ["protoc-gen-go/generator/generator.go"], |
| 49 | testSrcs: ["protoc-gen-go/generator/name_test.go"], |
| 50 | } |
| 51 | |
| 52 | bootstrap_go_package { |
| 53 | name: "protoc-gen-go_grpc", |
| 54 | pkgPath: "github.com/golang/protobuf/protoc-gen-go/grpc", |
| 55 | deps: [ |
| 56 | "protoc-gen-go_descriptor", |
| 57 | "protoc-gen-go_generator", |
| 58 | ], |
| 59 | srcs: ["protoc-gen-go/grpc/grpc.go"], |
| 60 | } |
| 61 | |
| 62 | blueprint_go_binary { |
| 63 | name: "protoc-gen-go", |
| 64 | deps: [ |
| 65 | "golang-protobuf-proto", |
| 66 | "protoc-gen-go_generator", |
| 67 | "protoc-gen-go_grpc", |
| 68 | ], |
| 69 | srcs: [ |
| 70 | "protoc-gen-go/main.go", |
| 71 | "protoc-gen-go/link_grpc.go", |
| 72 | ], |
| 73 | } |
| 74 | |
| 75 | bootstrap_go_package { |
| 76 | name: "golang-protobuf-proto", |
| 77 | pkgPath: "github.com/golang/protobuf/proto", |
| 78 | srcs: [ |
| 79 | "proto/clone.go", |
| 80 | "proto/decode.go", |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 81 | "proto/discard.go", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 82 | "proto/encode.go", |
| 83 | "proto/equal.go", |
| 84 | "proto/extensions.go", |
| 85 | "proto/lib.go", |
| 86 | "proto/message_set.go", |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 87 | "proto/table_marshal.go", |
| 88 | "proto/table_merge.go", |
| 89 | "proto/table_unmarshal.go", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 90 | "proto/pointer_unsafe.go", |
| 91 | "proto/properties.go", |
| 92 | "proto/text.go", |
| 93 | "proto/text_parser.go", |
| 94 | ], |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | bootstrap_go_package { |
| 98 | name: "golang-protobuf-proto-proto3_proto", |
| 99 | pkgPath: "github.com/golang/protobuf/proto/proto3_proto", |
| 100 | deps: [ |
| 101 | "golang-protobuf-proto", |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 102 | "golang-protobuf-proto-test-proto", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 103 | "golang-protobuf-ptypes-any", |
| 104 | ], |
| 105 | srcs: ["proto/proto3_proto/proto3.pb.go"], |
| 106 | } |
| 107 | |
| 108 | // These won't run by default (they also print output, which we don't want), but |
| 109 | // can be run with: |
| 110 | // m out/soong/.bootstrap/golang-protobuf-proto_test/test/test.passed |
| 111 | bootstrap_go_package { |
| 112 | name: "golang-protobuf-proto_test", |
| 113 | pkgPath: "github.com/golang/protobuf/proto_test", |
| 114 | deps: [ |
| 115 | "golang-protobuf-proto", |
| 116 | "golang-protobuf-proto-proto3_proto", |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 117 | "golang-protobuf-proto-test-proto", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 118 | "golang-protobuf-ptypes", |
| 119 | ], |
| 120 | testSrcs: [ |
| 121 | "proto/all_test.go", |
| 122 | "proto/any_test.go", |
| 123 | "proto/clone_test.go", |
| 124 | "proto/decode_test.go", |
| 125 | "proto/encode_test.go", |
| 126 | "proto/equal_test.go", |
| 127 | // Requires golang.org/x/sync/errgroup |
| 128 | //"proto/extensions_test.go", |
| 129 | "proto/map_test.go", |
Haibo Huang | a647664 | 2019-03-13 12:25:35 -0700 | [diff] [blame] | 130 | "proto/message_set_test.go", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 131 | "proto/proto3_test.go", |
| 132 | "proto/size_test.go", |
Haibo Huang | a647664 | 2019-03-13 12:25:35 -0700 | [diff] [blame] | 133 | "proto/size2_test.go", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 134 | "proto/text_parser_test.go", |
| 135 | "proto/text_test.go", |
| 136 | ], |
| 137 | } |
| 138 | |
| 139 | bootstrap_go_package { |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 140 | name: "golang-protobuf-proto-test-proto", |
| 141 | pkgPath: "github.com/golang/protobuf/proto/test_proto", |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 142 | deps: ["golang-protobuf-proto"], |
Haibo Huang | 28dcc33 | 2018-07-06 15:01:38 -0700 | [diff] [blame] | 143 | srcs: ["proto/test_proto/test.pb.go"], |
Dan Willemsen | 024f007 | 2017-09-26 23:29:07 -0700 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | bootstrap_go_package { |
| 147 | name: "golang-protobuf-ptypes", |
| 148 | pkgPath: "github.com/golang/protobuf/ptypes", |
| 149 | deps: [ |
| 150 | "golang-protobuf-proto", |
| 151 | "golang-protobuf-ptypes-any", |
| 152 | "golang-protobuf-ptypes-duration", |
| 153 | "golang-protobuf-ptypes-timestamp", |
| 154 | "protoc-gen-go_descriptor", |
| 155 | ], |
| 156 | srcs: [ |
| 157 | "ptypes/any.go", |
| 158 | "ptypes/doc.go", |
| 159 | "ptypes/duration.go", |
| 160 | "ptypes/timestamp.go", |
| 161 | ], |
| 162 | testSrcs: [ |
| 163 | "ptypes/any_test.go", |
| 164 | "ptypes/duration_test.go", |
| 165 | "ptypes/timestamp_test.go", |
| 166 | ], |
| 167 | } |
| 168 | |
| 169 | bootstrap_go_package { |
| 170 | name: "golang-protobuf-ptypes-any", |
| 171 | pkgPath: "github.com/golang/protobuf/ptypes/any", |
| 172 | deps: ["golang-protobuf-proto"], |
| 173 | srcs: ["ptypes/any/any.pb.go"], |
| 174 | } |
| 175 | |
| 176 | bootstrap_go_package { |
| 177 | name: "golang-protobuf-ptypes-duration", |
| 178 | pkgPath: "github.com/golang/protobuf/ptypes/duration", |
| 179 | deps: ["golang-protobuf-proto"], |
| 180 | srcs: ["ptypes/duration/duration.pb.go"], |
| 181 | } |
| 182 | |
| 183 | bootstrap_go_package { |
| 184 | name: "golang-protobuf-ptypes-empty", |
| 185 | pkgPath: "github.com/golang/protobuf/ptypes/empty", |
| 186 | deps: ["golang-protobuf-proto"], |
| 187 | srcs: ["ptypes/empty/empty.pb.go"], |
| 188 | } |
| 189 | |
| 190 | bootstrap_go_package { |
| 191 | name: "golang-protobuf-ptypes-struct", |
| 192 | pkgPath: "github.com/golang/protobuf/ptypes/struct", |
| 193 | deps: ["golang-protobuf-proto"], |
| 194 | srcs: ["ptypes/struct/struct.pb.go"], |
| 195 | } |
| 196 | |
| 197 | bootstrap_go_package { |
| 198 | name: "golang-protobuf-ptypes-timestamp", |
| 199 | pkgPath: "github.com/golang/protobuf/ptypes/timestamp", |
| 200 | deps: ["golang-protobuf-proto"], |
| 201 | srcs: ["ptypes/timestamp/timestamp.pb.go"], |
| 202 | } |
| 203 | |
| 204 | bootstrap_go_package { |
| 205 | name: "golang-protobuf-ptypes-wrappers", |
| 206 | pkgPath: "github.com/golang/protobuf/ptypes/wrappers", |
| 207 | deps: ["golang-protobuf-proto"], |
| 208 | srcs: ["ptypes/wrappers/wrappers.pb.go"], |
| 209 | } |