blob: ecb05c608dc54910088151f74f304a6485da8dc1 [file] [log] [blame]
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/go/go_binary.gni")
import("//build/host.gni")
assert(current_toolchain == host_toolchain)
go_binary("protoc-gen-go") {
gopackage = "github.com/golang/protobuf/protoc-gen-go"
go_dependencies = [
{
package = "github.com/golang/protobuf/proto"
source = "//third_party/golibs/github.com/golang/protobuf/proto"
},
{
package = "github.com/golang/protobuf/protoc-gen-go"
source = "//third_party/golibs/github.com/golang/protobuf/protoc-gen-go"
},
]
}
install_host_tools("host") {
deps = [
":protoc-gen-go",
]
outputs = [
"protoc-gen-go",
]
}