ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Wed, 09 Apr 2008 16:51:14 +0200
branchpyrit
changeset 63 440e1ae80459
parent 61 7006036eb0db
child 65 242839c6d27d
permissions -rw-r--r--
add many SCons targets (see DEVNOTES) make automatic model downloading work again remove Makefiles -- now obsolete and hardly maintainable

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)