src/SConscript
branchpyrit
changeset 101 50a994a57849
parent 100 c005054bf4c1
child 104 2274a07510c1
--- 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: