41 lines
925 B
Python
41 lines
925 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"detect.go",
|
|
"doc.go",
|
|
"integral.go",
|
|
"opencv_parser.go",
|
|
"projector.go",
|
|
],
|
|
importmap = "go-common/vendor/code.google.com/p/graphics-go/graphics/detect",
|
|
importpath = "code.google.com/p/graphics-go/graphics/detect",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"detect_test.go",
|
|
"integral_test.go",
|
|
"opencv_parser_test.go",
|
|
"projector_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|