ccdemos/SConscript
branchpyrit
changeset 84 6f7fe14782c2
parent 65 242839c6d27d
child 88 f7edb3b90816
equal deleted inserted replaced
83:e3a2a5b26abb 84:6f7fe14782c2
     1 Import('env lib')
     1 Import('env lib')
     2 env.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
     2 myenv = env.Clone()
     3 env.Prepend(LIBS=['pyrit','png'])
     3 myenv.Append(CPPPATH = ['.','#include'], LIBPATH='#build/lib')
       
     4 myenv.Prepend(LIBS=['pyrit','png'])
     4 
     5 
     5 sdlenv = env.Clone()
     6 sdlenv = myenv.Clone()
     6 sdlenv.ParseConfig('sh sdl-config --cflags --libs')
     7 sdlenv.ParseConfig('sh sdl-config --cflags --libs')
     7 
     8 
     8 l = []
     9 l = []
     9 image_obj = env.Object('image.c', CC="$CXX")
    10 image_obj = myenv.Object('image.c', CC="$CXX")
    10 l.append( image_obj )
    11 l.append( image_obj )
    11 l.append( sdlenv.Program(['realtime.cc']) )
    12 l.append( sdlenv.Program(['realtime.cc']) )
    12 l.append( sdlenv.Program(['realtime_bunny.cc']) )
    13 l.append( sdlenv.Program(['realtime_bunny.cc']) )
    13 l.append( sdlenv.Program(['realtime_dragon.cc']) )
    14 l.append( sdlenv.Program(['realtime_dragon.cc']) )
    14 l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj) )
    15 l.append( sdlenv.Program(['spheres_shadow.cc']+image_obj) )
    15 l.append( sdlenv.Program(['textures.cc']+image_obj) )
    16 l.append( sdlenv.Program(['textures.cc']+image_obj) )
    16 
    17 
    17 env.Alias('cc-demos', l)
    18 myenv.Alias('cc-demos', l)