parameters: (env)
docstring: Add Builders and construction variables for ar to an Environment.
docstring_summary: Add Builders and construction variables for ar to an Environment.
docstring_tokens: Add Builders and construction variables for ar to an Environment .
function: def generate(env):
      """Add Builders and construction variables for ar to an Environment."""
      SCons.Tool.createStaticLibBuilder(env)
      
      if env.Detect('CC'):
          env['AR']          = 'CC'
          env['ARFLAGS']     = SCons.Util.CLVar('-xar')
          env['ARCOM']       = '$AR $ARFLAGS -o $TARGET $SOURCES'
      else:
          env['AR']          = 'ar'
          env['ARFLAGS']     = SCons.Util.CLVar('r')
          env['ARCOM']       = '$AR $ARFLAGS $TARGET $SOURCES'
  
      env['LIBPREFIX']   = 'lib'
      env['LIBSUFFIX']   = '.a'
function_tokens: def generate ( env ) : SCons . Tool . createStaticLibBuilder ( env ) if env . Detect ( 'CC' ) : env [ 'AR' ] = 'CC' env [ 'ARFLAGS' ] = SCons . Util . CLVar ( '-xar' ) env [ 'ARCOM' ] = '$AR $ARFLAGS -o $TARGET $SOURCES' else : env [ 'AR' ] = 'ar' env [ 'ARFLAGS' ] = SCons . Util . CLVar ( 'r' ) env [ 'ARCOM' ] = '$AR $ARFLAGS $TARGET $SOURCES' env [ 'LIBPREFIX' ] = 'lib' env [ 'LIBSUFFIX' ] = '.a'