ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Wed, 09 Apr 2008 17:55:29 +0200
branchpyrit
changeset 64 5785cca4cdb9
parent 63 440e1ae80459
child 65 242839c6d27d
permissions -rw-r--r--
add Help with list of targets to SConstruct

Import('env lib')
env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib', LIBS='pyrit')

import os
SDL_CCFLAGS = os.popen('sdl-config --cflags').read()
SDL_LDFLAGS = os.popen('sdl-config --libs').read()
sdlenv = env.Clone()
sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS)

l = []
image_obj = env.Object('image.c', CC="$CXX")
l.append( image_obj )
l.append( sdlenv.Program(['realtime.cc']) )
l.append( sdlenv.Program(['realtime_bunny.cc']) )
l.append( sdlenv.Program(['realtime_dragon.cc']) )
l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj, LIBS="$LIBS:png") )
l.append( sdlenv.Program(['textures.cc']+image_obj, LIBS="$LIBS:png") )

env.Alias('cc-demos', l)