2017-03-22 11:41:19 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"]) # MIT
|
|
|
|
|
2017-04-13 18:05:36 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "cgo_library", "go_test")
|
2017-03-22 11:41:19 +00:00
|
|
|
|
|
|
|
go_prefix("github.com/google/brotli")
|
|
|
|
|
2017-04-13 18:05:36 +00:00
|
|
|
cgo_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 = [
|
|
|
|
"//:brotlidec",
|
|
|
|
"//:brotlienc",
|
2017-03-22 11:41:19 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "cbrotli_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["cbrotli_test.go"],
|
|
|
|
library = ":cbrotli",
|
|
|
|
)
|