demos/SConscript
branchpyrit
changeset 101 50a994a57849
parent 100 c005054bf4c1
child 104 2274a07510c1
equal deleted inserted replaced
100:c005054bf4c1 101:50a994a57849
     1 Import('pymodule')
     1 Import('pymodule cc')
     2 
     2 
     3 env = Environment()
     3 env = Environment()
     4 env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
     4 env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
     5 files = [
     5 files = [
     6 	'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py',
     6 	'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py',
    17 import os
    17 import os
    18 l.append( env.Copy('#build/demos/'+str(pymodule[0]).split(os.sep)[-1], str(pymodule[0])) )
    18 l.append( env.Copy('#build/demos/'+str(pymodule[0]).split(os.sep)[-1], str(pymodule[0])) )
    19 
    19 
    20 env.Alias('python-demos', l)
    20 env.Alias('python-demos', l)
    21 
    21 
    22 # MS Visual Studio Project
    22 if cc == 'msvc':
    23 vcprojmisc = []
    23 	# MS Visual Studio Project
    24 for file in files:
    24 	vcprojmisc = []
    25 	vcprojmisc += ['demos/' + file]
    25 	for file in files:
    26 vcproj = env.MSVSProject(
    26 		vcprojmisc += ['demos/' + file]
    27 	auto_build_solution=0,
    27 	vcproj = env.MSVSProject(
    28 	target = '#pyrit_demos' + env['MSVSPROJECTSUFFIX'],
    28 		auto_build_solution=0,
    29 	misc = vcprojmisc,
    29 		target = '#pyrit_demos' + env['MSVSPROJECTSUFFIX'],
    30 	buildtarget = 'python-demos',
    30 		misc = vcprojmisc,
    31 	variant = 'Release')
    31 		buildtarget = 'python-demos',
       
    32 		variant = 'Release')
    32 
    33 
    33 Return('vcproj')
    34 	Return('vcproj')