--- a/ccdemos/SConscript Thu May 08 09:21:25 2008 +0200
+++ b/ccdemos/SConscript Sat May 10 14:29:37 2008 +0200
@@ -1,13 +1,14 @@
-Import('env sdlenv lib')
+Import('env sdlenv have_sdl lib')
myenv = sdlenv.Clone()
myenv.Append(LIBPATH=['#build/lib'])
myenv.Prepend(LIBS=['pyrit'])
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']) )
+if have_sdl:
+ 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']) )
env.Alias('cc-demos', l)