ccdemos/SConscript
author Radek Brich <radek.brich@devl.cz>
Tue, 08 Apr 2008 01:05:12 +0200
branchpyrit
changeset 60 a23b5089b9c3
child 61 7006036eb0db
permissions -rw-r--r--
moving to SCons build system

Import('objs')

env = Environment(CPPPATH = ['.','#include'])

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']+objs)
sdlenv.Program(['realtime_bunny.cc']+objs)
sdlenv.Program(['realtime_dragon.cc']+objs)
sdlenv.Program(['spheres_shadow.cc']+objs+image_obj, LIBS="png")
sdlenv.Program(['textures.cc']+objs+image_obj, LIBS="png")