summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-09-24 14:07:22 (GMT)
committer jacob1 <jfu614@gmail.com>2013-09-24 14:07:22 (GMT)
commit13309379f94a8085cce13edbc8e873bec9aeac2b (patch)
treeac8b0674944a13a93058c8f89ac6aa284a263a02 /SConscript
parenta5c1a08d2c9fb08aa5962e5cec663c88a9206ffb (diff)
downloadpowder-13309379f94a8085cce13edbc8e873bec9aeac2b.zip
powder-13309379f94a8085cce13edbc8e873bec9aeac2b.tar.gz
add a --fullclean option to fix errors (from Doxin)
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
# ==================