equal
deleted
inserted
replaced
1 Import('env lib') |
1 Import('env lib') |
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','png']) |
4 myenv.Prepend(LIBS=['pyrit']) |
5 |
5 |
6 sdlenv = myenv.Clone() |
6 sdlenv = myenv.Clone() |
7 sdlenv.ParseConfig('sh sdl-config --cflags --libs') |
7 sdlenv.ParseConfig('sh sdl-config --cflags --libs') |
8 |
8 |
9 l = [] |
9 l = [] |
10 image_obj = myenv.Object('image.c', CC="$CXX") |
|
11 l.append( image_obj ) |
|
12 l.append( sdlenv.Program(['realtime.cc']) ) |
10 l.append( sdlenv.Program(['realtime.cc']) ) |
13 l.append( sdlenv.Program(['realtime_bunny.cc']) ) |
11 l.append( sdlenv.Program(['realtime_bunny.cc']) ) |
14 l.append( sdlenv.Program(['realtime_dragon.cc']) ) |
12 l.append( sdlenv.Program(['realtime_dragon.cc']) ) |
15 l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj) ) |
13 l.append( sdlenv.Program(['spheres_shadow.cc']) ) |
16 l.append( sdlenv.Program(['textures.cc']+image_obj) ) |
14 l.append( sdlenv.Program(['textures.cc']) ) |
17 |
15 |
18 myenv.Alias('cc-demos', l) |
16 myenv.Alias('cc-demos', l) |