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

Function _GetOutputTargetExt

tools/gyp/pylib/gyp/generator/msvs.py:1353–1367  ·  view source on GitHub ↗

Returns the extension for this target, including the dot If product_extension is specified, set target_extension to this to avoid MSB8012, returns None otherwise. Ignores any target_extension settings in the input files. Arguments: spec: The target dictionary containing the p

(spec)

Source from the content-addressed store, hash-verified

1351
1352
1353def _GetOutputTargetExt(spec):
1354 """Returns the extension for this target, including the dot
1355
1356 If product_extension is specified, set target_extension to this to avoid
1357 MSB8012, returns None otherwise. Ignores any target_extension settings in
1358 the input files.
1359
1360 Arguments:
1361 spec: The target dictionary containing the properties of the target.
1362 Returns:
1363 A string with the extension, or None
1364 """
1365 if target_extension := spec.get("product_extension"):
1366 return "." + target_extension
1367 return None
1368
1369
1370def _GetDefines(config):

Callers 1

_FinalizeMSBuildSettingsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected