ccdemos/SConscript
branchpyrit
changeset 60 a23b5089b9c3
child 61 7006036eb0db
equal deleted inserted replaced
59:64e456ab823d 60:a23b5089b9c3
       
     1 Import('objs')
       
     2 
       
     3 env = Environment(CPPPATH = ['.','#include'])
       
     4 
       
     5 import os
       
     6 SDL_CCFLAGS = os.popen('sdl-config --cflags').read()
       
     7 SDL_LDFLAGS = os.popen('sdl-config --libs').read()
       
     8 sdlenv = env.Clone()
       
     9 sdlenv.Append(LINKFLAGS=SDL_LDFLAGS, CCFLAGS=SDL_CCFLAGS)
       
    10 
       
    11 image_obj = env.Object('image.c', CC="$CXX")
       
    12 sdlenv.Program(['realtime.cc']+objs)
       
    13 sdlenv.Program(['realtime_bunny.cc']+objs)
       
    14 sdlenv.Program(['realtime_dragon.cc']+objs)
       
    15 sdlenv.Program(['spheres_shadow.cc']+objs+image_obj, LIBS="png")
       
    16 sdlenv.Program(['textures.cc']+objs+image_obj, LIBS="png")