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-03-30 02:48:24 +00:00
|
|
|
setup:
|
2024-06-24 04:55:00 +00:00
|
|
|
meson setup build --prefix="$PWD/outputs/out" $mesonFlags
|
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 }}
|