To build with ninja, simply run ninja from the root directory. This will produce a library in /out. There are also Bazel rules, outlined in BAZEL.md