craftr-build / craftr-build-4.x

Frontend for the Craftr build framework.
https://craftr-build.github.io/craftr/
Other
60 stars 14 forks source link

Allow setting path to Ninja executable #127

Closed tliron closed 7 years ago

tliron commented 8 years ago

It would be nice if there were an optional for this! --ninja-path or similar.

The use case is embedding Craftr in bigger build systems (Debian, Eclipse) where you have some sort of contained filesystem or limited access to the environment path.

NiklasRosenstein commented 7 years ago

You can do that in Craftr 2.x in 2 different ways: Either set the craftr.ninja option or theNINJA environment variable. To set the option, you can use the -d command-line parameter like

$ craftr -d craftr.ninja=ninja-1.7.2.git.exe 

Or define it in a configuration file.

[craftr]
ninja = ninja-1.7.2.git.exe

Will not be fixed in Craftr 1.