class TupBackend(HybridBackend(TupOnly, RecursiveMakeBackend)): def build(self, config, output, jobs, verbose): status = config._run_make(directory=self.environment.topobjdir, target='tup', line_handler=output.on_line, log=False, print_directory=False, ensure_exit_code=False, num_jobs=jobs, silent=not verbose, append_env={b'NO_BUILDSTATUS_MESSAGES': b'1'}) return status
def get_backend_class(name): if '+' in name: from mozbuild.backend.base import HybridBackend return HybridBackend(*(get_backend_class(name) for name in name.split('+'))) class_name = '%sBackend' % name module = __import__(backends[name], globals(), locals(), [class_name]) return getattr(module, class_name)