| author | Radek Brich <radek.brich@devl.cz> | 
| Wed, 09 Apr 2008 17:55:29 +0200 | |
| branch | pyrit | 
| changeset 64 | 5785cca4cdb9 | 
| parent 63 | 440e1ae80459 | 
| child 65 | 242839c6d27d | 
| permissions | -rw-r--r-- | 
| 60 | 1  | 
Import('pymodule')
 | 
2  | 
||
3  | 
env = Environment()  | 
|
4  | 
env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
 | 
|
| 
62
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
5  | 
files = [  | 
| 
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
6  | 
'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py',  | 
| 
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
7  | 
'spheres_ao.py', 'spheres_glass.py', 'spheres_shadow.py',  | 
| 
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
8  | 
'triangles_monkey.py', 'triangles_sphere.py',  | 
| 
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
9  | 
'objreader.py', 'plyreader.py', 'lworeader.py']  | 
| 60 | 10  | 
|
| 
63
 
440e1ae80459
add many SCons targets (see DEVNOTES)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
62 
diff
changeset
 | 
11  | 
l = []  | 
| 
62
 
07c2f8084719
more SConscript tweaking, make model preparation work again
 
Radek Brich <radek.brich@devl.cz> 
parents: 
60 
diff
changeset
 | 
12  | 
for file in files:  | 
| 
63
 
440e1ae80459
add many SCons targets (see DEVNOTES)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
62 
diff
changeset
 | 
13  | 
	l.append( env.Copy('#build/demos/'+file, file) )
 | 
| 60 | 14  | 
|
| 
63
 
440e1ae80459
add many SCons targets (see DEVNOTES)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
62 
diff
changeset
 | 
15  | 
l.append( env.Copy('#build/demos/'+str(pymodule[0]).split('/')[-1], str(pymodule[0])) )
 | 
| 
 
440e1ae80459
add many SCons targets (see DEVNOTES)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
62 
diff
changeset
 | 
16  | 
|
| 
 
440e1ae80459
add many SCons targets (see DEVNOTES)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
62 
diff
changeset
 | 
17  | 
env.Alias('python-demos', l)
 |