Skip to content

beardsvibe/buildfox

Repository files navigation

BuildFox Build Status Build status Coverage Status

Minimalistic Ninja generator

This project is a WIP

Example

Build all files in current folder :

build objects(*): auto *.cpp
build application(helloworld): auto objects(*)

Or build all files recursively :

build objects(obj/**_*): auto **/*.cpp
build application(bin/helloworld): auto objects(obj/*)

Usage

Building project

bf && ninja

Generating IDE solution

bf --ide vs # this will autoselect proper version of vs
bf --ide vs2012
bf --ide vs2013
bf --ide vs2015
bf --ide qtcreator
bf --ide cmake # for cmake based IDE's
bf --ide make # useful in some cases

Resources

Installation

  • Get ninja (v1.3+ is supported, v1.6 is recommended)
  • Get python (v2.7+ is supported, v3.5 is recommended)
  • Run pip install buildfox
  • If pip installs locally (for example on Ubuntu) you need to add export PATH=$PATH:/home/$USER/.local/bin/ to .bashrc
  • Run bf --selftest to make sure everything is ok
  • Done!

Using from source

  • Make alias bf for python buildfox.py command
    • On Windows it's doskey bf=python %path_to_the_repo%\buildfox.py $*
  • Run bf --selftest to make sure everything is ok
  • Done!