Files
waozi 719ab49118 Size the text index to each language
The index had a fixed number of entries: past it a language lost the
index and every text read the whole language file. It is now allocated
for the keys each language actually has, with its slots at most half
full, so a lookup is one or two probes and no language can outgrow it.
Replaces the 8192-entry limit and its capacity test.
2026-10-19 01:33:12 -03:00

34 lines
1016 B
Makefile

# Build laws: the version, proof and locale checks every artifact build runs first.
.PHONY: asset-text-tests
asset-text-tests:
@python3 tests/font_glyph_coverage_test.py
@python3 tests/locale_keys_test.py
@python3 tests/settings_keys_test.py
.PHONY: version-check
version-check:
python3 scripts/check-version.py
# Laws are checked by the Ziran compiler on every invocation. `ziran check`
# exits nonzero on any disproved or unwaived unknown law.
.PHONY: proofs build-laws
proofs: $(ZI2C_BIN)
@for module in $(LAW_MODULES); do \
$(ZIRAN_BIN) check --root src --module-path $(KRYON_DIR)/src/ui \
--module-path $(ZIRAN_DIR)/std $$module > /dev/null || exit 1; \
done
build-laws: version-check proofs locale-check
.PHONY: locale-check
locale-check: asset-text-tests locale-translated-test locale-used-keys-test
.PHONY: locale-used-keys-test
locale-used-keys-test:
@python3 tests/locale_used_keys_test.py
.PHONY: locale-translated-test
locale-translated-test:
@python3 tests/locale_translated_test.py