--- a/src/SConscript Sun May 31 23:06:03 2009 +0200
+++ b/src/SConscript Wed Aug 19 09:18:29 2009 +0200
@@ -33,22 +33,24 @@
env.Alias('shared-objs', shared_objs)
env.Alias('python-module', 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')
+ if cc == 'msvc':
+ # 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'))
- Return(('pymodule', 'vcproj'))
+ Return('pymodule')
else:
objs = []
for src in sources: