diff options
author | WiSo <wiso@xbmc.org> | 2011-07-04 21:25:52 +0200 |
---|---|---|
committer | WiSo <wiso@xbmc.org> | 2011-07-04 21:25:52 +0200 |
commit | 5cc89f1ed15b54498c853df126601f8fa2147f9a (patch) | |
tree | 15d6f5b2ac871ef11c4e1da830b905c8bf3abad4 /lib/libdvd | |
parent | e2f0af221f5e8f4debe301419a296daca63ac625 (diff) |
[WIN32] changed mingw: use NUMBER_OF_PROCESSORS jobs for compiling (-jNUMBER_OF_PROCESSORS)
Diffstat (limited to 'lib/libdvd')
-rw-r--r-- | lib/libdvd/build-xbmc-win32.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libdvd/build-xbmc-win32.sh b/lib/libdvd/build-xbmc-win32.sh index e8b42a7468..a0ff00eabf 100644 --- a/lib/libdvd/build-xbmc-win32.sh +++ b/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 \ |