in project_future.py [0:0]
def build(self, sandbox_profile, stdout=sys.stdout, stderr=sys.stderr,
incremental=False, time_reporter=None):
"""Build the project target."""
if self._pretargets:
common.check_execute(self.get_prebuild_command(incremental=incremental),
sandbox_profile=sandbox_profile,
stdout=stdout, stderr=stdout)
start_time = None
if time_reporter:
start_time = time.time()
returncode = common.check_execute(self.get_build_command(incremental=incremental),
sandbox_profile=sandbox_profile,
stdout=stdout, stderr=stdout)
if returncode == 0 and time_reporter:
elapsed = time.time() - start_time
time_reporter.update(self._target, elapsed)
return returncode