def __init__(self, projectDir): projectDir = projectDir.replace('/', '\\') projectFile = projectDir + r'\KProject.py' projectInfo = KUtil.readPyFileInfo(projectFile) self.name = projectInfo.PROJECT_NAME self.vcxprojPath = '..\\' + projectDir + '\\' + self.name + '.vcxproj' self.guid = KUtil.newGuid()
def run(self): solutionFile = os.getcwd() + os.sep + "KMakefile.py" solutionInfo = KUtil.readPyFileInfo(solutionFile) print "Solution File:", solutionFile print "Generating '%s' ..." % solutionInfo.SOLUTION_NAME solutionInfo.SOLUTION_DIR = os.getcwd() compiler = KCompilerVs2012(solutionInfo) compiler.run() print "Generating done."
def run(self): solutionFile = os.getcwd() + os.sep + 'KMakefile.py' solutionInfo = KUtil.readPyFileInfo(solutionFile) print 'Solution File:', solutionFile print 'Generating \'%s\' ...' % solutionInfo.SOLUTION_NAME solutionInfo.SOLUTION_DIR = os.getcwd() compiler = KCompilerVs2012(solutionInfo) compiler.run() print 'Generating done.'