mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
add a --fullclean option to fix errors (from Doxin)
This commit is contained in:
14
SConscript
14
SConscript
@@ -88,6 +88,8 @@ AddOption('--snapshot-id',dest="snapshot-id",default=False,help="Snapshot build
|
|||||||
AddOption('--stable',dest="stable",default=True,help="Non snapshot build")
|
AddOption('--stable',dest="stable",default=True,help="Non snapshot build")
|
||||||
AddOption('--aao', dest="everythingAtOnce", action='store_true', default=False, help="Compile the whole game without generating intermediate objects (very slow), enable this when using compilers like clang or mscc that don't support -fkeep-inline-functions")
|
AddOption('--aao', dest="everythingAtOnce", action='store_true', default=False, help="Compile the whole game without generating intermediate objects (very slow), enable this when using compilers like clang or mscc that don't support -fkeep-inline-functions")
|
||||||
|
|
||||||
|
AddOption('--fullclean',dest="justwork",action='store_true',default=False,help="for when nothing else works. Deletes all sconscript temporary files.")
|
||||||
|
|
||||||
# using one of these commandline options is compulsory
|
# using one of these commandline options is compulsory
|
||||||
|
|
||||||
AddOption('--win',dest="win",action='store_true',default=False,help="Windows platform target.")
|
AddOption('--win',dest="win",action='store_true',default=False,help="Windows platform target.")
|
||||||
@@ -101,6 +103,18 @@ AddOption('--rpi',dest="rpi",action='store_true',default=False,help="Raspbain pl
|
|||||||
|
|
||||||
# the gist of the compiling rules are defined here
|
# the gist of the compiling rules are defined here
|
||||||
|
|
||||||
|
|
||||||
|
if(GetOption("justwork")):
|
||||||
|
import shutil
|
||||||
|
try:
|
||||||
|
shutil.rmtree("../.sconf_temp/")
|
||||||
|
except:
|
||||||
|
print "couldn't remove .sconf_temp"
|
||||||
|
try:
|
||||||
|
os.remove("../.sconsign.dblite")
|
||||||
|
except:
|
||||||
|
print "couldn't remove .sconsign.dblite"
|
||||||
|
|
||||||
# platform selection
|
# platform selection
|
||||||
# ==================
|
# ==================
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user