ccdemos/SConscript
branchpyrit
changeset 101 50a994a57849
parent 100 c005054bf4c1
child 104 2274a07510c1
--- a/ccdemos/SConscript	Sun May 31 23:06:03 2009 +0200
+++ b/ccdemos/SConscript	Wed Aug 19 09:18:29 2009 +0200
@@ -1,4 +1,4 @@
-Import('env sdlenv have_sdl lib')
+Import('env sdlenv have_sdl lib cc')
 myenv = sdlenv.Clone()
 myenv.Append(LIBPATH=['#build/lib'])
 myenv.Prepend(LIBS=['pyrit'])
@@ -16,19 +16,20 @@
 
 env.Alias('cc-demos', l)
 
-# MS Visual Studio Project
-vcprojsrcs = []
-for src in demos:
-	vcprojsrcs += ['ccdemos/' + src]
-vcprojincs = []
-for inc in includes:
-	vcprojincs += ['ccdemos/' + inc]
-vcproj = env.MSVSProject(
-	auto_build_solution=0,
-	target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
-	srcs = vcprojsrcs,
-	incs = vcprojincs,
-	buildtarget = 'cc-demos',
-	variant = 'Release')
+if cc == 'msvc':
+	# MS Visual Studio Project
+	vcprojsrcs = []
+	for src in demos:
+		vcprojsrcs += ['ccdemos/' + src]
+	vcprojincs = []
+	for inc in includes:
+		vcprojincs += ['ccdemos/' + inc]
+	vcproj = env.MSVSProject(
+		auto_build_solution=0,
+		target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
+		srcs = vcprojsrcs,
+		incs = vcprojincs,
+		buildtarget = 'cc-demos',
+		variant = 'Release')
 
-Return('vcproj')
+	Return('vcproj')