Blackberry: Simulator build script.

This commit is contained in:
Sacha 2013-11-26 12:23:47 +10:00
parent 95881bdaac
commit 8fc0531c13

15
Blackberry/simulator_build.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
BB_OS=`cat ${QNX_TARGET}/etc/qversion 2>/dev/null`
if [ -z "$BB_OS" ]; then
echo "Could not find your Blackberry NDK. Please source bbndk-env.sh"
exit 1
fi
echo "Building for Blackberry ${BB_OS} Simulator"
# Set up cmake with GCC 4.6.3 cross-compiler from PATH
CC=ntox86-gcc CXX=ntox86-g++ cmake -DSIMULATOR=ON -DBLACKBERRY=${BB_OS} ..
# Compile and create unsigned PPSSPP.bar with debugtoken
DEBUG="-devMode -debugToken ${HOME}/debugtoken.bar"
make -j4 && blackberry-nativepackager -package PPSSPP.bar bar-descriptor.xml $DEBUG