So my hdr-histogram.BUILD is configured as follows:
cc_library(
name = "main",
srcs = glob([
"src/*.c",
]),
hdrs = glob([
"src/*.h",
]),
includes = ["."],
strip_include_prefix = "src",
include_prefix = "histogram",
visibility = ["//visibility:public"],
)
However,
strip_include_prefix and
include_prefix affects the compilation of library itself, and I get this error:
Use --sandbox_debug to see verbose messages from the sandbox
external/hdrhistogram/src/hdr_histogram_log.c:22:26: fatal error: hdr_encoding.h: No such file or directory
compilation terminated.
Ultimately, I'd like to encapsulate HdrHistogram_c.
My question is how do I do it, with or without (strip_)include_prefix?