mirror of
https://github.com/google/brotli.git
synced 2024-11-08 13:20:05 +00:00
Split auto-CMake and plain CMake build manual
This commit is contained in:
parent
6ece1d8791
commit
d00ccae57f
32
README.md
32
README.md
@ -19,13 +19,24 @@ https://groups.google.com/forum/#!forum/brotli
|
|||||||
|
|
||||||
### Build instructions
|
### Build instructions
|
||||||
|
|
||||||
#### Make
|
#### Autotools-style CMake
|
||||||
|
|
||||||
To build and run tests, simply do:
|
[configure-cmake](https://github.com/nemequ/configure-cmake) is an
|
||||||
|
autotools-style configure script for CMake-based projects.
|
||||||
|
|
||||||
$ ./configure && make
|
The basic commands to build, test and install brotli are:
|
||||||
|
|
||||||
If you want to install brotli, use one of the more advanced build systems below.
|
$ mkdir out && cd out
|
||||||
|
$ ../configure-cmake
|
||||||
|
$ make
|
||||||
|
$ make test
|
||||||
|
$ make install
|
||||||
|
|
||||||
|
To build static libraries use `--disable-shared-libs` argument:
|
||||||
|
|
||||||
|
$ mkdir out-static && cd out-static
|
||||||
|
$ ../configure-cmake --disable-shared-libs
|
||||||
|
$ make install
|
||||||
|
|
||||||
#### Bazel
|
#### Bazel
|
||||||
|
|
||||||
@ -35,17 +46,18 @@ See [Bazel](http://www.bazel.build/)
|
|||||||
|
|
||||||
The basic commands to build, test and install brotli are:
|
The basic commands to build, test and install brotli are:
|
||||||
|
|
||||||
$ mkdir out && cd out && ../configure-cmake && make
|
$ mkdir out && cd out
|
||||||
|
$ cmake ..
|
||||||
|
$ make
|
||||||
$ make test
|
$ make test
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
You can use other [CMake](https://cmake.org/) configuration. For example, to
|
You can use other [CMake](https://cmake.org/) configuration. For example, to
|
||||||
build static libraries and use a custom installation directory:
|
build static libraries:
|
||||||
|
|
||||||
$ mkdir out-static && \
|
$ mkdir out-static && cd out-static
|
||||||
cd out-static && \
|
$ cmake .. -DBUILD_SHARED_LIBS=OFF
|
||||||
../configure-cmake --disable-shared-libs --prefix='/my/prefix/dir/'
|
$ make
|
||||||
$ make install
|
|
||||||
|
|
||||||
#### Premake5
|
#### Premake5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user