ccdemos/SConscript
branchpyrit
changeset 92 9af5c039b678
parent 91 9d66d323c354
child 93 96d65f841791
--- a/ccdemos/SConscript	Fri May 02 13:27:47 2008 +0200
+++ b/ccdemos/SConscript	Mon May 05 15:31:14 2008 +0200
@@ -1,21 +1,13 @@
-Import('env lib')
-myenv = env.Clone()
+Import('env sdlenv lib')
+myenv = sdlenv.Clone()
 myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
 myenv.Prepend(LIBS=['pyrit'])
 
-sdlenv = myenv.Clone()
-try:
-	sdlenv.ParseConfig('sh sdl-config --cflags --libs')
-except:
-	print "SDL not found, some demos will not built."
-	myenv.Alias('cc-demos', None)
-	Return()
+l = []
+l.append( myenv.Program(['realtime.cc']) )
+l.append( myenv.Program(['realtime_bunny.cc']) )
+l.append( myenv.Program(['realtime_dragon.cc']) )
+l.append( myenv.Program(['spheres_shadow.cc']) )
+l.append( myenv.Program(['textures.cc']) )
 
-l = []
-l.append( sdlenv.Program(['realtime.cc']) )
-l.append( sdlenv.Program(['realtime_bunny.cc']) )
-l.append( sdlenv.Program(['realtime_dragon.cc']) )
-l.append( sdlenv.Program(['spheres_shadow.cc']) )
-l.append( sdlenv.Program(['textures.cc']) )
-
-myenv.Alias('cc-demos', l)
+env.Alias('cc-demos', l)