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)
| 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() |
no test coverage detected