Build the Boost with the CMake at a configure time.
Some docs see in a source code. There is also an example with README with the build commands for the different systems.
Building is tested on the Linux, Android. Other systems are not tested.
Linux: gcc, clang, static, shared.
Android: gcc, clang, static (shared is broken). BoostCMaker can be included to the gradle project in the Android Studio.
BoostBuilder
https://github.com/drbenmorgan/BoostBuilder
build-boost.sh from CrystaX NDK
https://www.crystax.net/
https://github.com/crystax/android-platform-ndk/blob/master/build/tools/build-boost.sh