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-03-01 01:03:16 +00:00
|
|
|
#export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --prefix `pwd`"
|
2009-02-06 20:04:37 +00:00
|
|
|
|
|
|
|
#Optimized, but a devbuild
|
2009-03-01 06:31:33 +00:00
|
|
|
export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --prefix `pwd`"
|
2009-02-06 20:04:37 +00:00
|
|
|
|
2009-03-01 09:47:16 +00:00
|
|
|
#Debug / Devbuild version
|
|
|
|
#export PCSX2OPTIONS="--enable-debug --enable-devbuild --enable-sse3 --prefix `pwd`"
|
2009-03-01 08:21:14 +00:00
|
|
|
|
2009-03-01 09:47:16 +00:00
|
|
|
#Optimized, but a devbuild - with memcpy_fast_ enabled. - BROKEN!
|
2009-03-01 08:21:14 +00:00
|
|
|
#export PCSX2OPTIONS="--enable-sse3 --enable-sse4 --enable-devbuild --enable-memcpyfast --prefix `pwd`"
|
|
|
|
|
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."
|
|
|
|
echo "Note: will not compile on Linux x64."
|
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."
|
|
|
|
echo "Note: will not compile on Linux x64."
|
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
|