| author | Radek Brich <radek.brich@devl.cz> | 
| Wed, 23 Apr 2008 10:38:33 +0200 | |
| branch | pyrit | 
| changeset 78 | 9569e9f35374 | 
| parent 65 | 242839c6d27d | 
| child 84 | 6f7fe14782c2 | 
| 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')
 | 
| 65 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 2 | env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib') | 
| 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 3 | env.Prepend(LIBS=['pyrit','png']) | 
| 60 | 4 | |
| 5 | sdlenv = env.Clone() | |
| 65 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 6 | sdlenv.ParseConfig('sh sdl-config --cflags --libs')
 | 
| 60 | 7 | |
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 8 | l = [] | 
| 60 | 9 | 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 | 10 | l.append( image_obj ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 11 | l.append( sdlenv.Program(['realtime.cc']) ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 12 | l.append( sdlenv.Program(['realtime_bunny.cc']) ) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 13 | l.append( sdlenv.Program(['realtime_dragon.cc']) ) | 
| 65 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 14 | l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj) ) | 
| 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 15 | l.append( sdlenv.Program(['textures.cc']+image_obj) ) | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 16 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
61diff
changeset | 17 | env.Alias('cc-demos', l)
 |