parameters: (ctx, settings_name)
docstring: Helper function for loading the global apple settings
docstring_summary: Helper function for loading the global apple settings
docstring_tokens: Helper function for loading the global apple settings
function: def load_apple_arm_settings(ctx, settings_name):
      """ Helper function for loading the global apple settings """
  
      if hasattr(ctx, settings_name):
          return
  
      settings_file_names = [
          'common_arm_settings.json',
          '{}.json'.format(settings_name)
      ]
  
      settings_files = list()
      for root_node in ctx._get_settings_search_roots():
          for file_name in settings_file_names:
              settings_node = root_node.make_node(['_WAF_', 'apple', file_name])
              if os.path.exists(settings_node.abspath()):
                  settings_files.append(settings_node)
  
      settings = dict()
      for settings_file in settings_files:
          try:
              settings.update(ctx.parse_json_file(settings_file))
          except Exception as e:
              ctx.cry_file_error(str(e), settings_file.abspath())
  
      # For symroot need to have the full path so change the value from
      # relative path to a full path
      if 'SYMROOT' in settings:
          settings['SYMROOT'] = os.path.join(Context.launch_dir, settings['SYMROOT'])
  
      setattr(ctx, settings_name, settings)
function_tokens: def load_apple_arm_settings ( ctx , settings_name ) : if hasattr ( ctx , settings_name ) : return settings_file_names = [ 'common_arm_settings.json' , '{}.json' . format ( settings_name ) ] settings_files = list ( ) for root_node in ctx . _get_settings_search_roots ( ) : for file_name in settings_file_names : settings_node = root_node . make_node ( [ '_WAF_' , 'apple' , file_name ] ) if os . path . exists ( settings_node . abspath ( ) ) : settings_files . append ( settings_node ) settings = dict ( ) for settings_file in settings_files : try : settings . update ( ctx . parse_json_file ( settings_file ) ) except Exception as e : ctx . cry_file_error ( str ( e ) , settings_file . abspath ( ) ) # For symroot need to have the full path so change the value from # relative path to a full path if 'SYMROOT' in settings : settings [ 'SYMROOT' ] = os . path . join ( Context . launch_dir , settings [ 'SYMROOT' ] ) setattr ( ctx , settings_name , settings )