Beispiel #1
0
def getConfigureCommand(target):
    command = "./configure " + defines.surround(
        defines.autoToolsPrefix[0]) + " " + defines.surround(
            defines.autoToolsCompilers[0]) + " " + defines.surround(
                defines.autoToolsFlags[0])
    for dependency in target.dependsOn:
        command += " --with-" + dependency + "=" + defines.surround(
            defines.mdPrefix[0])
    return command
Beispiel #2
0
   def __str__(self):
       if self.importMode:
           modeStr = "Import"
       elif self.cleanMode:
           modeStr = "Clean"
       else:
           modeStr = "Build"
       return "Options:\n\
 Mode:                 " + modeStr + "\n\
 Project File:         " + self.projectFile + "\n\
 Build Dir:            " + self.buildDir + "\n\
 Download Dir:         " + self.downloadDir + "\n\
 Log Dir:              " + self.logDir + "\n\
 Clean MixDown:        " + str(self.cleanMixDown) + "\n\
 Restart build:        " + str(self.restart) + "\n\
 Verbose:              " + str(self.verbose) + "\n\
 Logger:               " + self.logger.capitalize() + "\n\
 Thread Count:         " + str(self.threadCount) + "\n\
 Job Count:            " + self.defines[defines.surround(defines.mdJobSlots[0])] + "\n\
 Skip Steps:           " + self.skipSteps + "\n\
 Override File:        " + self.overrideFile + "\n\
 Override Group Names: " + ", ".join(self.overrideGroupNames) + "\n"
Beispiel #3
0
   def __str__(self):
       if self.importMode:
           modeStr = "Import"
       elif self.cleanMode:
           modeStr = "Clean"
       else:
           modeStr = "Build"
       return "Options:\n\
 Mode:                 " + modeStr + "\n\
 Project File:         " + self.projectFile + "\n\
 Build Dir:            " + self.buildDir + "\n\
 Download Dir:         " + self.downloadDir + "\n\
 Log Dir:              " + self.logDir + "\n\
 Clean MixDown:        " + str(self.cleanMixDown) + "\n\
 Restart build:        " + str(self.restart) + "\n\
 Verbose:              " + str(self.verbose) + "\n\
 Logger:               " + self.logger.capitalize() + "\n\
 Thread Count:         " + str(self.threadCount) + "\n\
 Job Count:            " + self.defines[defines.surround(
           defines.mdJobSlots[0])] + "\n\
 Skip Steps:           " + self.skipSteps + "\n\
 Override File:        " + self.overrideFile + "\n\
 Override Group Names: " + ", ".join(self.overrideGroupNames) + "\n"
Beispiel #4
0
def getCleanCommand():
    return "make " + defines.surround(defines.makeJobSlots[0]) + " clean"
Beispiel #5
0
def getInstallCommand():
    return "make " + defines.surround(defines.makeJobSlots[0]) + " install"
Beispiel #6
0
def getBuildCommand():
    return "make " + defines.surround(defines.makeJobSlots[0])
Beispiel #7
0
def getConfigureCommand():
    if not isCmakeInstalled():
        raise exceptions.ToolNotInstalledException("CMake")
    return "cmake " + defines.surround(defines.cmakePrefix[0]) + " " + defines.surround(defines.cmakeCompilers[0]) + " " + defines.surround(defines.cmakeFlags[0])
Beispiel #8
0
def getConfigureCommand(target):
    command = "./configure " + defines.surround(defines.autoToolsPrefix[0]) + " " + defines.surround(defines.autoToolsCompilers[0]) + " " + defines.surround(defines.autoToolsFlags[0])
    for dependency in target.dependsOn:
        command += " --with-" + dependency + "=" + defines.surround(defines.mdPrefix[0])
    return command