def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
  # The xcode generator special-cases global xcode_settings and does something
  # that amounts to merging in the global xcode_settings into each local
  # xcode_settings dict.
  global_xcode_settings = global_dict.get('xcode_settings', {})
  for config in spec['configurations'].values():
    if 'xcode_settings' in config:
      new_settings = global_xcode_settings.copy()
      new_settings.update(config['xcode_settings'])
      config['xcode_settings'] = new_settings
Merges the global xcode_settings dictionary into each configuration of the
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xcode_emulation.py/MergeGlobalXcodeSettingsToSpec