mirror of
https://github.com/pret/pokeplatinum.git
synced 2024-11-23 13:59:53 +00:00
21 lines
431 B
Bash
Executable File
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
|