--- a/src/SConscript Sun May 31 16:53:05 2009 +0200
+++ b/src/SConscript Sun May 31 23:06:03 2009 +0200
@@ -4,6 +4,13 @@
'common.cc', 'raytracer.cc', 'sampler.cc', 'scene.cc',
'shapes.cc', 'material.cc', 'pixmap.cc', 'serialize.cc',
'container.cc', 'kdtree.cc', 'octree.cc']
+
+includes = [
+ 'common.h', 'container.h', 'kdtree.h', 'material.h',
+ 'matrix.h', 'mempool.h', 'octree.h', 'pixmap.h',
+ 'quaternion.h', 'raytracer.h', 'raytracermodule.h',
+ 'sampler.h', 'scene.h', 'serialize.h', 'shapes.h',
+ 'simd.h', 'vector.h']
if buildmodule:
shared_objs = []
@@ -25,7 +32,23 @@
pyenv.AddPostAction(pymodule, 'mt /nologo /manifest ${TARGET}.manifest /outputresource:$TARGET;2')
env.Alias('shared-objs', shared_objs)
env.Alias('python-module', pymodule)
- Return('pymodule')
+
+ # MS Visual Studio Project
+ vcprojsrcs = []
+ for src in sources+['raytracermodule.cc']:
+ vcprojsrcs += ['src/' + src]
+ vcprojincs = []
+ for inc in includes:
+ vcprojincs += ['include/' + inc]
+ vcproj = env.MSVSProject(
+ auto_build_solution=0,
+ target = '#pyrit_module' + env['MSVSPROJECTSUFFIX'],
+ srcs = vcprojsrcs,
+ incs = vcprojincs,
+ buildtarget = 'python-module',
+ variant = 'Release')
+
+ Return(('pymodule', 'vcproj'))
else:
objs = []
for src in sources: