parameters: (targets)
return_statement: return targets
docstring: Clone all targets and append -iphoneos to the name. Configure these targets
    to build for iOS devices.
docstring_summary: Clone all targets and append -iphoneos to the name. Configure these targets
    to build for iOS devices.
docstring_tokens: Clone all targets and append - iphoneos to the name . Configure these targets to build for iOS devices .
function: def _AddIOSDeviceConfigurations(targets):
    """Clone all targets and append -iphoneos to the name. Configure these targets
    to build for iOS devices."""
    for target_dict in targets.values():
      for config_name in target_dict['configurations'].keys():
        config = target_dict['configurations'][config_name]
        new_config_name = config_name + '-iphoneos'
        new_config_dict = copy.deepcopy(config)
        if target_dict['toolset'] == 'target':
          new_config_dict['xcode_settings']['ARCHS'] = ['armv7']
          new_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
        target_dict['configurations'][new_config_name] = new_config_dict
    return targets
function_tokens: def _AddIOSDeviceConfigurations ( targets ) : for target_dict in targets . values ( ) : for config_name in target_dict [ 'configurations' ] . keys ( ) : config = target_dict [ 'configurations' ] [ config_name ] new_config_name = config_name + '-iphoneos' new_config_dict = copy . deepcopy ( config ) if target_dict [ 'toolset' ] == 'target' : new_config_dict [ 'xcode_settings' ] [ 'ARCHS' ] = [ 'armv7' ] new_config_dict [ 'xcode_settings' ] [ 'SDKROOT' ] = 'iphoneos' target_dict [ 'configurations' ] [ new_config_name ] = new_config_dict return targets