ppsspp/b.sh
Sacha 7821c8e7d5 Build scripts: Use strict error checking to propogate errors to underlying shell (hint: travis).
Stops builds from showing success when there was an error.
Had to workaround grep's issue of returning '1' when there is no matches. There is unfortunately no alternative.
Removed bin/bash header as it could restrict alternative shells.
Used set -e to break script whenever a non-zero return is encountered.
CMake was returning non-zero on CMAKE_TOOLCHAIN_FILE not being required. Now check for that in CMake instead of platform/abi. If the abi is missing and toolchain is not, that would have been the wrong advice anyway.
2013-12-01 22:02:09 +10:00

15 lines
268 B
Bash
Executable File

# Strict errors. Any non-zero return exits this script
set -e
cp -r android/assets .
mkdir -p build
if [[ "$1" == "--headless" ]]; then
HEADLESS="-DHEADLESS=ON"
else
MAKE_OPT="$1"
fi
pushd build
cmake $HEADLESS .. | (grep -v "^-- " || true)
make -j4 $MAKE_OPT
popd