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

Function _GetModuleDefinition

tools/gyp/pylib/gyp/generator/msvs.py:1390–1406  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

1388
1389
1390def _GetModuleDefinition(spec):
1391 def_file = ""
1392 if spec["type"] in [
1393 "shared_library",
1394 "loadable_module",
1395 "executable",
1396 "windows_driver",
1397 ]:
1398 def_files = [s for s in spec.get("sources", []) if s.endswith(".def")]
1399 if len(def_files) == 1:
1400 def_file = _FixPath(def_files[0])
1401 elif def_files:
1402 raise ValueError(
1403 "Multiple module definition files in one target, target %s lists "
1404 "multiple .def files: %s" % (spec["target_name"], " ".join(def_files))
1405 )
1406 return def_file
1407
1408
1409def _ConvertToolsToExpectedForm(tools):

Callers 2

_FinalizeMSBuildSettingsFunction · 0.85

Calls 3

_FixPathFunction · 0.85
getMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected