ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Wed, 09 Apr 2008 00:29:11 +0200
branchpyrit
changeset 61 7006036eb0db
parent 60 a23b5089b9c3
child 63 440e1ae80459
permissions -rw-r--r--
minor SConscript tweaking

Import('lib')

env = Environment(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)

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