Commit 2aa0d0d5 authored by Ghislain MARY's avatar Ghislain MARY

Add some check of tools in

parent da46ae88
......@@ -118,6 +118,27 @@ class DesktopPreparator(prepare.Preparator):
self.additional_args += ["-DCMAKE_SKIP_INSTALL_RPATH=YES"]
self.additional_args += ["-DENABLE_RELATIVE_PREFIX=YES"]
def check_tools(self):
ret = prepare.Preparator.check_tools(self)
if platform.system() == 'Windows':
ret |= not self.check_is_installed('mingw-get', 'MinGW (')
if "python" in or "python-raspberry" in
if platform.system() == 'Windows':
doxygen_prog = 'doxygen ('
graphviz_prog = 'graphviz ('
doxygen_prog = 'doxygen'
graphviz_prog = 'graphviz'
ret |= not self.check_is_installed('doxygen', doxygen_prog)
ret |= not self.check_is_installed('dot', graphviz_prog)
return ret
def show_missing_dependencies(self):
if self.missing_dependencies:
error("The following binaries are missing: {}. Please install these packages:\n\t{}".format(
" ".join(self.missing_dependencies.keys()),
" ".join(self.missing_dependencies.values())))
def clean(self):
if os.path.isfile('Makefile'):
cmake-builder @ 605f5df0
Subproject commit 2b9f1cff1a509ac081e1d3aeda934f36ad61411d
Subproject commit 605f5df0f2fd6c42dbd0f4c55ac119fb152930f5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment