Allow the use of pre/post build script in dependencies.

This commit is contained in:
Matthieu Gautier 2017-02-22 14:25:23 +01:00
parent 92c1a5513a
commit dd7a0660c0
1 changed files with 4 additions and 0 deletions

View File

@ -172,9 +172,13 @@ class Builder:
return self.target.command(*args, **kwargs) return self.target.command(*args, **kwargs)
def build(self): def build(self):
if hasattr(self, '_pre_build_script'):
self.command('pre_build_script', self._pre_build_script)
self.command('configure', self._configure) self.command('configure', self._configure)
self.command('compile', self._compile) self.command('compile', self._compile)
self.command('install', self._install) self.command('install', self._install)
if hasattr(self, '_post_build_script'):
self.command('post_build_script', self._post_build_script)
class MakeBuilder(Builder): class MakeBuilder(Builder):