packetize Phong shader
new scons config options:
simd=(yes|no) - allow/suppress explicit SSE
force_flags=(yes|no) - force use of specified flags instead of autodetected
profile=(yes|no) - enable gcc's profiling (-pg option)
check for pthread.h header, don't try to build without it
add fourth Vector3 component for better memory aligning
rename Vector3 to Vector
partialy SSE-ize Vector class (only fully vertical operations)
build static lib and python module in distinctive directories
to avoid collision of library file names on some platforms
Import('pymodule')
env = Environment()
env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
files = [
'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py',
'spheres_ao.py', 'spheres_glass.py', 'spheres_shadow.py',
'triangles_monkey.py', 'triangles_sphere.py',
'objreader.py', 'plyreader.py', 'lworeader.py',
'vector.py', 'render_nff.py', 'demo_PIL.py']
l = []
for file in files:
l.append( env.Copy('#build/demos/'+file, file) )
import os
l.append( env.Copy('#build/demos/'+str(pymodule[0]).split(os.sep)[-1], str(pymodule[0])) )
env.Alias('python-demos', l)