mirror of
https://github.com/encounter/dtk-template.git
synced 2025-12-17 00:47:23 +00:00
Allow customizing progress report config arguments (#55)
* Update dtk, objdiff, sjiswrap, and wibo * Allow customizing progress report config arguments * Enable function reloc diffing in default configure.py * Update comment & disable data_value config by default --------- Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
@@ -206,6 +206,9 @@ class ProjectConfig:
|
||||
self.print_progress_categories: Union[bool, List[str]] = (
|
||||
True # Print additional progress categories in the CLI progress output
|
||||
)
|
||||
self.progress_report_args: Optional[List[str]] = (
|
||||
None # Flags to `objdiff-cli report generate`
|
||||
)
|
||||
|
||||
# Progress fancy printing
|
||||
self.progress_use_fancy: bool = False
|
||||
@@ -422,6 +425,7 @@ def generate_build_ninja(
|
||||
if config.linker_version is None:
|
||||
sys.exit("ProjectConfig.linker_version missing")
|
||||
n.variable("mw_version", Path(config.linker_version))
|
||||
n.variable("objdiff_report_args", make_flags_str(config.progress_report_args))
|
||||
n.newline()
|
||||
|
||||
###
|
||||
@@ -1203,7 +1207,7 @@ def generate_build_ninja(
|
||||
n.comment("Generate progress report")
|
||||
n.rule(
|
||||
name="report",
|
||||
command=f"{objdiff} report generate -o $out",
|
||||
command=f"{objdiff} report generate $objdiff_report_args -o $out",
|
||||
description="REPORT",
|
||||
)
|
||||
n.build(
|
||||
|
||||
Reference in New Issue
Block a user