Qt import: Script to build everything, for Linux and Mac OS X.

http://code.google.com/p/phantomjs/issues/detail?id=226
1.5
Ariya Hidayat 2012-03-06 19:01:24 -08:00
parent 33f436d703
commit 4ccfa463b9
1 changed files with 33 additions and 0 deletions

33
build.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
COMPILE_JOBS=4
QT_CFG=''
until [ -z "$1" ]; do
case $1 in
"--qt-config")
shift
QT_CFG+=" $1"
shift;;
"--jobs")
shift
COMPILE_JOBS=$1
shift;;
"--help")
echo "Usage: $0 [--qt-config CONFIG] [--jobs NUM]"
echo
echo " --qt-config CONFIG Specify extra config options to be used when configuring Qt"
echo " --jobs NUM How many parallel compile jobs to use. Defaults to 4."
echo
exit 0
;;
*)
echo "Unrecognised option: $1"
exit 1;;
esac
done
cd src/qt && ./preconfig.sh --jobs $COMPILE_JOBS && cd ../..
src/qt/bin/qmake
make -j$COMPILE_JOBS