Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

bagder/libbrotli

Repository files navigation

libbrotli

Wrapper scripts and code around the brotli code base.

Builds libraries out of the brotli decode and encode sources. Uses autotools.

'brotlidec' is the library for decoding, decompression

'brotlienc' is the library for encoding, compression

DEPRECATED

This library and effort made sense in the early days when no brotli library was provided by the brotli project. Once the brotli project started providing libraries by itself, this project turned deprecated.

Switch to the "real" brotli project's library instead!

This repository is kept around only for historic reasons.

Build

First make sure you have libtool, autoconf and automake installed.

Clone the libbrotli repository, e.g.

$ git clone https://github.com/bagder/libbrotli

Then run:

$ ./autogen.sh
$ ./configure
$ make

Install

$ make install

Installs the libraries and the necessary include files.

Header files

The include files are placed in a brotli subdir under the install prefix so include them like

#include <brotli/decode.h>
#include <brotli/encode.h>

in your source code.

License

Consider these build files MIT licensed. brotli itself is also under an MIT license.

Server-side brotli

See ngx_brotli_module