diff -r f3abdaa2e8fb -r c005054bf4c1 ccdemos/SConscript --- a/ccdemos/SConscript Sun May 31 16:53:05 2009 +0200 +++ b/ccdemos/SConscript Sun May 31 23:06:03 2009 +0200 @@ -3,12 +3,32 @@ myenv.Append(LIBPATH=['#build/lib']) myenv.Prepend(LIBS=['pyrit']) +demos = [ + 'realtime.cc', 'realtime_bunny.cc', 'realtime_dragon.cc', + 'spheres_shadow.cc', 'textures.cc'] + +includes = ['common_sdl.h', 'common_ply.h'] + l = [] if have_sdl: - l.append( myenv.Program(['realtime.cc']) ) - l.append( myenv.Program(['realtime_bunny.cc']) ) - l.append( myenv.Program(['realtime_dragon.cc']) ) - l.append( myenv.Program(['spheres_shadow.cc']) ) - l.append( myenv.Program(['textures.cc']) ) + for src in demos: + l.append( myenv.Program(src) ) 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') + +Return('vcproj')