aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-10-17 07:45:30 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-17 07:45:30 +0000
commit56ec8b5a0d098e4b5538bb3fe966b7fd8473e670 (patch)
tree13394c7a22b3b2eeeb4521e7780ea1a491e737a2
parent3dc9d7825e729366202e891e9e8791733f43346f (diff)
parenta8f9838e293dbdeafc5acd56805f8b7cd98af9a2 (diff)
downloadgolang-protobuf-pie-dr1-dev.tar.gz
am: a8f9838e29 Change-Id: I222ace66e70bfc316b4bc0a4239952b84e430d1f
-rw-r--r--Android.bp199
1 files changed, 199 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..2a6223be
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,199 @@
+// Copyright 2017 Google Inc. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+bootstrap_go_package {
+ name: "protoc-gen-go_descriptor",
+ pkgPath: "github.com/golang/protobuf/protoc-gen-go/descriptor",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["protoc-gen-go/descriptor/descriptor.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "protoc-gen-go_plugin",
+ pkgPath: "github.com/golang/protobuf/protoc-gen-go/plugin",
+ deps: [
+ "golang-protobuf-proto",
+ "protoc-gen-go_descriptor",
+ ],
+ srcs: ["protoc-gen-go/plugin/plugin.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "protoc-gen-go_generator",
+ pkgPath: "github.com/golang/protobuf/protoc-gen-go/generator",
+ deps: [
+ "golang-protobuf-proto",
+ "protoc-gen-go_descriptor",
+ "protoc-gen-go_plugin",
+ ],
+ srcs: ["protoc-gen-go/generator/generator.go"],
+ testSrcs: ["protoc-gen-go/generator/name_test.go"],
+}
+
+bootstrap_go_package {
+ name: "protoc-gen-go_grpc",
+ pkgPath: "github.com/golang/protobuf/protoc-gen-go/grpc",
+ deps: [
+ "protoc-gen-go_descriptor",
+ "protoc-gen-go_generator",
+ ],
+ srcs: ["protoc-gen-go/grpc/grpc.go"],
+}
+
+blueprint_go_binary {
+ name: "protoc-gen-go",
+ deps: [
+ "golang-protobuf-proto",
+ "protoc-gen-go_generator",
+ "protoc-gen-go_grpc",
+ ],
+ srcs: [
+ "protoc-gen-go/main.go",
+ "protoc-gen-go/link_grpc.go",
+ ],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-proto",
+ pkgPath: "github.com/golang/protobuf/proto",
+ srcs: [
+ "proto/clone.go",
+ "proto/decode.go",
+ "proto/encode.go",
+ "proto/equal.go",
+ "proto/extensions.go",
+ "proto/lib.go",
+ "proto/message_set.go",
+ "proto/pointer_unsafe.go",
+ "proto/properties.go",
+ "proto/text.go",
+ "proto/text_parser.go",
+ ],
+ testSrcs: [
+ "proto/message_set_test.go",
+ "proto/size2_test.go",
+ ],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-proto-proto3_proto",
+ pkgPath: "github.com/golang/protobuf/proto/proto3_proto",
+ deps: [
+ "golang-protobuf-proto",
+ "golang-protobuf-proto-testdata",
+ "golang-protobuf-ptypes-any",
+ ],
+ srcs: ["proto/proto3_proto/proto3.pb.go"],
+}
+
+// These won't run by default (they also print output, which we don't want), but
+// can be run with:
+// m out/soong/.bootstrap/golang-protobuf-proto_test/test/test.passed
+bootstrap_go_package {
+ name: "golang-protobuf-proto_test",
+ pkgPath: "github.com/golang/protobuf/proto_test",
+ deps: [
+ "golang-protobuf-proto",
+ "golang-protobuf-proto-proto3_proto",
+ "golang-protobuf-proto-testdata",
+ "golang-protobuf-ptypes",
+ ],
+ testSrcs: [
+ "proto/all_test.go",
+ "proto/any_test.go",
+ "proto/clone_test.go",
+ "proto/decode_test.go",
+ "proto/encode_test.go",
+ "proto/equal_test.go",
+ // Requires golang.org/x/sync/errgroup
+ //"proto/extensions_test.go",
+ "proto/map_test.go",
+ "proto/proto3_test.go",
+ "proto/size_test.go",
+ "proto/text_parser_test.go",
+ "proto/text_test.go",
+ ],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-proto-testdata",
+ pkgPath: "github.com/golang/protobuf/proto/testdata",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["proto/testdata/test.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes",
+ pkgPath: "github.com/golang/protobuf/ptypes",
+ deps: [
+ "golang-protobuf-proto",
+ "golang-protobuf-ptypes-any",
+ "golang-protobuf-ptypes-duration",
+ "golang-protobuf-ptypes-timestamp",
+ "protoc-gen-go_descriptor",
+ ],
+ srcs: [
+ "ptypes/any.go",
+ "ptypes/doc.go",
+ "ptypes/duration.go",
+ "ptypes/timestamp.go",
+ ],
+ testSrcs: [
+ "ptypes/any_test.go",
+ "ptypes/duration_test.go",
+ "ptypes/timestamp_test.go",
+ ],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-any",
+ pkgPath: "github.com/golang/protobuf/ptypes/any",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/any/any.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-duration",
+ pkgPath: "github.com/golang/protobuf/ptypes/duration",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/duration/duration.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-empty",
+ pkgPath: "github.com/golang/protobuf/ptypes/empty",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/empty/empty.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-struct",
+ pkgPath: "github.com/golang/protobuf/ptypes/struct",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/struct/struct.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-timestamp",
+ pkgPath: "github.com/golang/protobuf/ptypes/timestamp",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/timestamp/timestamp.pb.go"],
+}
+
+bootstrap_go_package {
+ name: "golang-protobuf-ptypes-wrappers",
+ pkgPath: "github.com/golang/protobuf/ptypes/wrappers",
+ deps: ["golang-protobuf-proto"],
+ srcs: ["ptypes/wrappers/wrappers.pb.go"],
+}