MCPcopy Create free account
hub / github.com/FastLED/FastLED / list_unity_groups

Function list_unity_groups

ci/wasm_unity_generator.py:193–208  ·  view source on GitHub ↗

List what would be in each unity group without generating files.

(num_chunks: int)

Source from the content-addressed store, hash-verified

191
192
193def list_unity_groups(num_chunks: int) -> None:
194 """List what would be in each unity group without generating files."""
195 sources = get_source_files()
196 chunks = chunk_sources(sources, num_chunks)
197
198 print("Unity build configuration:")
199 print(f" Total sources: {len(sources)}")
200 print(f" Unity chunks: {len(chunks)}")
201 print()
202
203 for i, chunk in enumerate(chunks):
204 print(f"Unity chunk {i}: ({len(chunk)} files)")
205 for source in chunk:
206 rel_path = source.relative_to(PROJECT_ROOT)
207 print(f" - {rel_path}")
208 print()
209
210
211def main() -> int:

Callers 1

mainFunction · 0.85

Calls 3

chunk_sourcesFunction · 0.85
get_source_filesFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected