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

Method HeadersPhase

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

Source from the content-addressed store, hash-verified

2617 return the_phase
2618
2619 def HeadersPhase(self):
2620 headers_phase = self.GetBuildPhaseByType(PBXHeadersBuildPhase)
2621 if headers_phase is None:
2622 headers_phase = PBXHeadersBuildPhase()
2623
2624 # The headers phase should come before the resources, sources, and
2625 # frameworks phases, if any.
2626 insert_at = len(self._properties["buildPhases"])
2627 for index, phase in enumerate(self._properties["buildPhases"]):
2628 if isinstance(
2629 phase,
2630 (
2631 PBXResourcesBuildPhase,
2632 PBXSourcesBuildPhase,
2633 PBXFrameworksBuildPhase,
2634 ),
2635 ):
2636 insert_at = index
2637 break
2638
2639 self._properties["buildPhases"].insert(insert_at, headers_phase)
2640 headers_phase.parent = self
2641
2642 return headers_phase
2643
2644 def ResourcesPhase(self):
2645 resources_phase = self.GetBuildPhaseByType(PBXResourcesBuildPhase)

Callers 1

AddHeaderToTargetFunction · 0.80

Calls 4

GetBuildPhaseByTypeMethod · 0.95
enumerateFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected