2009-02-06 20:04:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Usage: sh build.sh [option]
|
|
|
|
# option can be all (rebuilds everything), clean, or nothing (incremental build)
|
|
|
|
# Modify the individual build.sh for specific program options like debug symbols
|
|
|
|
# Uncomment if building by itself, rather then with all the plugins
|
|
|
|
|
|
|
|
#Normal
|
2009-04-29 11:47:05 +00:00
|
|
|
#export PCSX2OPTIONS="--prefix `pwd`"
|
2009-02-06 20:04:37 +00:00
|
|
|
|
|
|
|
#Optimized, but a devbuild
|
2009-04-29 11:47:05 +00:00
|
|
|
export PCSX2OPTIONS="--enable-devbuild --prefix `pwd`"
|
2009-02-06 20:04:37 +00:00
|
|
|
|
2009-03-01 09:47:16 +00:00
|
|
|
#Debug / Devbuild version
|
2009-04-29 11:47:05 +00:00
|
|
|
#export PCSX2OPTIONS="--enable-debug --enable-devbuild --prefix `pwd`"
|
2009-03-01 08:21:14 +00:00
|
|
|
|
2009-02-18 12:51:36 +00:00
|
|
|
#ZeroGS Normal mode
|
|
|
|
export ZEROGSOPTIONS="--enable-sse2"
|
|
|
|
|
|
|
|
#ZeroGS Debug mode
|
|
|
|
#export ZEROGSOPTIONS="--enable-debug --enable-devbuild --enable-sse2"
|
2009-02-06 20:04:37 +00:00
|
|
|
|
2009-02-20 03:22:19 +00:00
|
|
|
#ZeroSPU2 Debug mode (Don't enable right now)
|
|
|
|
#export ZEROSPU2OPTIONS="--enable-debug --enable-devbuild"
|
|
|
|
|
2009-02-06 20:04:37 +00:00
|
|
|
option=$@
|
|
|
|
export PCSX2PLUGINS="`pwd`/bin/plugins"
|
|
|
|
curdir=`pwd`
|
|
|
|
|
2009-02-27 04:54:07 +00:00
|
|
|
echo "Building the Pcsx2 Suite."
|
2009-05-11 10:44:12 +00:00
|
|
|
echo "Note: binaries generated are 32 bit, and require 32 bit versions of all dependencies."
|
2009-02-06 20:04:37 +00:00
|
|
|
cd ${curdir}/plugins
|
|
|
|
sh build.sh $option
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo Error with building plugins
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2009-02-27 04:54:07 +00:00
|
|
|
echo "Building Pcsx2."
|
2009-05-11 10:44:12 +00:00
|
|
|
echo "Note: binaries generated are 32 bit, and require 32 bit versions of all dependencies."
|
2009-02-06 20:04:37 +00:00
|
|
|
cd ${curdir}/pcsx2
|
|
|
|
sh build.sh $option
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo Error with building pcsx2
|
|
|
|
exit 1
|
|
|
|
fi
|