From db614ec5c13f07a8b88a3d20d7af8d1dad44f9aa Mon Sep 17 00:00:00 2001 From: jmo <jmo@wiback.org> Date: Wed, 19 Aug 2009 16:02:19 +0000 Subject: [PATCH] now senf could also be located in ../senf --- senfscons/senfutil.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/senfscons/senfutil.py b/senfscons/senfutil.py index a2b1ce8b6..4aae4da2e 100644 --- a/senfscons/senfutil.py +++ b/senfscons/senfutil.py @@ -64,6 +64,18 @@ def SetupForSENF(env): '${profile and "profile=1" or None}' ], CPPDEFINES = [ '${not(final) and "SENF_DEBUG" or None}' ] ) + #env.Default( + # env.AlwaysBuild( + # env.Command('senf/libsenf.a', [], [ 'scons -C %s $SENF_BUILDOPTS libsenf.a' % os.path.realpath('senf')]))) + elif os.path.exists('../senf'): + print "\nUsing SENF in '../senf'\n" + env.Append( LIBPATH = [ '../senf' ], + CPPPATH = [ '../senf/include' ], + SENF_BUILDOPTS = [ '${final and "final=1" or None}', + '${debug and "debug=1" or None}', + '${profile and "profile=1" or None}' ], + CPPDEFINES = [ '${not(final) and "SENF_DEBUG" or None}' ] ) + #env.Default( # env.AlwaysBuild( # env.Command('senf/libsenf.a', [], [ 'scons -C %s $SENF_BUILDOPTS libsenf.a' % os.path.realpath('senf')]))) -- GitLab