| author | Radek Brich <radek.brich@devl.cz> | 
| Wed, 09 Apr 2008 16:51:14 +0200 | |
| branch | pyrit | 
| changeset 63 | 440e1ae80459 | 
| parent 61 | 7006036eb0db | 
| child 65 | 242839c6d27d | 
| permissions | -rw-r--r-- | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 1 | Import('env lib')
 | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 2 | env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib', LIBS='pyrit') | 
| 60 | 3 | |
| 4 | import os | |
| 5 | SDL_CCFLAGS = os.popen('sdl-config --cflags').read()
 | |
| 6 | SDL_LDFLAGS = os.popen('sdl-config --libs').read()
 | |
| 7 | sdlenv = env.Clone() | |
| 8 | sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS) | |
| 9 | ||
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 10 | l = [] | 
| 60 | 11 | image_obj = env.Object('image.c', CC="$CXX")
 | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 12 | l.append( image_obj ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 13 | l.append( sdlenv.Program(['realtime.cc']) ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 14 | l.append( sdlenv.Program(['realtime_bunny.cc']) ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 15 | l.append( sdlenv.Program(['realtime_dragon.cc']) ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 16 | l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj, LIBS="$LIBS:png") ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 17 | l.append( sdlenv.Program(['textures.cc']+image_obj, LIBS="$LIBS:png") ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 18 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 19 | env.Alias('cc-demos', l)
 |