(tools)
return tool_list
Convert tools to a form expected by Visual Studio.

  Arguments:
    tools: A dictionary of settings; the tool name is the key.
  Returns:
    A list of Tool objects.
Convert tools to a form expected by Visual Studio.
Convert tools to a form expected by Visual Studio .
def _ConvertToolsToExpectedForm(tools):
  """Convert tools to a form expected by Visual Studio.

  Arguments:
    tools: A dictionary of settings; the tool name is the key.
  Returns:
    A list of Tool objects.
  """
  tool_list = []
  for tool, settings in tools.iteritems():
    # Collapse settings with lists.
    settings_fixed = {}
    for setting, value in settings.iteritems():
      if type(value) == list:
        if ((tool == 'VCLinkerTool' and
             setting == 'AdditionalDependencies') or
            setting == 'AdditionalOptions'):
          settings_fixed[setting] = ' '.join(value)
        else:
          settings_fixed[setting] = ';'.join(value)
      else:
        settings_fixed[setting] = value
    # Add in this tool.
    tool_list.append(MSVSProject.Tool(tool, settings_fixed))
  return tool_list
def _ConvertToolsToExpectedForm ( tools ) : tool_list = [ ] for tool , settings in tools . iteritems ( ) : # Collapse settings with lists. settings_fixed = { } for setting , value in settings . iteritems ( ) : if type ( value ) == list : if ( ( tool == 'VCLinkerTool' and setting == 'AdditionalDependencies' ) or setting == 'AdditionalOptions' ) : settings_fixed [ setting ] = ' ' . join ( value ) else : settings_fixed [ setting ] = ';' . join ( value ) else : settings_fixed [ setting ] = value # Add in this tool. tool_list . append ( MSVSProject . Tool ( tool , settings_fixed ) ) return tool_list