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 /project/Win32BuildSetup | |
parent | e2f0af221f5e8f4debe301419a296daca63ac625 (diff) |
[WIN32] changed mingw: use NUMBER_OF_PROCESSORS jobs for compiling (-jNUMBER_OF_PROCESSORS)
Diffstat (limited to 'project/Win32BuildSetup')
-rw-r--r-- | project/Win32BuildSetup/buildmingwlibs.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/project/Win32BuildSetup/buildmingwlibs.sh b/project/Win32BuildSetup/buildmingwlibs.sh index b72d897705..14ffb1091b 100644 --- a/project/Win32BuildSetup/buildmingwlibs.sh +++ b/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 #####" |