Precompiled binaries in biicode: a proof of concept with SFML

The problem: C and C++ compilation times

Biicode is a file-based dependencies manager for C and C++, focused on sharing and reusing source code, specifically, source (and header) files.

Biicode uses the CMake building system to configure and build blocks, its unit of source code sharing. The default way to develop blocks is to include the required sources and any required extra configuration for building such files on a CMakeLists.txt file at the root of the block. Also biicode provides other files for specific config such as dependencies.bii or paths.bii.

So writting our own biicode block is a process with three simple steps:

  1. Get the sources and copy them on the block directory.
  2. Configure the CMakeLists.txt file of the block for the specific build instructions for that sources.
  3. Upload the block to the biicode cloud via bii publish command.

So far so good. This approach works pretty well and the biicode community is growing everyday thanks to it. Whats exactly the problem with this approach? Its simple: Some C and C++ sources are hard to compile and it takes time. A lot of time.

SFML works fine as biicode example

Continue reading