2026-04-15 17:35:49 +03:00
|
|
|
default: build
|
|
|
|
|
|
2026-06-18 13:59:08 +03:00
|
|
|
# Build the module plugin via logos-module-builder (-> result/lib/).
|
|
|
|
|
build:
|
|
|
|
|
nix build
|
2026-04-15 17:35:49 +03:00
|
|
|
|
2026-06-18 13:59:08 +03:00
|
|
|
# Drop into the builder dev shell.
|
|
|
|
|
develop:
|
|
|
|
|
nix develop
|
|
|
|
|
|
|
|
|
|
# Inspect the built plugin's methods + metadata.
|
|
|
|
|
# lm result/lib/lez_indexer_module_plugin.so
|
|
|
|
|
# Call a method (indexer must be started first):
|
|
|
|
|
# logoscore -m result/lib -l lez_indexer_module -c "lez_indexer_module.getLastFinalizedBlockId()"
|
2026-04-15 17:35:49 +03:00
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -rf build result
|
|
|
|
|
|
|
|
|
|
prettify:
|
2026-06-18 13:59:08 +03:00
|
|
|
nix shell nixpkgs#clang-tools -c clang-format -i src/*.cpp src/*.h
|
2026-04-15 17:35:49 +03:00
|
|
|
|
|
|
|
|
unicode-logs file:
|
|
|
|
|
perl -pe 's/\\u([0-9A-Fa-f]{4})/chr(hex($1))/ge' {{file}} | less -R
|