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

Function get_source_files

ci/wasm_unity_generator.py:49–62  ·  view source on GitHub ↗

Get all .cpp source files from src/ directory.

()

Source from the content-addressed store, hash-verified

47
48
49def get_source_files() -> list[Path]:
50 """Get all .cpp source files from src/ directory."""
51 src_dir = PROJECT_ROOT / "src"
52 sources: list[Path] = []
53 for cpp_file in src_dir.rglob("*.cpp"):
54 # Exclude entry_point.cpp (compiled separately for sketches)
55 if cpp_file.name == "entry_point.cpp":
56 continue
57 # Exclude test files
58 if "test" in cpp_file.parts:
59 continue
60 sources.append(cpp_file.resolve())
61
62 return sorted(sources) # Sort for deterministic ordering
63
64
65def chunk_sources(sources: list[Path], num_chunks: int) -> list[list[Path]]:

Callers 2

generate_unity_buildsFunction · 0.70
list_unity_groupsFunction · 0.70

Calls 2

appendMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected