pokeplatinum/build.sh

21 lines
431 B
Bash
Raw Normal View History

#!/bin/sh
set -e
2023-07-18 17:58:03 +00:00
target="test"
if [ "$#" -ge 1 ]; then
target="$1"
shift
fi
2023-07-18 17:58:03 +00:00
# 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