parameters: (env)
docstring: Selects compiler and environment options based on platform name.
docstring_summary: Selects compiler and environment options based on platform name.
docstring_tokens: Selects compiler and environment options based on platform name .
function: def generate(env):
    """
    Selects compiler and environment options based on platform name.
    """
    # PLATFORM_TOOL_ERR is used to report messages back to the rest of the build
    # system. You can use them as error messages to the user.
    env.Replace(
      PLATFORM_TOOL_ERR = '',
    )
    if env.Dictionary().has_key('PLATFORM'):
      if platform_generators.has_key(env['PLATFORM']):
        platform_generators[env['PLATFORM']](env)
      else:
        env.Append(
          PLATFORM_TOOL_ERR = """
  PlatformTool error:
    Platform $$PLATFORM == '%s'
    isn't supported yet.
  """ % env['PLATFORM']
        )
    else:
      env.Append(
        PLATFORM_TOOL_ERR = """
  PlatformTool error:
    Couldn't obtain $$PLATFORM from environment.
  """
      )
function_tokens: def generate ( env ) : # PLATFORM_TOOL_ERR is used to report messages back to the rest of the build # system. You can use them as error messages to the user. env . Replace ( PLATFORM_TOOL_ERR = '' , ) if env . Dictionary ( ) . has_key ( 'PLATFORM' ) : if platform_generators . has_key ( env [ 'PLATFORM' ] ) : platform_generators [ env [ 'PLATFORM' ] ] ( env ) else : env . Append ( PLATFORM_TOOL_ERR = """
  PlatformTool error:
    Platform $$PLATFORM == '%s'
    isn't supported yet.
  """ % env [ 'PLATFORM' ] ) else : env . Append ( PLATFORM_TOOL_ERR = """
  PlatformTool error:
    Couldn't obtain $$PLATFORM from environment.
  """ )