parameters: (env, libs = [], arch = None)
docstring: Prepares a given environment, by adding library dependencies.
docstring_summary: Prepares a given environment, by adding library dependencies.
docstring_tokens: Prepares a given environment by adding library dependencies .
function: def UseLibraries(env, libs = [], arch = None):
      """
      Prepares a given environment, by adding library dependencies.
      """
      # By default exclude host. If arch filter is set, apply it.
      if (not arch and env['ARCH'] == 'host') or (arch and env['ARCH'] != arch):
          return
  
      # Loop all required libraries.
      for lib in libs:
  
          # Add them to the include and linker path.
          env.Append(CPPPATH = [ '#lib/' + lib ])
          env.Append(LIBPATH = [ '#' + env['BUILDROOT'] + '/lib/' + lib ])
          env.Append(LIBS    = [ lib ])
function_tokens: def UseLibraries ( env , libs = [ ] , arch = None ) : # By default exclude host. If arch filter is set, apply it. if ( not arch and env [ 'ARCH' ] == 'host' ) or ( arch and env [ 'ARCH' ] != arch ) : return # Loop all required libraries. for lib in libs : # Add them to the include and linker path. env . Append ( CPPPATH = [ '#lib/' + lib ] ) env . Append ( LIBPATH = [ '#' + env [ 'BUILDROOT' ] + '/lib/' + lib ] ) env . Append ( LIBS = [ lib ] )