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

Method _VariableMapping

tools/gyp/pylib/gyp/xcode_emulation.py:54–62  ·  view source on GitHub ↗

Returns the dictionary of variable mapping depending on the SDKROOT.

(self, sdkroot)

Source from the content-addressed store, hash-verified

52 self._archs = {"mac": mac, "ios": iphoneos, "iossim": iphonesimulator}
53
54 def _VariableMapping(self, sdkroot):
55 """Returns the dictionary of variable mapping depending on the SDKROOT."""
56 sdkroot = sdkroot.lower()
57 if "iphoneos" in sdkroot:
58 return self._archs["ios"]
59 elif "iphonesimulator" in sdkroot:
60 return self._archs["iossim"]
61 else:
62 return self._archs["mac"]
63
64 def _ExpandArchs(self, archs, sdkroot):
65 """Expands variables references in ARCHS, and remove duplicates."""

Callers 1

_ExpandArchsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected