def __init__(self, name=None, inSourceBuild=False): MakefileGeneratorBuilder.__init__(self, name) self._setCommand("cmake") self._setCommandSearchPaths(getCMakeSearchPaths()) self.setInSourceBuild(inSourceBuild) self._setOutOfSourceBuildSupported(True) self.__cmakeVariables = []
def __init__( self, name = None, installPrefixVariableName = 'PREFIX' ): MakefileGeneratorBuilder.__init__( self, name ) self.setProjectFileBaseName( None ) self.enableInstallation( False ) self._setCommand( "qmake" ) self.__qmakeVariables = [] self.setInstallPrefixVariableName( installPrefixVariableName )
def createConfigureActions(self): configuration = self.getInstructions() self.addCMakeVariable(CMakeVariable("CMAKE_INSTALL_PREFIX", configuration.getTargetDir())) arguments = [] generatorSwitch = self.getCMakeGeneratorSwitch() if generatorSwitch: mApp().debugN(self, 5, "adding cmake generator switch: {0}".format(generatorSwitch)) arguments.append(generatorSwitch) for variable in self.getCMakeVariables(): arguments.append("-D{0}".format(variable)) sourceDir = configuration.getProject().getSourceDir() if configuration.getSourcePrefix(): sourceDir = os.path.join(sourceDir, configuration.getSourcePrefix()) arguments.append(sourceDir) self._setCommandArguments(arguments) MakefileGeneratorBuilder.createConfigureActions(self)