25 lines
655 B
Makefile
Raw Normal View History

default: build
2025-12-17 12:15:17 +01:00
# Inside `nix develop` / `ws develop logos-blockchain-module` the module-builder
# provides LOGOS_CPP_SDK_ROOT and LOGOS_MODULE_BUILDER_ROOT — CMake picks them
# up automatically via the logos_module() macro, no explicit -D flags needed.
2025-12-17 12:15:17 +01:00
configure:
cmake -S . -B build -G Ninja
2025-12-17 12:15:17 +01:00
build: configure
cmake --build build --parallel --target liblogos_blockchain_module_module_plugin
2025-12-17 12:15:17 +01:00
clean:
2026-02-16 16:56:13 +01:00
rm -rf build result
2026-02-16 16:56:13 +01:00
rebuild: clean build
2025-12-20 09:08:46 +01:00
nix:
nix develop
prettify:
nix shell nixpkgs#clang-tools -c clang-format -i src/**.cpp src/**.h
unicode-logs file:
perl -pe 's/\\u([0-9A-Fa-f]{4})/chr(hex($1))/ge' {{file}} | less -R