コード例 #1
0
ファイル: tup.py プロジェクト: MonkeyTails/Waterfox
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
コード例 #2
0
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)