mirror of
https://github.com/google/brotli.git
synced 2025-01-07 15:30:10 +00:00
1e7ea1d8e6
* 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...
28 lines
521 B
Python
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"],
|
|
)
|