[jenkins] - do the mingw build in a backgroundthread and echo "." on the foreground...
authorMemphiz <memphis@machzwo.de>
Tue, 11 Jun 2013 15:45:10 +0000 (17:45 +0200)
committermontellese <montellese@xbmc.org>
Tue, 11 Jun 2013 19:58:57 +0000 (21:58 +0200)
lib/asap/win32/build_xbmc_win32.sh
lib/ffmpeg/build_xbmc_win32.sh
lib/libdvd/build-xbmc-win32.sh
lib/libmpeg2/make-xbmc-lib-win32.sh
project/Win32BuildSetup/buildmingwlibs.sh

index 7f3514a..d05fe5d 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 MAKEFLAGS=""
+BGPROCESSFILE="$2"
 
 if [ "$1" == "clean" ]
 then
@@ -12,4 +13,6 @@ fi
 
 make $MAKEFLAGS xbmc
 
-cp xbmc_asap.dll /xbmc/system/players/paplayer/
\ No newline at end of file
+cp xbmc_asap.dll /xbmc/system/players/paplayer/
+#remove the bgprocessfile for signaling the process end
+rm $BGPROCESSFILE
index 33eea85..ea5a99c 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 MAKEFLAGS=""
+BGPROCESSFILE="$2"
 
 if [ "$1" == "clean" ]
 then
@@ -60,3 +61,6 @@ cp .libs/avfilter-3.dll /xbmc/system/players/dvdplayer/ &&
 cp .libs/postproc-52.dll /xbmc/system/players/dvdplayer/ &&
 cp .libs/swresample-0.dll /xbmc/system/players/dvdplayer/ &&
 cp .libs/swscale-2.dll /xbmc/system/players/dvdplayer/
+
+#remove the bgprocessfile for signaling the process end
+rm $BGPROCESSFILE
index b7fc950..ed00ad0 100644 (file)
@@ -2,6 +2,7 @@
 
 MAKECLEAN=0
 MAKEFLAGS=""
+BGPROCESSFILE=$2
 
 if [ "$1" = "clean" ]
 then
@@ -80,3 +81,5 @@ strip -S obj/libdvdnav.dll
 cd ..
 cp libdvdnav/obj/libdvdnav.dll /xbmc/system/players/dvdplayer/
 echo "***** Done *****"
+#remove the bgprocessfile for signaling the process end
+rm $BGPROCESSFILE
index ce54d06..d8a9eed 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 MAKEFLAGS=""
+BGPROCESSFILE="$2"
 
 if [ "$1" == "clean" ]
 then
@@ -27,3 +28,6 @@ make $MAKEFLAGS &&
 
 strip libmpeg2/.libs/*.dll &&
 cp libmpeg2/.libs/*.dll /xbmc/system/players/dvdplayer/
+
+#remove the bgprocessfile for signaling the process end
+rm $BGPROCESSFILE
index 41b740d..4830562 100644 (file)
@@ -2,6 +2,7 @@
 ERRORFILE=/xbmc/project/Win32BuildSetup/errormingw
 NOPFILE=/xbmc/project/Win32BuildSetup/noprompt
 MAKECLEANFILE=/xbmc/project/Win32BuildSetup/makeclean
+BGPROCESSFILE=/xbmc/project/Win32BuildSetup/bgprocess
 TOUCH=/bin/touch
 RM=/bin/rm
 NOPROMPT=0
@@ -33,6 +34,20 @@ function checkfiles ()
   done
 }
 
+function runBackgroundProcess ()
+{
+  #start the process backgrounded
+  $TOUCH $BGPROCESSFILE
+  echo "backgrounding: sh $1 $BGPROCESSFILE & (workdir: $(PWD))"
+  sh $1 $BGPROCESSFILE &
+  echo "waiting on bgprocess..."
+  while [ -f $BGPROCESSFILE ]; do
+    echo -n "."
+    sleep 5
+  done
+  echo "done"
+}
+
 # cleanup
 if [ -f $ERRORFILE ]; then
   $RM $ERRORFILE
@@ -47,6 +62,8 @@ fi
 if [ -f $MAKECLEANFILE ]; then
   $RM $MAKECLEANFILE
   MAKECLEAN="clean"
+else
+  MAKECLEAN="noclean"
 fi
 
 if [ $NUMBER_OF_PROCESSORS > 1 ]; then
@@ -62,21 +79,21 @@ echo "################################"
 
 echo "##### building ffmpeg dlls #####"
 cd /xbmc/lib/ffmpeg/
-sh ./build_xbmc_win32.sh $MAKECLEAN
+runBackgroundProcess "./build_xbmc_win32.sh $MAKECLEAN"
 setfilepath /xbmc/system/players/dvdplayer
 checkfiles avcodec-54.dll avformat-54.dll avutil-52.dll postproc-52.dll swscale-2.dll avfilter-3.dll swresample-0.dll
 echo "##### building of ffmpeg dlls done #####"
 
 echo "##### building libdvd dlls #####"
 cd /xbmc/lib/libdvd/
-sh ./build-xbmc-win32.sh $MAKECLEAN
+runBackgroundProcess "./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
+runBackgroundProcess "./make-xbmc-lib-win32.sh $MAKECLEAN"
 setfilepath /xbmc/system/players/dvdplayer
 checkfiles libmpeg2-0.dll
 echo "##### building of libmpeg2 dlls done #####"
@@ -93,7 +110,7 @@ echo "##### building of timidity dlls done #####"
 
 echo "##### building asap dlls #####"
 cd /xbmc/lib/asap/win32
-sh ./build_xbmc_win32.sh $MAKECLEAN
+runBackgroundProcess "./build_xbmc_win32.sh $MAKECLEAN"
 setfilepath /xbmc/system/players/paplayer
 checkfiles xbmc_asap.dll
 echo "##### building of asap dlls done #####"