parameters: (self, configname=None)
return_statement: return items
docstring: Returns a dictionary with extra items to insert into Info.plist.
docstring_summary: Returns a dictionary with extra items to insert into Info.plist.
docstring_tokens: Returns a dictionary with extra items to insert into Info . plist .
function: def GetExtraPlistItems(self, configname=None):
      """Returns a dictionary with extra items to insert into Info.plist."""
      if configname not in XcodeSettings._plist_cache:
        cache = {}
        cache['BuildMachineOSBuild'] = self._BuildMachineOSBuild()
  
        xcode, xcode_build = XcodeVersion()
        cache['DTXcode'] = xcode
        cache['DTXcodeBuild'] = xcode_build
        compiler = self.xcode_settings[configname].get('GCC_VERSION')
        if compiler is not None:
          cache['DTCompiler'] = compiler
  
        sdk_root = self._SdkRoot(configname)
        if not sdk_root:
          sdk_root = self._DefaultSdkRoot()
        sdk_version = self._GetSdkVersionInfoItem(sdk_root, '--show-sdk-version')
        cache['DTSDKName'] = sdk_root + (sdk_version or '')
        if xcode >= '0720':
          cache['DTSDKBuild'] = self._GetSdkVersionInfoItem(
              sdk_root, '--show-sdk-build-version')
        elif xcode >= '0430':
          cache['DTSDKBuild'] = sdk_version
        else:
          cache['DTSDKBuild'] = cache['BuildMachineOSBuild']
  
        if self.isIOS:
          cache['MinimumOSVersion'] = self.xcode_settings[configname].get(
              'IPHONEOS_DEPLOYMENT_TARGET')
          cache['DTPlatformName'] = sdk_root
          cache['DTPlatformVersion'] = sdk_version
  
          if configname.endswith("iphoneos"):
            cache['CFBundleSupportedPlatforms'] = ['iPhoneOS']
            cache['DTPlatformBuild'] = cache['DTSDKBuild']
          else:
            cache['CFBundleSupportedPlatforms'] = ['iPhoneSimulator']
            # This is weird, but Xcode sets DTPlatformBuild to an empty field
            # for simulator builds.
            cache['DTPlatformBuild'] = ""
        XcodeSettings._plist_cache[configname] = cache
  
      # Include extra plist items that are per-target, not per global
      # XcodeSettings.
      items = dict(XcodeSettings._plist_cache[configname])
      if self.isIOS:
        items['UIDeviceFamily'] = self._XcodeIOSDeviceFamily(configname)
      return items
function_tokens: def GetExtraPlistItems ( self , configname = None ) : if configname not in XcodeSettings . _plist_cache : cache = { } cache [ 'BuildMachineOSBuild' ] = self . _BuildMachineOSBuild ( ) xcode , xcode_build = XcodeVersion ( ) cache [ 'DTXcode' ] = xcode cache [ 'DTXcodeBuild' ] = xcode_build compiler = self . xcode_settings [ configname ] . get ( 'GCC_VERSION' ) if compiler is not None : cache [ 'DTCompiler' ] = compiler sdk_root = self . _SdkRoot ( configname ) if not sdk_root : sdk_root = self . _DefaultSdkRoot ( ) sdk_version = self . _GetSdkVersionInfoItem ( sdk_root , '--show-sdk-version' ) cache [ 'DTSDKName' ] = sdk_root + ( sdk_version or '' ) if xcode >= '0720' : cache [ 'DTSDKBuild' ] = self . _GetSdkVersionInfoItem ( sdk_root , '--show-sdk-build-version' ) elif xcode >= '0430' : cache [ 'DTSDKBuild' ] = sdk_version else : cache [ 'DTSDKBuild' ] = cache [ 'BuildMachineOSBuild' ] if self . isIOS : cache [ 'MinimumOSVersion' ] = self . xcode_settings [ configname ] . get ( 'IPHONEOS_DEPLOYMENT_TARGET' ) cache [ 'DTPlatformName' ] = sdk_root cache [ 'DTPlatformVersion' ] = sdk_version if configname . endswith ( "iphoneos" ) : cache [ 'CFBundleSupportedPlatforms' ] = [ 'iPhoneOS' ] cache [ 'DTPlatformBuild' ] = cache [ 'DTSDKBuild' ] else : cache [ 'CFBundleSupportedPlatforms' ] = [ 'iPhoneSimulator' ] # This is weird, but Xcode sets DTPlatformBuild to an empty field # for simulator builds. cache [ 'DTPlatformBuild' ] = "" XcodeSettings . _plist_cache [ configname ] = cache # Include extra plist items that are per-target, not per global # XcodeSettings. items = dict ( XcodeSettings . _plist_cache [ configname ] ) if self . isIOS : items [ 'UIDeviceFamily' ] = self . _XcodeIOSDeviceFamily ( configname ) return items