mirror of
https://github.com/google/brotli.git
synced 2024-11-09 21:50:07 +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"]),
|
srcs = glob(["enc/*.c"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_inc_library(
|
cc_library(
|
||||||
name = "brotli",
|
name = "brotli",
|
||||||
hdrs = [":public_headers"],
|
hdrs = [":public_headers"],
|
||||||
prefix = "include",
|
copts = STRICT_C_OPTIONS,
|
||||||
|
includes = ["include"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "brotli_common",
|
name = "brotli_common",
|
||||||
srcs = [":common_sources"],
|
srcs = [":common_sources"],
|
||||||
hdrs = [":common_headers"],
|
hdrs = [":common_headers"],
|
||||||
deps = [":brotli"],
|
|
||||||
copts = STRICT_C_OPTIONS,
|
copts = STRICT_C_OPTIONS,
|
||||||
|
deps = [":brotli"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
|
Loading…
Reference in New Issue
Block a user