scripts: add compare_build_systems.py to compare ninja build files

Add a script that compares configure.py and CMake build systems by
parsing their generated build.ninja files. The script checks:
  - Per-file compilation flags (defines, warnings, optimization)
  - Link target sets (detect missing/extra targets)
  - Per-target linker flags and libraries

configure.py is treated as the baseline. CMake should match it.
Both systems are always configured into a temporary directory so the
user's build tree is never touched.

Usage:
  scripts/compare_build_systems.py -m dev   # single mode
  scripts/compare_build_systems.py          # all modes
  scripts/compare_build_systems.py --ci     # CI mode (strict)
This commit is contained in:
Ernest Zaslavsky
2026-03-26 16:47:01 +02:00
parent c575bbf1e8
commit d3972369a0

1442
scripts/compare_build_systems.py Executable file

File diff suppressed because it is too large Load Diff