Files
lightgui_rust/Makefile
T
cnmcdee fb152b6e39 Extract widget registry (547 widgets) from lightgui sources
Data, not hand-written code: tools/extract_registry.py reads
widgets/common/registry.h and cross-checks it three ways - the
on-disk widgets/components/ dirs, widgets/tools/sections.py, and the
default_size() rule from gen_registry.py - failing on any drift.

Re-derived counts (lightgui eb0b5fc): 547 widgets, 11 sections;
families Gtk 102, Ind 250, Inst 66, Stock 37, T 90, X 2.
The survey Stock 38 / Inst 67 counted the shared non-widget
headers StockData.h / InstData.h; XGraph/XSpreadsheet form a sixth
family X (2) the survey family table omitted.

Includes the extraction harness: tools/common.py, extract_all.py,
check.py (make check re-derives tables from the C++ sources and
fails on drift), tools/README.md, and the top-level Makefile.
2026-11-29 05:46:02 +00:00

38 lines
1.3 KiB
Makefile

# lightgui_rust — generated data tables
# The widget registry, palette, property/event tables and indicator
# catalog are DATA extracted from the C++ sources in /opt/lightgui
# (repo https://github.com/cnmcdee/lightgui, HEAD eb0b5fc). They are
# never hand-edited: regenerate them with `make regen` and verify them
# against the sources with `make check`.
#
# make regen — re-run every extractor, rewriting data/*.json
# make check — re-derive every table from the C++ sources and fail
# if any data/*.json disagrees (drift detection)
# make check-<name> — check one table (registry|palette|props|events|indicators)
LIGHTGUI_SRC ?= /opt/lightgui
PY ?= python3
.PHONY: regen check check-registry check-palette check-props check-events check-indicators
regen:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/extract_all.py
check:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py
check-registry:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py registry
check-palette:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py palette
check-props:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py props
check-events:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py events
check-indicators:
LIGHTGUI_SRC=$(LIGHTGUI_SRC) $(PY) tools/check.py indicators