MCPcopy Create free account
hub / github.com/nodejs/node / ResourcesPhase

Method ResourcesPhase

tools/gyp/pylib/gyp/xcodeproj_file.py:2644–2660  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2642 return headers_phase
2643
2644 def ResourcesPhase(self):
2645 resources_phase = self.GetBuildPhaseByType(PBXResourcesBuildPhase)
2646 if resources_phase is None:
2647 resources_phase = PBXResourcesBuildPhase()
2648
2649 # The resources phase should come before the sources and frameworks
2650 # phases, if any.
2651 insert_at = len(self._properties["buildPhases"])
2652 for index, phase in enumerate(self._properties["buildPhases"]):
2653 if isinstance(phase, (PBXSourcesBuildPhase, PBXFrameworksBuildPhase)):
2654 insert_at = index
2655 break
2656
2657 self._properties["buildPhases"].insert(insert_at, resources_phase)
2658 resources_phase.parent = self
2659
2660 return resources_phase
2661
2662 def SourcesPhase(self):
2663 sources_phase = self.GetBuildPhaseByType(PBXSourcesBuildPhase)

Callers 1

AddResourceToTargetFunction · 0.80

Calls 4

GetBuildPhaseByTypeMethod · 0.95
enumerateFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected