[Android] use all cores to build contrib and vlc

Rafaël Carré git at videolan.org
Thu Oct 4 15:16:27 CEST 2012


vlc-ports/android | branch: master | Rafaël Carré <funman at videolan.org> | Thu Oct  4 15:16:09 2012 +0200| [01db7041eda4d0e8bb1f9cc0e3de0d10986fdc04] | committer: Rafaël Carré

use all cores to build contrib and vlc

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=01db7041eda4d0e8bb1f9cc0e3de0d10986fdc04
---

 compile.sh |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/compile.sh b/compile.sh
index 839b784..bc2cd2f 100755
--- a/compile.sh
+++ b/compile.sh
@@ -191,11 +191,17 @@ else
     OPTS="--enable-debug"
 fi
 
+MAKEFLAGS=
+if which nproc >/dev/null
+then
+MAKEFLAGS=-j`nproc`
+fi
+
 echo "EXTRA_CFLAGS= -g ${EXTRA_CFLAGS}" >> config.mak
 export VLC_EXTRA_CFLAGS="${EXTRA_CFLAGS}"
 
 make fetch
-make
+make $MAKEFLAGS
 
 cd ../.. && mkdir -p android && cd android
 
@@ -208,7 +214,7 @@ echo "Configuring"
 ../../configure.sh $OPTS
 
 echo "Building"
-make
+make $MAKEFLAGS
 
 
 # 2/ VLC android UI and specific code



More information about the Android mailing list