Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[WIN32] mingw: refactored file check
  • Loading branch information
WiSo committed Feb 1, 2011
1 parent 5d9175b commit d1a1f2a
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions project/Win32BuildSetup/buildmingwlibs.sh
Expand Up @@ -14,6 +14,22 @@ function throwerror ()
fi 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 # cleanup
if [ -f $ERRORFILE ]; then if [ -f $ERRORFILE ]; then
$RM $ERRORFILE $RM $ERRORFILE
Expand All @@ -28,25 +44,14 @@ fi
# compile our mingw dlls # compile our mingw dlls
echo "##### building ffmpeg dlls #####" echo "##### building ffmpeg dlls #####"
sh /xbmc/lib/ffmpeg/build_xbmc_win32.sh sh /xbmc/lib/ffmpeg/build_xbmc_win32.sh
# check if dlls are build setfilepath /xbmc/system/players/dvdplayer
for i in avcodec-52.dll avformat-52.dll avutil-50.dll postproc-51.dll swscale-0.6.1.dll; do checkfiles avcodec-52.dll avformat-52.dll avutil-50.dll postproc-51.dll swscale-0.6.1.dll
FILE=/xbmc/system/players/dvdplayer/$i
if [ ! -f $FILE ]; then
throwerror "$FILE"
exit 1
fi
done
echo "##### building of ffmpeg dlls done #####" echo "##### building of ffmpeg dlls done #####"


echo "##### building libdvd dlls #####" echo "##### building libdvd dlls #####"
sh /xbmc/lib/libdvd/build-xbmc-win32.sh sh /xbmc/lib/libdvd/build-xbmc-win32.sh

setfilepath /xbmc/system/players/dvdplayer
for i in libdvdcss-2.dll libdvdnav.dll; do checkfiles libdvdcss-2.dll libdvdnav.dll
FILE=/xbmc/system/players/dvdplayer/$i
if [ ! -f $FILE ]; then
throwerror "$FILE"
exit 1
fi
done done
echo "##### building of libdvd dlls done #####" echo "##### building of libdvd dlls done #####"


Expand Down

0 comments on commit d1a1f2a

Please sign in to comment.