1 |
#!/bin/sh |
2 |
|
3 |
# Usage: sh build.sh [option] |
4 |
# option can be all (rebuilds everything), clean, or nothing (incremental build) |
5 |
# Modify the individual build.sh for specific program options like debug symbols |
6 |
#This is just for building the plugins; pcsx2 is build using codeblocks. |
7 |
|
8 |
|
9 |
#ZeroGS Normal mode |
10 |
export ZEROGSOPTIONS="--enable-sse2" |
11 |
|
12 |
#ZeroGS Debug mode |
13 |
#export ZEROGSOPTIONS="--enable-debug --enable-devbuild --enable-sse2" |
14 |
|
15 |
#ZeroSPU2 Debug mode (Don't enable right now) |
16 |
#export ZEROSPU2OPTIONS="--enable-debug --enable-devbuild" |
17 |
|
18 |
#GSnull debug options. |
19 |
#export GSnullOPTIONS="--enable-debug" |
20 |
|
21 |
option=$@ |
22 |
export PCSX2PLUGINS="`pwd`/bin/plugins" |
23 |
curdir=`pwd` |
24 |
|
25 |
echo |
26 |
echo "Building the Pcsx2 Plugins." |
27 |
echo "Note: binaries generated are 32 bit, and require 32 bit versions of all dependencies." |
28 |
cd ${curdir}/plugins |
29 |
sh build.sh $option |
30 |
|
31 |
if [ $? -ne 0 ] |
32 |
then |
33 |
echo Error with building plugins |
34 |
exit 1 |
35 |
fi |