blob: b3fb5e2ebc8cb9a9b062d72a831b34ac3855c073 [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("//third_party/protobuf/proto_library.gni")
_protos = [
"common",
"failure_reason",
"test_metadata",
"test_result",
]
proto_library("resultdb_proto") {
sources = []
foreach(name, _protos) {
sources += [ "${name}.proto" ]
}
proto_in_dir = "//third_party/luci-go"
import_protobuf_full = true
generate_python = false
generate_cc = false
generate_go = true
}
go_library("resultdb_proto_go") {
name = "go.chromium.org/luci/resultdb/proto/v1"
here = rebase_path(".", "//")
source_dir = "$root_gen_dir/go-proto-gen/src/$here"
non_go_deps = [ ":resultdb_proto" ]
sources = []
foreach(name, _protos) {
sources += [ "${name}.pb.go" ]
}
deps = [
# TODO(https://fxbug.dev/70570): Remove this when we're on protoc 3.14.0 or higher.
"//third_party/golibs:github.com/golang/protobuf",
"//third_party/golibs:google.golang.org/protobuf",
]
}