blob: 14ffb1091b7d30e93117c50a7eb3f62872380c4d (
plain)
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
104
105
|
ERRORFILE=/xbmc/project/Win32BuildSetup/errormingw
NOPFILE=/xbmc/project/Win32BuildSetup/noprompt
MAKECLEANFILE=/xbmc/project/Win32BuildSetup/makeclean
TOUCH=/bin/touch
RM=/bin/rm
NOPROMPT=0
MAKECLEAN=""
MAKEFLAGS=""
function throwerror ()
{
$TOUCH $ERRORFILE
echo failed to compile $1
if [ $NOPROMPT == 0 ]; then
read
fi
}
function setfilepath ()
{
FILEPATH=$1
}
function checkfiles ()
{
for i in $@; do
FILE=$FILEPATH/$i
if [ ! -f $FILE ]; then
throwerror "$FILE"
exit 1
fi
done
}
# cleanup
if [ -f $ERRORFILE ]; then
$RM $ERRORFILE
fi
# check for noprompt
if [ -f $NOPFILE ]; then
$RM $NOPFILE
NOPROMPT=1
fi
if [ -f $MAKECLEANFILE ]; then
$RM $MAKECLEANFILE
MAKECLEAN="clean"
fi
if [ $NUMBER_OF_PROCESSORS > 1 ]; then
MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
fi
# compile our mingw dlls
echo "################################"
echo "## compiling mingw libs"
echo "## NOPROMPT = $NOPROMPT"
echo "## MAKECLEAN = $MAKECLEAN"
echo "################################"
echo "##### building ffmpeg dlls #####"
cd /xbmc/lib/ffmpeg/
sh ./build_xbmc_win32.sh $MAKECLEAN
setfilepath /xbmc/system/players/dvdplayer
checkfiles avcodec-52.dll avcore-0.dll avformat-52.dll avutil-50.dll postproc-51.dll swscale-0.dll avfilter-1.dll
echo "##### building of ffmpeg dlls done #####"
echo "##### building libdvd dlls #####"
cd /xbmc/lib/libdvd/
sh ./build-xbmc-win32.sh $MAKECLEAN
setfilepath /xbmc/system/players/dvdplayer
checkfiles libdvdcss-2.dll libdvdnav.dll
echo "##### building of libdvd dlls done #####"
echo "##### building libmpeg2 dlls #####"
cd /xbmc/lib/libmpeg2/
sh ./make-xbmc-lib-win32.sh $MAKECLEAN
setfilepath /xbmc/system/players/dvdplayer
checkfiles libmpeg2-0.dll
echo "##### building of libmpeg2 dlls done #####"
echo "##### building timidity dlls #####"
cd /xbmc/lib/timidity/
if [ "$MAKECLEAN" == "clean" ]; then
make -f Makefile.win32 clean
fi
make -f Makefile.win32 $MAKEFLAGS
setfilepath /xbmc/system/players/paplayer
checkfiles timidity.dll
echo "##### building of timidity dlls done #####"
echo "##### building asap dlls #####"
cd /xbmc/lib/asap/win32
sh ./build_xbmc_win32.sh $MAKECLEAN
setfilepath /xbmc/system/players/paplayer
checkfiles xbmc_asap.dll
echo "##### building of asap dlls done #####"
# wait for key press
if [ $NOPROMPT == 0 ]; then
echo press a key to close the window
read
fi
|