Returns the MACH_O_TYPE of this target.
(self)
| 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. |
no test coverage detected