parameters: (product_dir, xcode_settings, resources)
docstring: Yields (output, resource) pairs for every resource in |resources|.
    Only call this for mac bundle targets.
  
    Args:
        product_dir: Path to the directory containing the output bundle,
            relative to the build directory.
        xcode_settings: The XcodeSettings of the current target.
        resources: A list of bundle resources, relative to the build directory.
docstring_summary: Yields (output, resource) pairs for every resource in |resources|.
    Only call this for mac bundle targets.
docstring_tokens: Yields ( output resource ) pairs for every resource in |resources| . Only call this for mac bundle targets .
function: def GetMacBundleResources(product_dir, xcode_settings, resources):
      """Yields (output, resource) pairs for every resource in |resources|.
    Only call this for mac bundle targets.
  
    Args:
        product_dir: Path to the directory containing the output bundle,
            relative to the build directory.
        xcode_settings: The XcodeSettings of the current target.
        resources: A list of bundle resources, relative to the build directory.
    """
      dest = os.path.join(product_dir, xcode_settings.GetBundleResourceFolder())
      for res in resources:
          output = dest
  
          # The make generator doesn't support it, so forbid it everywhere
          # to keep the generators more interchangeable.
          assert " " not in res, "Spaces in resource filenames not supported (%s)" % res
  
          # Split into (path,file).
          res_parts = os.path.split(res)
  
          # Now split the path into (prefix,maybe.lproj).
          lproj_parts = os.path.split(res_parts[0])
          # If the resource lives in a .lproj bundle, add that to the destination.
          if lproj_parts[1].endswith(".lproj"):
              output = os.path.join(output, lproj_parts[1])
  
          output = os.path.join(output, res_parts[1])
          # Compiled XIB files are referred to by .nib.
          if output.endswith(".xib"):
              output = os.path.splitext(output)[0] + ".nib"
          # Compiled storyboard files are referred to by .storyboardc.
          if output.endswith(".storyboard"):
              output = os.path.splitext(output)[0] + ".storyboardc"
  
          yield output, res
function_tokens: def GetMacBundleResources ( product_dir , xcode_settings , resources ) : dest = os . path . join ( product_dir , xcode_settings . GetBundleResourceFolder ( ) ) for res in resources : output = dest # The make generator doesn't support it, so forbid it everywhere # to keep the generators more interchangeable. assert " " not in res , "Spaces in resource filenames not supported (%s)" % res # Split into (path,file). res_parts = os . path . split ( res ) # Now split the path into (prefix,maybe.lproj). lproj_parts = os . path . split ( res_parts [ 0 ] ) # If the resource lives in a .lproj bundle, add that to the destination. if lproj_parts [ 1 ] . endswith ( ".lproj" ) : output = os . path . join ( output , lproj_parts [ 1 ] ) output = os . path . join ( output , res_parts [ 1 ] ) # Compiled XIB files are referred to by .nib. if output . endswith ( ".xib" ) : output = os . path . splitext ( output ) [ 0 ] + ".nib" # Compiled storyboard files are referred to by .storyboardc. if output . endswith ( ".storyboard" ) : output = os . path . splitext ( output ) [ 0 ] + ".storyboardc" yield output , res