mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 21:11:39 +00:00
Implement skip for interface build process
This commit is contained in:
parent
4a71690859
commit
76009d8b05
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