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

Function _VerifySourcesExist

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

Verifies that all source files exist on disk. Checks that all regular source files, i.e. not created at run time, exist on disk. Missing files cause needless recompilation but no otherwise visible errors. Arguments: sources: A recursive list of Filter/file names. root_

(sources, root_dir)

Source from the content-addressed store, hash-verified

3470
3471
3472def _VerifySourcesExist(sources, root_dir):
3473 """Verifies that all source files exist on disk.
3474
3475 Checks that all regular source files, i.e. not created at run time,
3476 exist on disk. Missing files cause needless recompilation but no otherwise
3477 visible errors.
3478
3479 Arguments:
3480 sources: A recursive list of Filter/file names.
3481 root_dir: The root directory for the relative path names.
3482 Returns:
3483 A list of source files that cannot be found on disk.
3484 """
3485 missing_sources = []
3486 for source in sources:
3487 if isinstance(source, MSVSProject.Filter):
3488 missing_sources.extend(_VerifySourcesExist(source.contents, root_dir))
3489 elif "$" not in source:
3490 full_path = os.path.join(root_dir, source)
3491 if not os.path.exists(full_path):
3492 missing_sources.append(full_path)
3493 return missing_sources
3494
3495
3496def _GetMSBuildSources(

Callers 2

_GenerateMSVSProjectFunction · 0.85
_GenerateMSBuildProjectFunction · 0.85

Calls 4

extendMethod · 0.45
joinMethod · 0.45
existsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected