Main entry point for library-organized source collection.
()
| 49 | |
| 50 | |
| 51 | def main() -> None: |
| 52 | """Main entry point for library-organized source collection.""" |
| 53 | if len(sys.argv) != 1: |
| 54 | print("Usage: collect_sources_by_library.py", file=sys.stderr) |
| 55 | print("Outputs sources organized by library", file=sys.stderr) |
| 56 | sys.exit(1) |
| 57 | |
| 58 | # Discover sources for each library |
| 59 | for library_name, directories in SOURCE_LIBRARIES.items(): |
| 60 | for dir_path, recursive in directories: |
| 61 | sources = discover_sources(dir_path, "*.cpp", recursive) |
| 62 | for source in sources: |
| 63 | # Output in format: LIBRARY:<library_name>:<file_path> |
| 64 | print(f"LIBRARY:{library_name}:{source}") |
| 65 | |
| 66 | |
| 67 | if __name__ == "__main__": |
no test coverage detected