diff -r c005054bf4c1 -r 50a994a57849 demos/SConscript --- a/demos/SConscript Sun May 31 23:06:03 2009 +0200 +++ b/demos/SConscript Wed Aug 19 09:18:29 2009 +0200 @@ -1,4 +1,4 @@ -Import('pymodule') +Import('pymodule cc') env = Environment() env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)}) @@ -19,15 +19,16 @@ env.Alias('python-demos', l) -# MS Visual Studio Project -vcprojmisc = [] -for file in files: - vcprojmisc += ['demos/' + file] -vcproj = env.MSVSProject( - auto_build_solution=0, - target = '#pyrit_demos' + env['MSVSPROJECTSUFFIX'], - misc = vcprojmisc, - buildtarget = 'python-demos', - variant = 'Release') +if cc == 'msvc': + # MS Visual Studio Project + vcprojmisc = [] + for file in files: + vcprojmisc += ['demos/' + file] + vcproj = env.MSVSProject( + auto_build_solution=0, + target = '#pyrit_demos' + env['MSVSPROJECTSUFFIX'], + misc = vcprojmisc, + buildtarget = 'python-demos', + variant = 'Release') -Return('vcproj') + Return('vcproj')