equal
deleted
inserted
replaced
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']) ) |