2024-03-30 02:48:24 +00:00
|
|
|
# https://just.systems/man/en/
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# List all available targets
|
|
|
|
list:
|
|
|
|
just --list
|
|
|
|
|
|
|
|
# Clean build artifacts
|
2024-03-30 02:48:24 +00:00
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Prepare meson for building
|
2024-06-24 20:37:01 +00:00
|
|
|
setup *OPTIONS:
|
|
|
|
meson setup build --prefix="$PWD/outputs/out" $mesonFlags {{ OPTIONS }}
|
2024-03-30 02:48:24 +00:00
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Build lix
|
2024-04-25 12:26:06 +00:00
|
|
|
build *OPTIONS:
|
|
|
|
meson compile -C build {{ OPTIONS }}
|
2024-03-30 02:48:24 +00:00
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
alias compile := build
|
2024-03-30 02:48:24 +00:00
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Install lix for local development
|
2024-04-25 12:26:06 +00:00
|
|
|
install *OPTIONS: (build OPTIONS)
|
2024-03-30 02:48:24 +00:00
|
|
|
meson install -C build
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Run tests
|
2024-03-30 02:48:24 +00:00
|
|
|
test *OPTIONS:
|
2024-05-23 22:54:04 +00:00
|
|
|
meson test -C build --print-errorlogs {{ OPTIONS }}
|
2024-08-01 03:37:27 +00:00
|
|
|
|
|
|
|
alias clang-tidy := lint
|
|
|
|
|
|
|
|
lint:
|
|
|
|
ninja -C build clang-tidy
|
|
|
|
|
|
|
|
alias clang-tidy-fix := lint-fix
|
|
|
|
|
|
|
|
lint-fix:
|
|
|
|
ninja -C build clang-tidy-fix
|