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
|
2009-09-09 10:02:12 +00:00
|
|
|
#This is just for building the plugins; pcsx2 is build using codeblocks.
|
2009-02-06 20:04:37 +00:00
|
|
|
|
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-05-23 11:57:28 +00:00
|
|
|
#GSnull debug options.
|
|
|
|
#export GSnullOPTIONS="--enable-debug"
|
|
|
|
|
2009-02-06 20:04:37 +00:00
|
|
|
option=$@
|
|
|
|
export PCSX2PLUGINS="`pwd`/bin/plugins"
|
|
|
|
curdir=`pwd`
|
|
|
|
|
2009-05-17 09:23:32 +00:00
|
|
|
echo
|
2009-09-09 10:02:12 +00:00
|
|
|
echo "Building the Pcsx2 Plugins."
|
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
|