37 lines
879 B
Python
37 lines
879 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"capnpc-go.go",
|
|
"fileparts.go",
|
|
"nodes.go",
|
|
"templateparams.go",
|
|
"templates.go",
|
|
],
|
|
importpath = "zombiezen.com/go/capnproto2/capnpc-go",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//:go_default_library",
|
|
"//internal/schema:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "capnpc-go",
|
|
embed = [":go_default_library"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["capnpc-go_test.go"],
|
|
data = glob(["testdata/**"]),
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//:go_default_library",
|
|
"//encoding/text:go_default_library",
|
|
"//internal/schema:go_default_library",
|
|
],
|
|
)
|