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

Method GetMachOType

tools/gyp/pylib/gyp/xcode_emulation.py:427–437  ·  view source on GitHub ↗

Returns the MACH_O_TYPE of this target.

(self)

Source from the content-addressed store, hash-verified

425 }[self.spec["type"]]
426
427 def GetMachOType(self):
428 """Returns the MACH_O_TYPE of this target."""
429 # Weird, but matches Xcode.
430 if not self._IsBundle() and self.spec["type"] == "executable":
431 return ""
432 return {
433 "executable": "mh_execute",
434 "static_library": "staticlib",
435 "shared_library": "mh_dylib",
436 "loadable_module": "mh_bundle",
437 }[self.spec["type"]]
438
439 def _GetBundleBinaryPath(self):
440 """Returns the name of the bundle binary of by this target.

Callers 1

_GetXcodeEnvFunction · 0.80

Calls 1

_IsBundleMethod · 0.95

Tested by

no test coverage detected