parameters: (self)
return_statement: return args
docstring: Build the list of arguments to pass to gn.
  
          Returns:
              A list of tuple containing gn variable names and variable values (it
              is not a dictionary as the order needs to be preserved).
docstring_summary: Build the list of arguments to pass to gn.
docstring_tokens: Build the list of arguments to pass to gn .
function: def _GetGnArgs(self):
          """Build the list of arguments to pass to gn.
  
          Returns:
              A list of tuple containing gn variable names and variable values (it
              is not a dictionary as the order needs to be preserved).
          """
          args = []
  
          args.append(('is_debug', self._config in ('Debug', 'Coverage')))
  
          if os.environ.get('FORCE_MAC_TOOLCHAIN', '0') == '1':
              args.append(('use_system_xcode', False))
  
          cpu_values = self.TARGET_CPU_VALUES[self._target]
          build_arch = self._settings.getstring('build', 'arch')
          if build_arch == 'fat':
              target_cpu = cpu_values[self.FAT_BUILD_DEFAULT_ARCH]
              args.append(('target_cpu', target_cpu))
              args.append(
                  ('additional_target_cpus',
                   [cpu for cpu in cpu_values.itervalues() if cpu != target_cpu]))
          else:
              args.append(('target_cpu', cpu_values[build_arch]))
  
          # Add user overrides after the other configurations so that they can
          # refer to them and override them.
          args.extend(self._settings.items('gn_args'))
          return args
function_tokens: def _GetGnArgs ( self ) : args = [ ] args . append ( ( 'is_debug' , self . _config in ( 'Debug' , 'Coverage' ) ) ) if os . environ . get ( 'FORCE_MAC_TOOLCHAIN' , '0' ) == '1' : args . append ( ( 'use_system_xcode' , False ) ) cpu_values = self . TARGET_CPU_VALUES [ self . _target ] build_arch = self . _settings . getstring ( 'build' , 'arch' ) if build_arch == 'fat' : target_cpu = cpu_values [ self . FAT_BUILD_DEFAULT_ARCH ] args . append ( ( 'target_cpu' , target_cpu ) ) args . append ( ( 'additional_target_cpus' , [ cpu for cpu in cpu_values . itervalues ( ) if cpu != target_cpu ] ) ) else : args . append ( ( 'target_cpu' , cpu_values [ build_arch ] ) ) # Add user overrides after the other configurations so that they can # refer to them and override them. args . extend ( self . _settings . items ( 'gn_args' ) ) return args