demos/SConscript
author Radek Brich <radek.brich@devl.cz>
Wed, 09 Apr 2008 11:35:59 +0200
branchpyrit
changeset 62 07c2f8084719
parent 60 a23b5089b9c3
child 63 440e1ae80459
permissions -rw-r--r--
more SConscript tweaking, make model preparation work again
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     1
Import('pymodule')
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     2
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     3
env = Environment()
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     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
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    10
62
07c2f8084719 more SConscript tweaking, make model preparation work again
Radek Brich <radek.brich@devl.cz>
parents: 60
diff changeset
    11
for file in files:
07c2f8084719 more SConscript tweaking, make model preparation work again
Radek Brich <radek.brich@devl.cz>
parents: 60
diff changeset
    12
	env.Copy('#build/demos/'+file, file)
60
a23b5089b9c3 moving to SCons build system
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    13
62
07c2f8084719 more SConscript tweaking, make model preparation work again
Radek Brich <radek.brich@devl.cz>
parents: 60
diff changeset
    14
env.Copy('#build/demos/'+str(pymodule[0]).split('/')[-1], str(pymodule[0]))