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