diff options
author | Eugene Kliuchnikov <eustas@google.com> | 2018-06-04 17:53:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 17:53:16 +0200 |
commit | 1e7ea1d8e61b7cd51149a2dd491bc86ff8ef460c (patch) | |
tree | 254df89394022cf8d5abe6070483887ebd98d6a1 /go | |
parent | 29dc2cce9090d6c92c908116e11373bc7fdc8ad1 (diff) | |
download | brotli-1e7ea1d8e61b7cd51149a2dd491bc86ff8ef460c.zip brotli-1e7ea1d8e61b7cd51149a2dd491bc86ff8ef460c.tar.gz brotli-1e7ea1d8e61b7cd51149a2dd491bc86ff8ef460c.tar.bz2 |
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...
Diffstat (limited to 'go')
-rw-r--r-- | go/BUILD | 3 | ||||
-rw-r--r-- | go/WORKSPACE | 16 | ||||
-rw-r--r-- | go/cbrotli/BUILD | 4 |
3 files changed, 21 insertions, 2 deletions
diff --git a/go/BUILD b/go/BUILD new file mode 100644 index 0000000..de37047 --- /dev/null +++ b/go/BUILD @@ -0,0 +1,3 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_prefix") + +go_prefix("github.com/google/brotli") diff --git a/go/WORKSPACE b/go/WORKSPACE new file mode 100644 index 0000000..8a88c7e --- /dev/null +++ b/go/WORKSPACE @@ -0,0 +1,16 @@ +workspace(name = "org_brotli_go") + +local_repository( + name = "org_brotli", + path = "..", +) + +http_archive( + name = "io_bazel_rules_go", + urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz"], + sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3", +) + +load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") +go_rules_dependencies() +go_register_toolchains() diff --git a/go/cbrotli/BUILD b/go/cbrotli/BUILD index ed0a055..0f23a15 100644 --- a/go/cbrotli/BUILD +++ b/go/cbrotli/BUILD @@ -13,8 +13,8 @@ go_library( "writer.go", ], cdeps = [ - "//:brotlidec", - "//:brotlienc", + "@org_brotli//:brotlidec", + "@org_brotli//:brotlienc", ], cgo=True, ) |