# c) check for a local SENF, set options accordingly and update that SENF if needed
def SetupForSENF(env):
- env.Append( LIBS = [ 'senf', 'iberty', 'boost_regex', 'boost_iostreams' ],
+ env.Append( LIBS = [ 'senf', 'readline', 'rt', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB' ],
+ BOOSTREGEXLIB = 'boost_regex',
+ BOOSTIOSTREAMSLIB = 'boost_iostreams',
CXXFLAGS = [ '-Wno-long-long',
'${"$CXXFLAGS_"+(final and "final" or "debug")}' ],
LINKFLAGS = [ '${"$LINKFLAGS_"+(final and "final" or "debug")}' ],
def parseLogOption(value):
stream, area, level = ( x.strip() for x in value.strip().split('|') )
stream = ''.join('(%s)' % x for x in stream.split('::') )
- if area : area = ''.join( '(%s)' % x for x in elts[1].split('::') )
+ if area : area = ''.join( '(%s)' % x for x in area.split('::') )
else : area = '(_)'
return '(( %s,%s,%s ))' % (stream,area,level)
env.Default(
env.AlwaysBuild(
- env.Command('senf/libsenf.a', [], [ 'scons -C senf $SENF_BUILDOPTS libsenf.a' ])))
+ env.Command('senf/libsenf.a', [], [ 'scons -C %s $SENF_BUILDOPTS libsenf.a' % os.path.realpath('senf')])))
else:
print '\nUsing global SENF\n'