From ff6292bbe4ea269cff500a62648a201b1cab61af Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 29 Apr 2020 18:11:48 +0300 Subject: webkit2gtk: add options for gstreamer and openjpeg --- extra/webkit2gtk/build | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'extra/webkit2gtk') diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build index aac25cc1..758922a8 100755 --- a/extra/webkit2gtk/build +++ b/extra/webkit2gtk/build @@ -1,5 +1,13 @@ #!/bin/sh -e +# Enable streaming related options if gstreamer +# is installed. +kiss l gst-plugins-base && streaming=ON + +# Enable the use of openjpeg if the package is +# installed. +kiss l openjpeg2 && jpeg=ON + patch -p1 < fix-musl.patch # Remove gettext requirement. @@ -24,16 +32,17 @@ cmake -B build \ -DENABLE_MINIBROWSER=OFF \ -DENABLE_OPENGL=OFF \ -DENABLE_SPELLCHECK=OFF \ - -DENABLE_VIDEO=OFF \ + -DENABLE_VIDEO=${streaming:-OFF} \ -DENABLE_WEBGL=OFF \ - -DENABLE_WEB_AUDIO=OFF \ + -DENABLE_WEB_AUDIO=${streaming:-OFF} \ -DUSE_LIBHYPHEN=OFF \ -DUSE_LIBNOTIFY=OFF \ -DUSE_LIBSECRET=OFF \ - -DUSE_OPENJPEG=OFF \ + -DUSE_OPENJPEG=${jpeg:-OFF} \ -DUSE_WOFF2=OFF \ -DUSE_WPE_RENDERER=OFF \ -DENABLE_WEB_CRYPTO=OFF \ + -DENABLE_MEDIASOURCE=${streaming:-OFF} \ -Wno-dev cmake --build build -- cgit v1.2.3