ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Sun, 31 May 2009 23:06:03 +0200
branchpyrit
changeset 100 c005054bf4c1
parent 95 ca7d4c665531
child 101 50a994a57849
permissions -rw-r--r--
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()

Import('env sdlenv have_sdl lib')
myenv = sdlenv.Clone()
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:
	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')