ccdemos/SConscript
branchpyrit
changeset 95 ca7d4c665531
parent 93 96d65f841791
child 100 c005054bf4c1
--- 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)