-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
59 lines (50 loc) · 1.34 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env bash
set -e
#remove that for a build server
export CFLAGS+="-march=native -mtune=native"
export CXXFLAGS+="$CFLAGS"
STARTDIR=`pwd`
TARGETDIR="$STARTDIR/release"
mkdir -p release
MPROJECTS=(mupen64plus-core mupen64plus-input-sdl mupen64plus-audio-sdl mupen64plus-rsp-hle mupen64plus-rsp-cxd4)
for p in "${MPROJECTS[@]}"
do
git clone https://github.com/mupen64plus/$p || true
cd $p
git pull
cd projects/unix
make clean
make -j`nproc` all V=1 SHAREDIR="." NEW_DYNAREC=1
mv *.so* "$TARGETDIR"
cd "$STARTDIR"
done
cp mupen64plus-input-sdl/data/* "$TARGETDIR"
cp mupen64plus-core/data/* "$TARGETDIR"
git clone https://github.com/mupen64plus/mupen64plus-ui-console
cd mupen64plus-ui-console
git pull
cd projects/unix
make clean
make -j`nproc` all V=1 SHAREDIR="." PREFIX="." LIBDIR="." PLUGINDIR="."
mv mupen64plus "$TARGETDIR"
cd "$STARTDIR"
git clone https://github.com/ata4/angrylion-rdp-plus.git || true
cd angrylion-rdp-plus
git pull
mkdir -p build
cd build
cmake ..
make clean
make -j`nproc` VERBOSE=1
mv *.so* "$TARGETDIR"
cd "$STARTDIR"
git clone https://github.com/gonetz/GLideN64.git || true
cd GLideN64
git pull
sh src/getRevision.sh
cd projects/cmake/
cmake -DVEC4_OPT=On -DMUPENPLUSAPI=On -DUSE_SYSTEM_LIBS=On ../../src/
make clean
make -j`nproc` VERBOSE=1
mv plugin/Release/*.so* "$TARGETDIR"
cp ../../ini/* "$TARGETDIR"