Explicitly suppress video and audio when building QtWebkit. (#12518)

This mostly matters when system sqlite is selected; that has the side
effect of enabling pkg-config which in turn causes QtWebkit to detect
the presence of system GStreamer and/or QtMultimedia and turn video on.
This way, the build is consistent across the board.
2.0
Zack Weinberg 2014-08-28 17:12:08 -04:00 committed by Ariya Hidayat
parent c64b1c078c
commit 9afcf3c23d
1 changed files with 15 additions and 1 deletions

View File

@ -173,8 +173,22 @@ if [[ "$QTWEBKIT" == "bundled" ]]; then
if grep -qEe '-qt-sql-sqlite\>' src/qt/qtbase/config.status; then
export SQLITE3SRCDIR=$PWD/src/qt/qtbase/src/3rdparty/sqlite/
fi
# By default, suppress video and audio-related features.
# They can be reactivated with e.g.
# --qmake-args WEBKIT_CONFIG+='use_gstreamer video'
WEBKIT_DISABLE=
WEBKIT_DISABLE+=' use_glib'
WEBKIT_DISABLE+=' use_gstreamer'
WEBKIT_DISABLE+=' use_gstreamer010'
WEBKIT_DISABLE+=' use_native_fullscreen_video'
WEBKIT_DISABLE+=' legacy_web_audio'
WEBKIT_DISABLE+=' web_audio'
WEBKIT_DISABLE+=' video'
WEBKIT_DISABLE+=' gamepad'
( cd src/qt/qtwebkit &&
$QMAKE $QMAKE_ARGS &&
$QMAKE "WEBKIT_CONFIG -= $WEBKIT_DISABLE" $QMAKE_ARGS &&
make -j$COMPILE_JOBS $MAKE_S )
fi