The-Powder-Toy/SConstruct
jacob1 89ffa60529 New graphics api function: getColors, returns r, b, g, and a from a hex color
Also, remove generated/ and build/generated when using scons -c
2014-06-09 16:50:49 -04:00

23 lines
533 B
Python

#run generator.py
if not GetOption('clean'):
execfile("generator.py")
AddOption('--builddir',dest="builddir",default="build",help="Directory to build to.")
SConscript('SConscript', variant_dir=GetOption('builddir'), duplicate=0)
if GetOption('clean'):
import os, shutil
try:
shutil.rmtree(".sconf_temp/")
except:
print "couldn't remove .sconf_temp/"
try:
shutil.rmtree("generated/")
except:
print "couldn't remove generated/"
try:
os.remove(".sconsign.dblite")
except:
print "couldn't remove .sconsign.dblite"