ariya/phantomjs — pull request #173 by lfranchi (2011-11-16 03:29:10+00:00)
Title: Add Qt 4.8 support to deploy script, along with some patches to qt

This adds support for building Qt-4.8 from git with some patches to the build script. You might not want all of those patches so I'll describe them below.

* This adds a --qt-4.8 parameter to the script. That will trigger a git checkout and the 4.8 codepaths
* This also adds a --headless parameter that may be passed in along with --qt-4.8. This makes it a lighthouse build
* This disables static builds for Qt 4.8. QtWebkit-2.2 cannot be built statically. As far as I am aware this cannot be worked around; the splitting up of WebKit into WebCore/WebKit/WebKit2 leads to cyclic static dependencies that cannot be satisfied.
* I suck at bash so I apologize in advance. Comments welcome.

# qt48_enable_debugger.patch

Hardcodes the script debugger to enabled. Hacky, but the user won't have to manually enable the script debugger on startup this way---we know she wants to be debugging it if she's using the inspector.

# qt48_fix_inspector.patch

The meat of the work. This updates the websocket code to support versions >6 so that newer Webkits can be debug clients. It also fixes a few bugs in the inspector backend that makes the inspector fail. I've not had these extensively reviewed upstream yet but I'll be grabbing jturcotte on irc soon.

# qt48_headless_and_pdf_fixes.patch

Patches for Qt's QPDF QPrinter backend merged from the wkhml project. Also contains modifications to the 'minimal' lighthouse platform plugin to support fonts. Allows for a fully-functional headless backend when using Qt 4.8 configured with -qpa.