author | Radek Brich <radek.brich@devl.cz> |
Fri, 02 May 2008 13:27:47 +0200 | |
branch | pyrit |
changeset 91 | 9d66d323c354 |
parent 88 | f7edb3b90816 |
child 92 | 9af5c039b678 |
permissions | -rw-r--r-- |
63
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
1 |
Import('env lib') |
84
6f7fe14782c2
prepare kd-tree traversal for packet tracing (4 rays at once)
Radek Brich <radek.brich@devl.cz>
parents:
65
diff
changeset
|
2 |
myenv = env.Clone() |
6f7fe14782c2
prepare kd-tree traversal for packet tracing (4 rays at once)
Radek Brich <radek.brich@devl.cz>
parents:
65
diff
changeset
|
3 |
myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib') |
88
f7edb3b90816
merge pixmap handling from sampler, material.h and ccdemos's image module to new Pixmap class
Radek Brich <radek.brich@devl.cz>
parents:
84
diff
changeset
|
4 |
myenv.Prepend(LIBS=['pyrit']) |
60 | 5 |
|
84
6f7fe14782c2
prepare kd-tree traversal for packet tracing (4 rays at once)
Radek Brich <radek.brich@devl.cz>
parents:
65
diff
changeset
|
6 |
sdlenv = myenv.Clone() |
91 | 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() |
|
60 | 13 |
|
63
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
14 |
l = [] |
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
15 |
l.append( sdlenv.Program(['realtime.cc']) ) |
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
16 |
l.append( sdlenv.Program(['realtime_bunny.cc']) ) |
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
17 |
l.append( sdlenv.Program(['realtime_dragon.cc']) ) |
88
f7edb3b90816
merge pixmap handling from sampler, material.h and ccdemos's image module to new Pixmap class
Radek Brich <radek.brich@devl.cz>
parents:
84
diff
changeset
|
18 |
l.append( sdlenv.Program(['spheres_shadow.cc']) ) |
f7edb3b90816
merge pixmap handling from sampler, material.h and ccdemos's image module to new Pixmap class
Radek Brich <radek.brich@devl.cz>
parents:
84
diff
changeset
|
19 |
l.append( sdlenv.Program(['textures.cc']) ) |
63
440e1ae80459
add many SCons targets (see DEVNOTES)
Radek Brich <radek.brich@devl.cz>
parents:
61
diff
changeset
|
20 |
|
84
6f7fe14782c2
prepare kd-tree traversal for packet tracing (4 rays at once)
Radek Brich <radek.brich@devl.cz>
parents:
65
diff
changeset
|
21 |
myenv.Alias('cc-demos', l) |