mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
7821c8e7d5
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.
15 lines
268 B
Bash
Executable File
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
|