コード例 #1
0
ファイル: CMakeBuilder.py プロジェクト: KDAB/Make-O-Matic
 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 = []
コード例 #2
0
ファイル: QMakeBuilder.py プロジェクト: KDAB/Make-O-Matic
	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 )
コード例 #3
0
ファイル: CMakeBuilder.py プロジェクト: KDAB/Make-O-Matic
    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)