While this isn't strictly necessary with recent versions of Bazel
(which unconditionally add -lm to linkopts), building Brotli with
older versions of Bazel requires -lm to be added explicitly.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
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>
* add Brotli*TakeOutput methods
* * flushing now doesn't require additional call
* add Brotli*Version methods
* moved public headers to 'public' directory
* removed C++ API
* do not assume STDC_VERSION is defined