# HG changeset patch # User Radek Brich # Date 1207693751 -7200 # Node ID 7006036eb0db34152d3cc432675b45a58d6d2f9a # Parent a23b5089b9c3c4963cee598981711d1f7a29e861 minor SConscript tweaking diff -r a23b5089b9c3 -r 7006036eb0db SConstruct --- a/SConstruct Tue Apr 08 01:05:12 2008 +0200 +++ b/SConstruct Wed Apr 09 00:29:11 2008 +0200 @@ -6,7 +6,7 @@ # float: -fsingle-precision-constant # double: -DPYRIT_DOUBLE -(objs,pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0) +(lib, pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0) -SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='objs') +SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='lib') SConscript('demos/SConscript', build_dir='build/demos', exports='pymodule') diff -r a23b5089b9c3 -r 7006036eb0db ccdemos/SConscript --- a/ccdemos/SConscript Tue Apr 08 01:05:12 2008 +0200 +++ b/ccdemos/SConscript Wed Apr 09 00:29:11 2008 +0200 @@ -1,6 +1,6 @@ -Import('objs') +Import('lib') -env = Environment(CPPPATH = ['.','#include']) +env = Environment(CPPPATH = ['.','#include'], LIBPATH='#build/lib', LIBS='pyrit') import os SDL_CCFLAGS = os.popen('sdl-config --cflags').read() @@ -9,8 +9,8 @@ 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") +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") diff -r a23b5089b9c3 -r 7006036eb0db src/SConscript --- a/src/SConscript Tue Apr 08 01:05:12 2008 +0200 +++ b/src/SConscript Wed Apr 09 00:29:11 2008 +0200 @@ -22,4 +22,6 @@ SHLIBPREFIX = '', CCFLAGS = '$CCFLAGS -Wno-write-strings') -Return('objs pymodule') +lib = env.StaticLibrary('pyrit', objs) + +Return('lib pymodule')