yambs.generate.ninja
index
/home/vkottler/src/vkottler/workspace/yambs/yambs/generate/ninja/__init__.py

A module for working with ninja syntax.

 
Package Contents
       
format

 
Functions
       
variant_phony(stream: <class 'TextIO'>, elfs_list: list[pathlib.Path], uf2_family: str = None, wasm: bool = False)
Write variant-specific phony targets.
write_continuation(stream: <class 'TextIO'>, offset: str) -> None
Write a line continuation.
write_generated_phony(stream: <class 'TextIO'>, sources: yambs.environment.SourceSets, src_root: pathlib.Path) -> None
Write generated-file phony target.
write_link(stream: <class 'TextIO'>, output: pathlib.Path, entry_object: pathlib.Path, outputs: Set[pathlib.Path], wasm: bool = False) -> None
Write a 'link' rule.
write_link_line(stream: <class 'TextIO'>, source: pathlib.Path, base: pathlib.Path, board: yambs.config.board.Board, sources: yambs.environment.SourceSets) -> None
Write a ninja configuration line for an application requiring linking.
write_link_lines(stream: <class 'TextIO'>, src_root: pathlib.Path, board: yambs.config.board.Board, sources: yambs.environment.SourceSets) -> None
Write the application manifest and phony targets.
write_phony(stream: <class 'TextIO'>, app_srcs: Set[pathlib.Path], base: pathlib.Path, board: str) -> None
Write the phony target.
write_source_line(stream: <class 'TextIO'>, source: pathlib.Path, base: pathlib.Path, current_sources: Set[pathlib.Path], board: yambs.config.board.Board, translator: yambs.translation.SourceTranslator, board_specific: bool = False) -> pathlib.Path
Write a ninja configuration line for a source file.

 
Data
        BUILD_DIR_VAR = '$build_dir'
Set = typing.Set
linesep = '\n'