parameters: (env)
docstring: Set up the given build environment to do LIBDEPS tracking.
docstring_summary: Set up the given build environment to do LIBDEPS tracking.
docstring_tokens: Set up the given build environment to do LIBDEPS tracking .
function: def setup_environment(env):
      """Set up the given build environment to do LIBDEPS tracking."""
  
      try:
          env['_LIBDEPS']
      except KeyError:
          env['_LIBDEPS'] = '$_LIBDEPS_LIBS'
  
      # TODO: remove this
      # this is a horrible horrible hack for 
      # for 32-bit solaris
      if "uname" in dir(os) and os.uname()[1] == "sun32b":
          env['_LIBDEPS_LIBS'] = get_libdeps_special_sun
      else:
          env['_LIBDEPS_LIBS'] = get_libdeps
  
      env['_LIBDEPS_OBJS'] = get_libdeps_objs
      env['_SYSLIBDEPS'] = ' ${_stripixes(LIBLINKPREFIX, SYSLIBDEPS, LIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)} '
      env['_SHLIBDEPS'] = '$SHLIBDEP_GROUP_START ${_concat(SHLIBDEPPREFIX, __env__.subst(_LIBDEPS, target=TARGET, source=SOURCE), SHLIBDEPSUFFIX, __env__, target=TARGET, source=SOURCE)} $SHLIBDEP_GROUP_END'
  
      env['LIBDEPS'] = SCons.Util.CLVar()
      env['SYSLIBDEPS'] = SCons.Util.CLVar()
      env.Append(LIBEMITTER=libdeps_emitter,
                 PROGEMITTER=libdeps_emitter,
                 SHLIBEMITTER=libdeps_emitter)
      env.Prepend(_LIBFLAGS=' $LINK_LIBGROUP_START $_LIBDEPS $LINK_LIBGROUP_END $_SYSLIBDEPS ')
      for builder_name in ('Program', 'SharedLibrary', 'LoadableModule'):
          try:
              update_scanner(env['BUILDERS'][builder_name])
          except KeyError:
              pass
function_tokens: def setup_environment ( env ) : try : env [ '_LIBDEPS' ] except KeyError : env [ '_LIBDEPS' ] = '$_LIBDEPS_LIBS' # TODO: remove this # this is a horrible horrible hack for  # for 32-bit solaris if "uname" in dir ( os ) and os . uname ( ) [ 1 ] == "sun32b" : env [ '_LIBDEPS_LIBS' ] = get_libdeps_special_sun else : env [ '_LIBDEPS_LIBS' ] = get_libdeps env [ '_LIBDEPS_OBJS' ] = get_libdeps_objs env [ '_SYSLIBDEPS' ] = ' ${_stripixes(LIBLINKPREFIX, SYSLIBDEPS, LIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)} ' env [ '_SHLIBDEPS' ] = '$SHLIBDEP_GROUP_START ${_concat(SHLIBDEPPREFIX, __env__.subst(_LIBDEPS, target=TARGET, source=SOURCE), SHLIBDEPSUFFIX, __env__, target=TARGET, source=SOURCE)} $SHLIBDEP_GROUP_END' env [ 'LIBDEPS' ] = SCons . Util . CLVar ( ) env [ 'SYSLIBDEPS' ] = SCons . Util . CLVar ( ) env . Append ( LIBEMITTER = libdeps_emitter , PROGEMITTER = libdeps_emitter , SHLIBEMITTER = libdeps_emitter ) env . Prepend ( _LIBFLAGS = ' $LINK_LIBGROUP_START $_LIBDEPS $LINK_LIBGROUP_END $_SYSLIBDEPS ' ) for builder_name in ( 'Program' , 'SharedLibrary' , 'LoadableModule' ) : try : update_scanner ( env [ 'BUILDERS' ] [ builder_name ] ) except KeyError : pass