Search code examples
c++buildchromium

Easy building of Chromium base (libchrome) library


I've been working with Chromium codebase for some time and get accustomed to its great base library (aka libchrome). The problem is that while great and versatile this library wasn't intended to be used outside of Chromium so it is really problematic to use it as a standalone library.

Library's page states that for other Google's projects they either released some inner packages or used scons build script which can be used for building the library. Unfortunately neither this script nor its more recent version allowed me to compile it. I'v got some errors either about wrong flags or missing input files. Possibly some of patches placed in the same directory as script could help but there is not description which to use and in what order.

On some blog I found suggestion that one could fetch whole Chromium instead, together with its toolchain and configure it to build just that one library. But that would be really slow and not very portable. If I were to develop something serious one day it would force people to download a lot of unnecessary stuff.

Do any of you know some fast and reliable way to build that library? It might be more complicated as long as it could be automated by a script and don't make one setup PATH variables and download several GB of overhead data.


Solution

  • mini_chromium provides a standalone build of the base lib but does not provide Windows builds. If you need those you'll have to add yourself.