blob: f0f1d7a429a1d67f210eddc1123e82182b4a5782 [file] [log] [blame]
# Copyright 2020 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_library.gni")
import("//build/go/golden_go_proto.gni")
import("//build/host.gni")
golden_go_proto("proto") {
sources = [ "proto/emulator_controller.proto" ]
import_protobuf_full = true
}
golden_go_proto("proto_grpc") {
sources = [ "proto/emulator_controller.proto" ]
import_protobuf_full = true
generate_go_grpc = true
}
go_library("proto_lib") {
source_dir = "proto"
sources = [
"emulator_controller.pb.go",
"emulator_controller_grpc.pb.go",
]
deps = [
"//third_party/golibs:google.golang.org/grpc",
"//third_party/golibs:google.golang.org/protobuf",
]
}
go_library("femu-grpc_lib") {
sources = [ "femu-grpc.go" ]
deps = [ ":proto_lib" ]
}
group("tests") {
testonly = true
deps = [
":proto",
":proto_grpc",
]
}