Implement skip for interface build process

This commit is contained in:
kaetemi 2014-02-08 19:44:52 +01:00
parent 4a71690859
commit 76009d8b05

View file

@ -54,8 +54,13 @@ if BuildInterface == "":
else: else:
mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory) mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory)
for dir in os.listdir(ExportBuildDirectory + "/" + InterfaceExportDirectory): for dir in os.listdir(ExportBuildDirectory + "/" + InterfaceExportDirectory):
if (os.path.isdir(ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir)) and dir != ".svn" and dir != "*.*": dirPath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir
subprocess.call([ BuildInterface, ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga", ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir ]) if (os.path.isdir(dirPath)) and dir != ".svn" and dir != "*.*":
texturePath = ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga"
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
subprocess.call([ BuildInterface, texturePath, dirPath ])
else:
printLog(log, "SKIP " + texturePath)
printLog(log, "") printLog(log, "")
# For each interface directory to compress in one DXTC # For each interface directory to compress in one DXTC
@ -64,7 +69,12 @@ if BuildInterface == "":
toolLogFail(log, BuildInterfaceTool, ToolSuffix) toolLogFail(log, BuildInterfaceTool, ToolSuffix)
else: else:
mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory) mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory)
subprocess.call([ BuildInterface, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga", ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory ]) dirPath = ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory
texturePath = ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga"
if needUpdateDirNoSubdirFile(log, dirPath, texturePath):
subprocess.call([ BuildInterface, texturePath, dirPath ])
else:
printLog(log, "SKIP " + texturePath)
printLog(log, "") printLog(log, "")
log.close() log.close()