2 ERRORFILE=/xbmc/project/Win32BuildSetup/errormingw
3 NOPFILE=/xbmc/project/Win32BuildSetup/noprompt
4 MAKECLEANFILE=/xbmc/project/Win32BuildSetup/makeclean
11 function throwerror ()
14 echo failed to compile $1
15 if [ $NOPROMPT == 0 ]; then
20 function setfilepath ()
25 function checkfiles ()
29 if [ ! -f $FILE ]; then
37 if [ -f $ERRORFILE ]; then
42 if [ -f $NOPFILE ]; then
47 if [ -f $MAKECLEANFILE ]; then
52 if [ $NUMBER_OF_PROCESSORS > 1 ]; then
53 MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
56 # compile our mingw dlls
57 echo "################################"
58 echo "## compiling mingw libs"
59 echo "## NOPROMPT = $NOPROMPT"
60 echo "## MAKECLEAN = $MAKECLEAN"
61 echo "################################"
63 echo "##### building ffmpeg dlls #####"
65 sh ./build_xbmc_win32.sh $MAKECLEAN
66 setfilepath /xbmc/system/players/dvdplayer
67 checkfiles avcodec-54.dll avformat-54.dll avutil-52.dll postproc-52.dll swscale-2.dll avfilter-3.dll swresample-0.dll
68 echo "##### building of ffmpeg dlls done #####"
70 echo "##### building libdvd dlls #####"
72 sh ./build-xbmc-win32.sh $MAKECLEAN
73 setfilepath /xbmc/system/players/dvdplayer
74 checkfiles libdvdcss-2.dll libdvdnav.dll
75 echo "##### building of libdvd dlls done #####"
77 echo "##### building libmpeg2 dlls #####"
78 cd /xbmc/lib/libmpeg2/
79 sh ./make-xbmc-lib-win32.sh $MAKECLEAN
80 setfilepath /xbmc/system/players/dvdplayer
81 checkfiles libmpeg2-0.dll
82 echo "##### building of libmpeg2 dlls done #####"
84 echo "##### building timidity dlls #####"
85 cd /xbmc/lib/timidity/
86 if [ "$MAKECLEAN" == "clean" ]; then
87 make -f Makefile.win32 clean
89 make -f Makefile.win32 $MAKEFLAGS
90 setfilepath /xbmc/system/players/paplayer
91 checkfiles timidity.dll
92 echo "##### building of timidity dlls done #####"
94 echo "##### building asap dlls #####"
95 cd /xbmc/lib/asap/win32
96 sh ./build_xbmc_win32.sh $MAKECLEAN
97 setfilepath /xbmc/system/players/paplayer
98 checkfiles xbmc_asap.dll
99 echo "##### building of asap dlls done #####"
102 if [ $NOPROMPT == 0 ]; then
103 echo press a key to close the window