brotli/go/cbrotli/BUILD
Eugene Kliuchnikov 1e7ea1d8e6
Inverse bazel project/workspace tree (#677)
* Inverse bazel workspace tree.

Now each subproject directly depends on root (c) project.

This helps to mitigate Bazel bug bazelbuild/bazel#2391; short summary:
Bazel does not work if referenced subproject `WORKSPACE` uses any
repositories that embedding project does not.

Bright side: building C project is much faster;
no need to download closure, go and JDK...
2018-06-04 17:53:16 +02:00

28 lines
521 B
Python

package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_library", "go_test")
go_prefix("github.com/google/brotli")
go_library(
name = "cbrotli",
srcs = [
"reader.go",
"writer.go",
],
cdeps = [
"@org_brotli//:brotlidec",
"@org_brotli//:brotlienc",
],
cgo=True,
)
go_test(
name = "cbrotli_test",
size = "small",
srcs = ["cbrotli_test.go"],
embed = [":cbrotli"],
)