mirror of
https://github.com/google/brotli.git
synced 2024-09-19 14:19:59 +00:00
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>
This commit is contained in:
parent
85cc650a11
commit
2cc33230f4
7
BUILD
7
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(
|
||||
|
Loading…
Reference in New Issue
Block a user