Exemple #1
0
 def _make_context(self, env):
     build = BuildInputs(env, Path('build.bfg', Root.srcdir))
     context = builtin.BuildContext(env, build, None)
     context.path_stack.append(
         builtin.BuildContext.PathEntry(build.bfgpath)
     )
     return build, context
Exemple #2
0
 def setUp(self):
     self.env = make_env()
     self.build = BuildInputs(self.env, Path('build.bfg', Root.srcdir))
     self.context = builtin.BuildContext(self.env, self.build, None)
     self.context.path_stack.append(
         builtin.BuildContext.PathEntry(self.build.bfgpath))
     self.bfgfile = file_types.File(self.build.bfgpath)
Exemple #3
0
 def _make_context(self, env):
     build = BuildInputs(env, Path('build.bfg', Root.srcdir))
     return builtin.BuildContext(env, build, None)