forked from libretro/libretro-super
-
Notifications
You must be signed in to change notification settings - Fork 1
/
libretro-build-xdk1.sh
103 lines (93 loc) · 2.42 KB
/
libretro-build-xdk1.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/xdk1
FORMAT=_xdk
FORMAT_EXT=lib
MSVC_NAME=msvc-2003-xbox1
RELEASE_LTCG=Release_LTCG
RELEASE=Release
die()
{
echo $1
#exit 1
}
build_libretro_fba_cps1()
{
cd $BASE_DIR
if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (CPS1) ==="
cd libretro-fba/
cd svn-current/trunk
cd fbacores/cps1/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps1_libretro$FORMAT.${FORMAT_EXT}
fi
}
build_libretro_fba_cps2()
{
cd $BASE_DIR
if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (CPS2) ==="
cd libretro-fba/
cd svn-old/trunk
cd fbacores/cps2/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps2_libretro$FORMAT.${FORMAT_EXT}
fi
}
build_libretro_fba_neogeo()
{
cd $BASE_DIR
if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (NeoGeo) ==="
cd libretro-fba/
cd svn-current/trunk
cd fbacores/neogeo/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_neo_libretro$FORMAT.${FORMAT_EXT}
fi
}
build_libretro_fba()
{
cd $BASE_DIR
if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha ==="
cd libretro-fba/
cd svn-current/trunk
cd projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
build_libretro_fba_cps1
build_libretro_fba_cps2
build_libretro_fba_neogeo
else
echo "Final Burn Alpha not fetched, skipping ..."
fi
}
source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then
$1
else
#build_libretro_beetle_lynx
build_libretro_beetle_gba
build_libretro_beetle_ngp
build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx
build_libretro_mednafen_psx
build_libretro_beetle_vb
build_libretro_beetle_wswan
#build_libretro_beetle_bsnes
build_libretro_snes9x_next
build_libretro_genesis_plus_gx
build_libretro_fba
build_libretro_vba_next
build_libretro_fceumm
build_libretro_gambatte
build_libretro_nx
build_libretro_prboom
build_libretro_nestopia
build_libretro_tyrquake
fi