pokeplatinum/build.sh
2024-03-16 22:00:52 -07:00

21 lines
431 B
Bash
Executable File

#!/bin/sh
set -e
target="test"
if [ "$#" -ge 1 ]; then
target="$1"
shift
fi
# Set up env variable to show % of completion during ninja build
export NINJA_STATUS="[%p %f/%t] "
# Build the project
if [ "$target" = test ]; then
"${MESON:-meson}" test -C build "$@"
elif [ "$target" = rom ]; then
"${MESON:-meson}" compile -C build "pokeplatinum.us.nds"
else
"${MESON:-meson}" compile -C build "$target" "$@"
fi