1mkdir build
2cd build
3cmake ..
4make
5
6Note that the default build flags in the top-leve CMakeLists.txt are for
7debugging - optimisation isn't enabled.
8
9If you'll be building a lot, then installing Ninja[1] is highly recommended.
10Wipe out the build directory and recreate it, but using:
11
12cmake -GNinja ..
13ninja
14
15If you want to cross-compile then there are example toolchain files for 32-bit
16Intel and ARM in util/. Wipe out the build directory, recreate it and run cmake
17like this:
18
19cmake -DCMAKE_TOOLCHAIN_FILE=../util/arm-toolchain.cmake -GNinja ..
20
21If you want to build as a shared library you need to tweak the STATIC tags in
22the CMakeLists.txts and also define BORINGSSL_SHARED_LIBRARY and
23BORINGSSL_IMPLEMENTATION. On Windows, where functions need to be tagged with
24"dllimport" when coming from a shared library, you need just
25BORINGSSL_SHARED_LIBRARY defined in the code which #includes the BoringSSL
26headers.
27
28[1] http://martine.github.io/ninja/
29