ccdemos/SConscript
branchpyrit
changeset 91 9d66d323c354
parent 88 f7edb3b90816
child 92 9af5c039b678
equal deleted inserted replaced
90:f6a72eb99631 91:9d66d323c354
     2 myenv = env.Clone()
     2 myenv = env.Clone()
     3 myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
     3 myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
     4 myenv.Prepend(LIBS=['pyrit'])
     4 myenv.Prepend(LIBS=['pyrit'])
     5 
     5 
     6 sdlenv = myenv.Clone()
     6 sdlenv = myenv.Clone()
     7 sdlenv.ParseConfig('sh sdl-config --cflags --libs')
     7 try:
       
     8 	sdlenv.ParseConfig('sh sdl-config --cflags --libs')
       
     9 except:
       
    10 	print "SDL not found, some demos will not built."
       
    11 	myenv.Alias('cc-demos', None)
       
    12 	Return()
     8 
    13 
     9 l = []
    14 l = []
    10 l.append( sdlenv.Program(['realtime.cc']) )
    15 l.append( sdlenv.Program(['realtime.cc']) )
    11 l.append( sdlenv.Program(['realtime_bunny.cc']) )
    16 l.append( sdlenv.Program(['realtime_bunny.cc']) )
    12 l.append( sdlenv.Program(['realtime_dragon.cc']) )
    17 l.append( sdlenv.Program(['realtime_dragon.cc']) )