Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[WIN32] changed mingw: use NUMBER_OF_PROCESSORS jobs for compiling (-…

…jNUMBER_OF_PROCESSORS)
  • Loading branch information...
commit 5cc89f1ed15b54498c853df126601f8fa2147f9a 1 parent e2f0af2
@wsoltys wsoltys authored
View
7 lib/asap/win32/build_xbmc_win32.sh
@@ -1,10 +1,15 @@
#!/bin/bash
+MAKEFLAGS=""
+
if [ "$1" == "clean" ]
then
make clean
fi
+if [ $NUMBER_OF_PROCESSORS > 1 ]; then
+ MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
+fi
-make xbmc
+make $MAKEFLAGS xbmc
cp xbmc_asap.dll /xbmc/system/players/paplayer/
View
8 lib/ffmpeg/build_xbmc_win32.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+MAKEFLAGS=""
+
if [ "$1" == "clean" ]
then
if [ -d .libs ]
@@ -9,6 +11,10 @@ then
make distclean
fi
+if [ $NUMBER_OF_PROCESSORS > 1 ]; then
+ MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
+fi
+
if [ ! -d .libs ]; then
mkdir .libs
fi
@@ -41,7 +47,7 @@ OPTIONS="
./configure --extra-cflags="-fno-common -Iinclude-xbmc-win32/dxva2" --extra-ldflags="-L/xbmc/system/players/dvdplayer" ${OPTIONS} &&
-make &&
+make $MAKEFLAGS &&
cp lib*/*.dll .libs/ &&
cp .libs/avcodec-52.dll /xbmc/system/players/dvdplayer/ &&
cp .libs/avcore-0.dll /xbmc/system/players/dvdplayer/ &&
View
11 lib/libdvd/build-xbmc-win32.sh
@@ -1,12 +1,17 @@
#!/bin/sh
MAKECLEAN=0
+MAKEFLAGS=""
if [ "$1" == "clean" ]
then
MAKECLEAN=1
fi
+if [ $NUMBER_OF_PROCESSORS > 1 ]; then
+ MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
+fi
+
#libdvdcss
cd libdvdcss
echo "***** Cleaning libdvdcss *****"
@@ -21,7 +26,7 @@ sh bootstrap
--disable-doc \
--enable-static \
--with-pic
-make
+make $MAKEFLAGS
strip -S src/.libs/libdvdcss-2.dll
cd ..
mkdir -p includes/dvdcss
@@ -43,7 +48,7 @@ echo "***** Building libdvdread *****"
--disable-debug
mkdir -p ../includes/dvdread
cp ../libdvdread/src/*.h ../includes/dvdread
-make
+make $MAKEFLAGS
cd ..
#libdvdnav
@@ -60,7 +65,7 @@ echo "***** Building libdvdnav *****"
--extra-cflags="-D_XBMC -DNDEBUG -I`pwd`/../includes" \
--with-dvdread-config="`pwd`/../libdvdread/obj/dvdread-config" \
--disable-debug
-make
+make $MAKEFLAGS
gcc \
-shared \
-o obj/libdvdnav.dll \
View
10 lib/libmpeg2/make-xbmc-lib-win32.sh
@@ -1,4 +1,6 @@
-#!/bin/bash
+#!/bin/bash
+
+MAKEFLAGS=""
if [ "$1" == "clean" ]
then
@@ -9,6 +11,10 @@ then
make distclean
fi
+if [ $NUMBER_OF_PROCESSORS > 1 ]; then
+ MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
+fi
+
./configure \
--with-pic \
--disable-static \
@@ -17,7 +23,7 @@ fi
--disable-sdl \
--without-x &&
-make &&
+make $MAKEFLAGS &&
strip libmpeg2/.libs/*.dll &&
cp libmpeg2/.libs/*.dll /xbmc/system/players/dvdplayer/
View
7 project/Win32BuildSetup/buildmingwlibs.sh
@@ -6,6 +6,7 @@ TOUCH=/bin/touch
RM=/bin/rm
NOPROMPT=0
MAKECLEAN=""
+MAKEFLAGS=""
function throwerror ()
{
@@ -48,6 +49,10 @@ if [ -f $MAKECLEANFILE ]; then
MAKECLEAN="clean"
fi
+if [ $NUMBER_OF_PROCESSORS > 1 ]; then
+ MAKEFLAGS=-j$NUMBER_OF_PROCESSORS
+fi
+
# compile our mingw dlls
echo "################################"
echo "## compiling mingw libs"
@@ -81,7 +86,7 @@ cd /xbmc/lib/timidity/
if [ "$MAKECLEAN" == "clean" ]; then
make -f Makefile.win32 clean
fi
-make -f Makefile.win32
+make -f Makefile.win32 $MAKEFLAGS
setfilepath /xbmc/system/players/paplayer
checkfiles timidity.dll
echo "##### building of timidity dlls done #####"
Please sign in to comment.
Something went wrong with that request. Please try again.