parameters: (self, resources, bundle_depends)
return_statement: return xcassets
docstring: Writes ninja edges for 'mac_bundle_resources'.
docstring_summary: Writes ninja edges for 'mac_bundle_resources'.
docstring_tokens: Writes ninja edges for mac_bundle_resources .
function: def WriteMacBundleResources(self, resources, bundle_depends):
      """Writes ninja edges for 'mac_bundle_resources'."""
      xcassets = []
      for output, res in gyp.xcode_emulation.GetMacBundleResources(
          generator_default_variables['PRODUCT_DIR'],
          self.xcode_settings, map(self.GypPathToNinja, resources)):
        output = self.ExpandSpecial(output)
        if os.path.splitext(output)[-1] != '.xcassets':
          isBinary = self.xcode_settings.IsBinaryOutputFormat(self.config_name)
          self.ninja.build(output, 'mac_tool', res,
                           variables=[('mactool_cmd', 'copy-bundle-resource'), \
                                      ('binary', isBinary)])
          bundle_depends.append(output)
        else:
          xcassets.append(res)
      return xcassets
function_tokens: def WriteMacBundleResources ( self , resources , bundle_depends ) : xcassets = [ ] for output , res in gyp . xcode_emulation . GetMacBundleResources ( generator_default_variables [ 'PRODUCT_DIR' ] , self . xcode_settings , map ( self . GypPathToNinja , resources ) ) : output = self . ExpandSpecial ( output ) if os . path . splitext ( output ) [ - 1 ] != '.xcassets' : isBinary = self . xcode_settings . IsBinaryOutputFormat ( self . config_name ) self . ninja . build ( output , 'mac_tool' , res , variables = [ ( 'mactool_cmd' , 'copy-bundle-resource' ) , ( 'binary' , isBinary ) ] ) bundle_depends . append ( output ) else : xcassets . append ( res ) return xcassets