diff options
author | Cem Keylan <cem@ckyln.com> | 2020-04-29 18:11:48 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-04-29 18:11:48 +0300 |
commit | ff6292bbe4ea269cff500a62648a201b1cab61af (patch) | |
tree | c47e3d7507d6974204196619c9805c325916a299 | |
parent | bf752fd5c047bbe0934f282addbc98e2ddc84547 (diff) | |
download | repository-ff6292bbe4ea269cff500a62648a201b1cab61af.tar.gz |
webkit2gtk: add options for gstreamer and openjpeg
-rwxr-xr-x | extra/webkit2gtk/build | 15 |
1 files changed, 12 insertions, 3 deletions
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 |