33 lines
1.0 KiB
Makefile
Raw Normal View History

default: build
2025-12-17 12:15:17 +01:00
configure:
2025-12-18 11:47:59 +01:00
test -n "${LOGOS_CPP_SDK_ROOT}" || (echo "LOGOS_CPP_SDK_ROOT not set" && exit 1)
test -n "${LOGOS_BLOCKCHAIN_ROOT}" || (echo "LOGOS_BLOCKCHAIN_ROOT not set" && exit 1)
cmake -S . -B build -G Ninja \
-DLOGOS_CPP_SDK_ROOT="${LOGOS_CPP_SDK_ROOT}" \
-DLOGOS_BLOCKCHAIN_ROOT="${LOGOS_BLOCKCHAIN_ROOT}" \
-DCOPY_PLUGIN_TO_SOURCE_DIR=ON
2025-12-17 12:15:17 +01:00
build:
2025-12-19 15:53:41 +01:00
cmake --build build --parallel --target liblogos-blockchain-module
2025-12-17 12:15:17 +01:00
update:
rm -rf build/logos_blockchain_src
rm -rf build/logos_stage
cmake --build build --parallel --target logos_blockchain_stage
cmake --build build --parallel --target logos_cargo_build
just build
2025-12-17 17:10:59 +01:00
2025-12-17 12:15:17 +01:00
clean:
2025-12-19 15:53:41 +01:00
rm -f build/liblogos-blockchain-module.so
rm -f liblogos-blockchain-module.so
rm -f liblogos-blockchain-module.log
clean-full: clean
2025-12-18 11:47:59 +01:00
rm -rf build
rebuild: clean configure build
run:
2025-12-19 15:53:41 +01:00
../logos-module-viewer/result/bin/logos-module-viewer --module liblogos-blockchain-module.so > liblogos-blockchain-module.log 2>&1