diff -r 64e456ab823d -r a23b5089b9c3 src/SConscript --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/SConscript Tue Apr 08 01:05:12 2008 +0200 @@ -0,0 +1,25 @@ +env = Environment(CPPPATH = '#include') + +import os +PY_CCFLAGS = os.popen('python-config --includes').read() +PY_LDFLAGS = os.popen('python-config --libs').read() +pyenv = env.Clone() +pyenv.Append(LINKFLAGS=PY_LDFLAGS, CCFLAGS=PY_CCFLAGS) +env.Append() + +sources = [ + 'raytracer.cc', 'scene.cc', 'sampler.cc', + 'container.cc', 'kdtree.cc', 'octree.cc', 'noise.cc'] + +objs = [] +shared_objs = [] +for src in sources: + objs.append( env.Object(src) ) + shared_objs.append( env.SharedObject(src) ) + +pymodule = pyenv.SharedLibrary( + ['raytracermodule.cc']+shared_objs, + SHLIBPREFIX = '', + CCFLAGS = '$CCFLAGS -Wno-write-strings') + +Return('objs pymodule')