2014-06-08 18:33:58 -05:00
|
|
|
#run generator.py
|
|
|
|
if not GetOption('clean'):
|
|
|
|
execfile("generator.py")
|
|
|
|
|
2013-03-25 08:09:55 -05:00
|
|
|
AddOption('--builddir',dest="builddir",default="build",help="Directory to build to.")
|
|
|
|
SConscript('SConscript', variant_dir=GetOption('builddir'), duplicate=0)
|
2014-06-08 18:33:58 -05:00
|
|
|
if GetOption('clean'):
|
|
|
|
import os, 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"
|