aboutsummaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2016-08-23 15:43:07 -0700
committerPiotr Sikora <piotrsikora@google.com>2016-08-23 15:43:07 -0700
commit2cc33230f4583d788fee28979204c39f940eec14 (patch)
tree5210c131963c02f63b2977d3bfa57311cc5f1c1a /BUILD
parent85cc650a116c3d391622224a9e2a4ac9bb4bb951 (diff)
downloadbrotli-2cc33230f4583d788fee28979204c39f940eec14.zip
brotli-2cc33230f4583d788fee28979204c39f940eec14.tar.gz
brotli-2cc33230f4583d788fee28979204c39f940eec14.tar.bz2
Bazel: use cc_library instead of cc_inc_library.
cc_inc_library is broken when used with external repositories (see: https://github.com/bazelbuild/bazel/issues/1596), which makes it a bit useless at the moment. Switch to using cc_library with "includes" attribute to expose public headers. While there, fix order of attributes in ":brotli_common" target. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/BUILD b/BUILD
index c0ac6d8..a95a9f5 100644
--- a/BUILD
+++ b/BUILD
@@ -56,18 +56,19 @@ filegroup(
srcs = glob(["enc/*.c"]),
)
-cc_inc_library(
+cc_library(
name = "brotli",
hdrs = [":public_headers"],
- prefix = "include",
+ copts = STRICT_C_OPTIONS,
+ includes = ["include"],
)
cc_library(
name = "brotli_common",
srcs = [":common_sources"],
hdrs = [":common_headers"],
- deps = [":brotli"],
copts = STRICT_C_OPTIONS,
+ deps = [":brotli"],
)
cc_library(