diff options
author | Piotr Sikora <piotrsikora@google.com> | 2016-08-23 15:43:07 -0700 |
---|---|---|
committer | Piotr Sikora <piotrsikora@google.com> | 2016-08-23 15:43:07 -0700 |
commit | 2cc33230f4583d788fee28979204c39f940eec14 (patch) | |
tree | 5210c131963c02f63b2977d3bfa57311cc5f1c1a /BUILD | |
parent | 85cc650a116c3d391622224a9e2a4ac9bb4bb951 (diff) | |
download | brotli-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-- | BUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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( |