ccdemos/SConscript
branchpyrit
changeset 101 50a994a57849
parent 100 c005054bf4c1
child 104 2274a07510c1
equal deleted inserted replaced
100:c005054bf4c1 101:50a994a57849
     1 Import('env sdlenv have_sdl lib')
     1 Import('env sdlenv have_sdl lib cc')
     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 = [
     6 demos = [
    14 	for src in demos:
    14 	for src in demos:
    15 		l.append( myenv.Program(src) )
    15 		l.append( myenv.Program(src) )
    16 
    16 
    17 env.Alias('cc-demos', l)
    17 env.Alias('cc-demos', l)
    18 
    18 
    19 # MS Visual Studio Project
    19 if cc == 'msvc':
    20 vcprojsrcs = []
    20 	# MS Visual Studio Project
    21 for src in demos:
    21 	vcprojsrcs = []
    22 	vcprojsrcs += ['ccdemos/' + src]
    22 	for src in demos:
    23 vcprojincs = []
    23 		vcprojsrcs += ['ccdemos/' + src]
    24 for inc in includes:
    24 	vcprojincs = []
    25 	vcprojincs += ['ccdemos/' + inc]
    25 	for inc in includes:
    26 vcproj = env.MSVSProject(
    26 		vcprojincs += ['ccdemos/' + inc]
    27 	auto_build_solution=0,
    27 	vcproj = env.MSVSProject(
    28 	target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
    28 		auto_build_solution=0,
    29 	srcs = vcprojsrcs,
    29 		target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
    30 	incs = vcprojincs,
    30 		srcs = vcprojsrcs,
    31 	buildtarget = 'cc-demos',
    31 		incs = vcprojincs,
    32 	variant = 'Release')
    32 		buildtarget = 'cc-demos',
       
    33 		variant = 'Release')
    33 
    34 
    34 Return('vcproj')
    35 	Return('vcproj')