| author | Radek Brich <radek.brich@devl.cz> | 
| Sun, 27 Apr 2008 14:19:37 +0200 | |
| branch | pyrit | 
| changeset 85 | 907a634e5c02 | 
| parent 72 | 7c3f38dff082 | 
| child 90 | f6a72eb99631 | 
| 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: 
60diff
changeset | 5 | files = [ | 
| 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
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: 
60diff
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: 
60diff
changeset | 8 | 'triangles_monkey.py', 'triangles_sphere.py', | 
| 72 
7c3f38dff082
kd-tree building - check all axes for best split, add additional shape-bbox check
 Radek Brich <radek.brich@devl.cz> parents: 
65diff
changeset | 9 | 'objreader.py', 'plyreader.py', 'lworeader.py', | 
| 
7c3f38dff082
kd-tree building - check all axes for best split, add additional shape-bbox check
 Radek Brich <radek.brich@devl.cz> parents: 
65diff
changeset | 10 | 'vector.py', 'render_nff.py'] | 
| 60 | 11 | |
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 12 | l = [] | 
| 62 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
changeset | 13 | for file in files: | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 14 | 	l.append( env.Copy('#build/demos/'+file, file) )
 | 
| 60 | 15 | |
| 65 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 16 | import os | 
| 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 17 | l.append( env.Copy('#build/demos/'+str(pymodule[0]).split(os.sep)[-1], str(pymodule[0])) )
 | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 18 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 19 | env.Alias('python-demos', l)
 |