Properly fail if ninja or meson is not installed.

This commit is contained in:
Matthieu Gautier 2017-02-07 12:08:03 +01:00
parent 640750e1ab
commit 82aab2f5dd
1 changed files with 4 additions and 0 deletions

View File

@ -239,7 +239,11 @@ class BuildEnv:
self.detect_platform()
self.setup_build_target(options.build_target)
self.ninja_command = self._detect_ninja()
if not self.ninja_command:
sys.exit("ERROR: ninja command not found")
self.meson_command = self._detect_meson()
if not self.meson_command:
sys.exit("ERROR: meson command not fount")
self.options = options
self.libprefix = options.libprefix or self._detect_libdir()
self.targetsDict = targetsDict