equal
deleted
inserted
replaced
1 Import('env lib') |
1 Import('env sdlenv lib') |
2 myenv = env.Clone() |
2 myenv = sdlenv.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 l = [] |
7 try: |
7 l.append( myenv.Program(['realtime.cc']) ) |
8 sdlenv.ParseConfig('sh sdl-config --cflags --libs') |
8 l.append( myenv.Program(['realtime_bunny.cc']) ) |
9 except: |
9 l.append( myenv.Program(['realtime_dragon.cc']) ) |
10 print "SDL not found, some demos will not built." |
10 l.append( myenv.Program(['spheres_shadow.cc']) ) |
11 myenv.Alias('cc-demos', None) |
11 l.append( myenv.Program(['textures.cc']) ) |
12 Return() |
|
13 |
12 |
14 l = [] |
13 env.Alias('cc-demos', l) |
15 l.append( sdlenv.Program(['realtime.cc']) ) |
|
16 l.append( sdlenv.Program(['realtime_bunny.cc']) ) |
|
17 l.append( sdlenv.Program(['realtime_dragon.cc']) ) |
|
18 l.append( sdlenv.Program(['spheres_shadow.cc']) ) |
|
19 l.append( sdlenv.Program(['textures.cc']) ) |
|
20 |
|
21 myenv.Alias('cc-demos', l) |
|