MCPcopy Index your code
hub / github.com/nodejs/node / GetWrapperExtension

Method GetWrapperExtension

tools/gyp/pylib/gyp/xcode_emulation.py:262–284  ·  view source on GitHub ↗

Returns the bundle extension (.app, .framework, .plugin, etc). Only valid for bundles.

(self)

Source from the content-addressed store, hash-verified

260 return self.GetPerTargetSetting("FRAMEWORK_VERSION", default="A")
261
262 def GetWrapperExtension(self):
263 """Returns the bundle extension (.app, .framework, .plugin, etc). Only
264 valid for bundles."""
265 assert self._IsBundle()
266 if self.spec["type"] in ("loadable_module", "shared_library"):
267 default_wrapper_extension = {
268 "loadable_module": "bundle",
269 "shared_library": "framework",
270 }[self.spec["type"]]
271 wrapper_extension = self.GetPerTargetSetting(
272 "WRAPPER_EXTENSION", default=default_wrapper_extension
273 )
274 return "." + self.spec.get("product_extension", wrapper_extension)
275 elif self.spec["type"] == "executable":
276 if self._IsIosAppExtension() or self._IsIosWatchKitExtension():
277 return "." + self.spec.get("product_extension", "appex")
278 else:
279 return "." + self.spec.get("product_extension", "app")
280 else:
281 assert False, "Don't know extension for '{}', target '{}'".format(
282 self.spec["type"],
283 self.spec["target_name"],
284 )
285
286 def GetProductName(self):
287 """Returns PRODUCT_NAME."""

Callers 1

GetWrapperNameMethod · 0.95

Calls 6

_IsBundleMethod · 0.95
GetPerTargetSettingMethod · 0.95
_IsIosAppExtensionMethod · 0.95
getMethod · 0.65
formatMethod · 0.65

Tested by

no test coverage detected