ios/build/tools/setup-gn.py
def _GetGnArgs(self, extra_args=None):
    """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 = []

    # build/config/ios/ios_sdk.gni asserts that goma is not enabled when
    # building Official, so ignore the value of goma.enabled when creating
    # args.gn for Official.
    if self._config != 'Official':
      if self._settings.getboolean('goma', 'enabled'):
        args.append(('use_goma', True))
        goma_dir = self._settings.getstring('goma', 'install')
        if goma_dir:
          args.append(('goma_dir', '"%s"' % os.path.expanduser(goma_dir)))

    is_debug = self._config == 'Debug'
    official = self._config == 'Official'
    is_optim = self._config in ('Profile', 'Official')

    args.append(('target_os', '"ios"'))
    args.append(('is_debug', is_debug))
    args.append(('enable_dsyms', is_optim))
    args.append(('enable_stripping', is_optim))
    args.append(('is_official_build', is_optim))
    args.append(('is_chrome_branded', official))

    if os.environ.get('FORCE_MAC_TOOLCHAIN', '0') == '1':
      args.append(('use_system_xcode', False))

    args.append(('target_cpu', self.TARGET_CPU_VALUES[self._target]))
    args.append((
        'target_environment',
        self.TARGET_ENVIRONMENT_VALUES[self._target]))

    # If extra arguments are passed to the function, pass them before the
    # user overrides (if any).
    if extra_args is not None:
      args.extend(extra_args)

    # 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
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).
    
Build the list of arguments to pass to gn.
Build the list of arguments to pass to gn .
def _GetGnArgs(self, extra_args=None):
    args = []
    if self._config != 'Official':
      if self._settings.getboolean('goma', 'enabled'):
        args.append(('use_goma', True))
        goma_dir = self._settings.getstring('goma', 'install')
        if goma_dir:
          args.append(('goma_dir', '"%s"' % os.path.expanduser(goma_dir)))
    is_debug = self._config == 'Debug'
    official = self._config == 'Official'
    is_optim = self._config in ('Profile', 'Official')
    args.append(('target_os', '"ios"'))
    args.append(('is_debug', is_debug))
    args.append(('enable_dsyms', is_optim))
    args.append(('enable_stripping', is_optim))
    args.append(('is_official_build', is_optim))
    args.append(('is_chrome_branded', official))
    if os.environ.get('FORCE_MAC_TOOLCHAIN', '0') == '1':
      args.append(('use_system_xcode', False))
    args.append(('target_cpu', self.TARGET_CPU_VALUES[self._target]))
    args.append((
        'target_environment',
        self.TARGET_ENVIRONMENT_VALUES[self._target]))
    if extra_args is not None:
      args.extend(extra_args)
    args.extend(self._settings.items('gn_args'))
    return args
def _GetGnArgs ( self , extra_args = None ) : args = [ ] if self . _config != 'Official' : if self . _settings . getboolean ( 'goma' , 'enabled' ) : args . append ( ( 'use_goma' , True ) ) goma_dir = self . _settings . getstring ( 'goma' , 'install' ) if goma_dir : args . append ( ( 'goma_dir' , '"%s"' % os . path . expanduser ( goma_dir ) ) ) is_debug = self . _config == 'Debug' official = self . _config == 'Official' is_optim = self . _config in ( 'Profile' , 'Official' ) args . append ( ( 'target_os' , '"ios"' ) ) args . append ( ( 'is_debug' , is_debug ) ) args . append ( ( 'enable_dsyms' , is_optim ) ) args . append ( ( 'enable_stripping' , is_optim ) ) args . append ( ( 'is_official_build' , is_optim ) ) args . append ( ( 'is_chrome_branded' , official ) ) if os . environ . get ( 'FORCE_MAC_TOOLCHAIN' , '0' ) == '1' : args . append ( ( 'use_system_xcode' , False ) ) args . append ( ( 'target_cpu' , self . TARGET_CPU_VALUES [ self . _target ] ) ) args . append ( ( 'target_environment' , self . TARGET_ENVIRONMENT_VALUES [ self . _target ] ) ) if extra_args is not None : args . extend ( extra_args ) args . extend ( self . _settings . items ( 'gn_args' ) ) return args
Build the list of arguments to pass to gn.
Build the list of arguments to pass to gn .
"""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).
    """ # build/config/ios/ios_sdk.gni asserts that goma is not enabled when # building Official, so ignore the value of goma.enabled when creating # args.gn for Official. # If extra arguments are passed to the function, pass them before the # user overrides (if any). # Add user overrides after the other configurations so that they can # refer to them and override them.
A list of tuple containing gn variable names and variable values (it
is not a dictionary as the order needs to be preserved).
A list of tuple containing gn variable names and variable values ( it is not a dictionary as the order needs to be preserved ) .
self
extra_args