Beispiel #1
0
    def clean(self):
        """Cleans the project."""

        if self.has_clean:
          run_proc([ "make", "clean" ], cwd=self.buildPath)
        else:
          run_proc([ "git", "clean", "-fdx" ], cwd=self.buildPath)
Beispiel #2
0
 def clean_build(self):
     """Performs a clean build of the project."""
 
     # Run the build with mkcheck.
     run_proc(
       [ TOOL_PATH, "--output={0}".format(self.graph), "--", "make" ] + self._args,
       cwd=self.buildPath
     )
Beispiel #3
0
def build_tool():
    """Builds mkcheck."""

    if os.path.isfile(os.path.join(PROJECT_PATH, 'build', 'build.ninja')):
        run_proc([ 'ninja' ], cwd=os.path.join(PROJECT_PATH, 'build'))
        return

    if os.path.isfile(os.path.join(PROJECT_PATH, 'build', 'Makefile')):
        run_proc([ 'make' ], cwd=os.path.join(PROJECT_PATH, 'build'))
        return

    raise RuntimeError('Cannot rebuild mkcheck')
Beispiel #4
0
    def clean_build(self):
        """Performs a clean build of the project."""

        # Build once - needed for some projects.
        run_proc(self.BUILD, cwd=self.buildPath)
    
        # Clean the project.
        self.clean()

        # Run the build with mkcheck.
        run_proc(
          [ TOOL_PATH, "--output={0}".format(self.graph), "--" ] + self.BUILD,
          cwd=self.buildPath
        )
Beispiel #5
0
    def build(self):
        """Performs an incremental build."""

        run_proc(self.BUILD, cwd=self.buildPath)
Beispiel #6
0
    def clean(self):
        """Cleans the project."""

        run_proc(self.CLEAN, cwd=self.buildPath)
Beispiel #7
0
    def build(self):
        """Performs an incremental build."""

        run_proc([ "scons", "-Q" ], cwd=self.buildPath)
Beispiel #8
0
 def clean(self):
     """Cleans the project."""
     
     run_proc([ "scons", "--clean" ], cwd=self.buildPath)
Beispiel #9
0
 def build(self):
     """Performs an incremental build."""
     
     run_proc([ "make"] + self._args, cwd=self.buildPath)