MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_files

Method get_files

tools/system_libs.py:458–473  ·  view source on GitHub ↗

Get a list of source files for this library. Typically, you will use `src_dir`, `src_files`, `src_glob` and `src_glob_exclude`. If those are insufficient to describe the files needed, you can override this method.

(self)

Source from the content-addressed store, hash-verified

456 return '-l' + base.removeprefix('lib')
457
458 def get_files(self):
459 """Get a list of source files for this library.
460
461 Typically, you will use `src_dir`, `src_files`, `src_glob` and `src_glob_exclude`.
462 If those are insufficient to describe the files needed, you can override this method.
463 """
464 if self.src_dir:
465 if self.src_files and self.src_glob:
466 raise Exception('Cannot use src_files and src_glob together')
467
468 if self.src_files:
469 return files_in_path(self.src_dir, self.src_files)
470 elif self.src_glob:
471 return glob_in_path(self.src_dir, self.src_glob, self.src_glob_exclude)
472
473 raise NotImplementedError()
474
475 def generate_ninja(self, build_dir, libname):
476 ensure_sysroot()

Callers 2

generate_ninjaMethod · 0.95
build_objectsMethod · 0.95

Calls 2

files_in_pathFunction · 0.85
glob_in_pathFunction · 0.85

Tested by

no test coverage detected