28 lines
639 B
Python
28 lines
639 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"runewidth.go",
|
|
"runewidth_posix.go",
|
|
"runewidth_windows.go",
|
|
],
|
|
importmap = "go-common/vendor/github.com/mattn/go-runewidth",
|
|
importpath = "github.com/mattn/go-runewidth",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|