ISP/.justfile

73 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2024-10-22 20:31:51 +08:00
alias a := all
alias c := clean-build
alias b := build
alias r := run
# default target
default := "Visp_Pipeline"
# clean all outpu files
clean-all:
rm -rf build logs
# clean build output files
clean-build:
rm -rf ./build/*
2024-10-22 20:31:51 +08:00
# clean images
clean-img:
rm -rf ./logs/*.bmp
# build and run default target
all: build run
# clean and build
rebuild: clean-build build
# generate build files
generate:
cmake . -B ./build/ -G Ninja
# build default target
build: generate
ninja -C ./build/ {{default}}
# build all project
build-all: generate
cmake --build ./build/ -v
# build ISP target
build-Visp: generate
ninja -C ./build/ Visp
# build ISP Pipeline target
build-Visp_Pipeline: generate
ninja -C ./build/ Visp_Pipeline
# run default target
run:
exec "./build/{{default}}"
# run ISP
run-Visp:
./build/Visp
# run ISP Pipeline
run-Visp_Pipeline:
./build/Visp_Pipeline
# run default target with tracing wave
trace:
exec "./build/{{default}}" +trace
# run ISP with tracing wave
trace-Visp:
./build/Visp +trace
# run ISP Pipeline with tracing wave
trace-Visp_Pipeline:
2024-11-03 20:38:29 +08:00
./build/Visp_Pipeline +trace
test module: generate
ninja -C ./build/ {{module}}
exec "./build/{{module}}" +trace