2017-03-22 11:41:19 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"]) # MIT
|
|
|
|
|
2018-06-26 16:08:07 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2017-03-22 11:41:19 +00:00
|
|
|
|
2018-05-31 11:21:04 +00:00
|
|
|
go_library(
|
2017-03-22 11:41:19 +00:00
|
|
|
name = "cbrotli",
|
2017-04-13 18:05:36 +00:00
|
|
|
srcs = [
|
|
|
|
"reader.go",
|
|
|
|
"writer.go",
|
|
|
|
],
|
|
|
|
cdeps = [
|
2018-06-04 15:53:16 +00:00
|
|
|
"@org_brotli//:brotlidec",
|
|
|
|
"@org_brotli//:brotlienc",
|
2017-03-22 11:41:19 +00:00
|
|
|
],
|
2018-06-26 16:08:07 +00:00
|
|
|
cgo = True,
|
|
|
|
importpath = "github.com/google/brotli/go/cbrotli",
|
2017-03-22 11:41:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cbrotli_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["cbrotli_test.go"],
|
2018-05-31 11:21:04 +00:00
|
|
|
embed = [":cbrotli"],
|
2017-03-22 11:41:19 +00:00
|
|
|
)
|