Add a headless switch to b.sh.

This commit is contained in:
Sacha 2013-11-29 00:23:47 +10:00
parent 90b5097d45
commit 995d94da05
2 changed files with 7 additions and 2 deletions

View File

@ -37,7 +37,7 @@ before_install:
script:
# Compile PPSSPP
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then mkdir build-travis && cd build-travis && cmake -DHEADLESS=ON .. && make && cd ..; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./b.sh --headless; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then pushd android && ./ab.sh && popd; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Blackberry" ]; then pushd Blackberry && ./build.sh --no-package && popd; fi

7
b.sh
View File

@ -1,3 +1,8 @@
cp -r android/assets .
mkdir -p build
(cd build; cmake .. && make -j3 $1; cd ..)
if [[ "$1" == "--headless" ]]; then
HEADLESS="-DHEADLESS=ON"
else
MAKE_OPT="$1"
fi
(cd build; cmake $HEADLESS .. && make -j3 $MAKE_OPT; cd ..)