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