mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 03:54:48 +00:00
Implement skip for interface build process
This commit is contained in:
parent
be58a46d70
commit
0d2f35e43b
1 changed files with 13 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue