Mac build script: update to get Qt 4.8.0.

http://code.google.com/p/phantomjs/issues/detail?id=142
1.5
Ariya Hidayat 2011-12-20 22:49:34 -08:00
parent 1e8b0a7336
commit 9ca1a4042c
1 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
QT_VERSION=4.7.4
QT_VERSION=4.8.0
QT_FOLDER=Qt-$QT_VERSION
QT_TARBALL=qt-everywhere-opensource-src-$QT_VERSION.tar.gz
@ -31,22 +31,27 @@ echo
tar xzf $QT_TARBALL
mv qt-everywhere-opensource-src-$QT_VERSION Qt-$QT_VERSION
# Step 3: Build Qt
# Step 3: Apply some patches
cd $QT_FOLDER
patch configure ../allow-static-qtwebkit.patch
patch -p1 < ../qapplication_skip_qtmenu.patch
rm -rf src/3rdparty/WebKit/qt/tests
# Step 4: Build Qt
echo "Building Qt $QT_VERSION. Please wait..."
echo
./configure -opensource -confirm-license -release -static -no-exceptions -no-stl -no-xmlpatterns -no-phonon -no-qt3support -no-opengl -no-declarative -qt-libpng -qt-libjpeg -no-libmng -no-libtiff -D QT_NO_STYLE_CDE -D QT_NO_STYLE_CLEANLOOKS -D QT_NO_STYLE_MOTIF -D QT_NO_STYLE_PLASTIQUE -cocoa -prefix $PWD -arch x86 -nomake demos -nomake examples -nomake tools
make -j$COMPILE_JOBS
cd ..
# Extra step: copy JavaScriptCore/release, needed for jscore static lib
mkdir ../JavaScriptCore
cp -rp $QT_FOLDER/src/3rdparty/webkit/JavaScriptCore/release ../JavaScriptCore/
# Extra step to ensure the static libraries are found
cp -rp $QT_FOLDER/src/3rdparty/webkit/Source/JavaScriptCore/release/* $QT_FOLDER/lib
cp -rp $QT_FOLDER/src/3rdparty/webkit/Source/WebCore/release/* $QT_FOLDER/lib
# Step 4: Build PhantomJS
# Step 5: Build PhantomJS
echo "Building PhantomJS. Please wait..."
echo
@ -55,7 +60,7 @@ cd ..
deploy/$QT_FOLDER/bin/qmake
make -j$COMPILE_JOBS
# Step 5: Prepare for deployment
# Step 6: Prepare for deployment
echo "Compressing PhantomJS executable..."
echo