summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'SConscript')
-rwxr-xr-xSConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/SConscript b/SConscript
index a69b981..f1924a3 100755
--- a/SConscript
+++ b/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('--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
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
+
+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
# ==================