ccdemos/SConscript
branchpyrit
changeset 100 c005054bf4c1
parent 95 ca7d4c665531
child 101 50a994a57849
equal deleted inserted replaced
99:f3abdaa2e8fb 100:c005054bf4c1
     1 Import('env sdlenv have_sdl lib')
     1 Import('env sdlenv have_sdl lib')
     2 myenv = sdlenv.Clone()
     2 myenv = sdlenv.Clone()
     3 myenv.Append(LIBPATH=['#build/lib'])
     3 myenv.Append(LIBPATH=['#build/lib'])
     4 myenv.Prepend(LIBS=['pyrit'])
     4 myenv.Prepend(LIBS=['pyrit'])
     5 
     5 
       
     6 demos = [
       
     7 	'realtime.cc', 'realtime_bunny.cc', 'realtime_dragon.cc',
       
     8 	'spheres_shadow.cc', 'textures.cc']
       
     9 
       
    10 includes = ['common_sdl.h', 'common_ply.h']
       
    11 
     6 l = []
    12 l = []
     7 if have_sdl:
    13 if have_sdl:
     8 	l.append( myenv.Program(['realtime.cc']) )
    14 	for src in demos:
     9 	l.append( myenv.Program(['realtime_bunny.cc']) )
    15 		l.append( myenv.Program(src) )
    10 	l.append( myenv.Program(['realtime_dragon.cc']) )
       
    11 	l.append( myenv.Program(['spheres_shadow.cc']) )
       
    12 	l.append( myenv.Program(['textures.cc']) )
       
    13 
    16 
    14 env.Alias('cc-demos', l)
    17 env.Alias('cc-demos', l)
       
    18 
       
    19 # MS Visual Studio Project
       
    20 vcprojsrcs = []
       
    21 for src in demos:
       
    22 	vcprojsrcs += ['ccdemos/' + src]
       
    23 vcprojincs = []
       
    24 for inc in includes:
       
    25 	vcprojincs += ['ccdemos/' + inc]
       
    26 vcproj = env.MSVSProject(
       
    27 	auto_build_solution=0,
       
    28 	target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
       
    29 	srcs = vcprojsrcs,
       
    30 	incs = vcprojincs,
       
    31 	buildtarget = 'cc-demos',
       
    32 	variant = 'Release')
       
    33 
       
    34 Return('vcproj')