parameters: (
          self, spec, extra_sources, prebuild, mac_bundle_depends
      )
return_statement: return stamp
docstring: Write out the Actions, Rules, and Copies steps.  Return a path
          representing the outputs of these steps.
docstring_summary: Write out the Actions, Rules, and Copies steps.  Return a path
          representing the outputs of these steps.
docstring_tokens: Write out the Actions Rules and Copies steps . Return a path representing the outputs of these steps .
function: def WriteActionsRulesCopies(
          self, spec, extra_sources, prebuild, mac_bundle_depends
      ):
          """Write out the Actions, Rules, and Copies steps.  Return a path
          representing the outputs of these steps."""
          outputs = []
          if self.is_mac_bundle:
              mac_bundle_resources = spec.get("mac_bundle_resources", [])[:]
          else:
              mac_bundle_resources = []
          extra_mac_bundle_resources = []
  
          if "actions" in spec:
              outputs += self.WriteActions(
                  spec["actions"], extra_sources, prebuild, extra_mac_bundle_resources
              )
          if "rules" in spec:
              outputs += self.WriteRules(
                  spec["rules"],
                  extra_sources,
                  prebuild,
                  mac_bundle_resources,
                  extra_mac_bundle_resources,
              )
          if "copies" in spec:
              outputs += self.WriteCopies(spec["copies"], prebuild, mac_bundle_depends)
  
          if "sources" in spec and self.flavor == "win":
              outputs += self.WriteWinIdlFiles(spec, prebuild)
  
          if self.xcode_settings and self.xcode_settings.IsIosFramework():
              self.WriteiOSFrameworkHeaders(spec, outputs, prebuild)
  
          stamp = self.WriteCollapsedDependencies("actions_rules_copies", outputs)
  
          if self.is_mac_bundle:
              xcassets = self.WriteMacBundleResources(
                  extra_mac_bundle_resources + mac_bundle_resources, mac_bundle_depends
              )
              partial_info_plist = self.WriteMacXCassets(xcassets, mac_bundle_depends)
              self.WriteMacInfoPlist(partial_info_plist, mac_bundle_depends)
  
          return stamp
function_tokens: def WriteActionsRulesCopies ( self , spec , extra_sources , prebuild , mac_bundle_depends ) : outputs = [ ] if self . is_mac_bundle : mac_bundle_resources = spec . get ( "mac_bundle_resources" , [ ] ) [ : ] else : mac_bundle_resources = [ ] extra_mac_bundle_resources = [ ] if "actions" in spec : outputs += self . WriteActions ( spec [ "actions" ] , extra_sources , prebuild , extra_mac_bundle_resources ) if "rules" in spec : outputs += self . WriteRules ( spec [ "rules" ] , extra_sources , prebuild , mac_bundle_resources , extra_mac_bundle_resources , ) if "copies" in spec : outputs += self . WriteCopies ( spec [ "copies" ] , prebuild , mac_bundle_depends ) if "sources" in spec and self . flavor == "win" : outputs += self . WriteWinIdlFiles ( spec , prebuild ) if self . xcode_settings and self . xcode_settings . IsIosFramework ( ) : self . WriteiOSFrameworkHeaders ( spec , outputs , prebuild ) stamp = self . WriteCollapsedDependencies ( "actions_rules_copies" , outputs ) if self . is_mac_bundle : xcassets = self . WriteMacBundleResources ( extra_mac_bundle_resources + mac_bundle_resources , mac_bundle_depends ) partial_info_plist = self . WriteMacXCassets ( xcassets , mac_bundle_depends ) self . WriteMacInfoPlist ( partial_info_plist , mac_bundle_depends ) return stamp