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

Add some check of tools in prepare.py.

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 (https://sourceforge.net/projects/mingw/files/Installer/)')
if "python" in self.args.target or "python-raspberry" in self.args.target:
if platform.system() == 'Windows':
doxygen_prog = 'doxygen (http://www.stack.nl/~dimitri/doxygen/download.html)'
graphviz_prog = 'graphviz (http://graphviz.org/Download.php)'
else:
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):
prepare.Preparator.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