aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-06-11 19:21:49 +0300
committerCem Keylan <cem@ckyln.com>2021-06-11 19:21:49 +0300
commita2b1cc202069176560da67251c8a467beb2f6943 (patch)
tree9aa05ee050b2ea002ba394bd8836f9c75c772d68 /extra
parent8b514a144e8a8f69b50f71831da41866232d058a (diff)
downloadrepository-a2b1cc202069176560da67251c8a467beb2f6943.tar.gz
webkit2gtk: add wayland target
Diffstat (limited to 'extra')
-rwxr-xr-xextra/webkit2gtk/build14
1 files changed, 4 insertions, 10 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build
index ffbbe15f..d00664e3 100755
--- a/extra/webkit2gtk/build
+++ b/extra/webkit2gtk/build
@@ -6,12 +6,6 @@ sed_i() {
cat _ > "$file"; rm -f _
}
-# Enable the use of openjpeg if the package is installed.
-cpt-list openjpeg2 >/dev/null 2>&1 && jpeg=ON
-
-# Enable webcrypto if libtasn1 is installed.
-cpt-list libtasn1 >/dev/null 2>&1 && libtasn=ON
-
# Remove gettext requirement.
sed_i 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c
sed_i '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
@@ -41,14 +35,14 @@ cmake -B build \
-DENABLE_MINIBROWSER=OFF \
-DENABLE_SPELLCHECK=OFF \
-DUSE_LIBHYPHEN=OFF \
- -DUSE_LIBNOTIFY=OFF \
+ -DUSE_LIBNOTIFY="$(cpt l -C libnotify ON OFF)" \
-DUSE_LIBSECRET=OFF \
-DUSE_SYSTEMD=OFF \
- -DUSE_OPENJPEG=${jpeg:-OFF} \
+ -DUSE_OPENJPEG="$(cpt l -C openjpeg2 ON OFF)" \
-DUSE_WOFF2=OFF \
-DUSE_WPE_RENDERER=OFF \
- -DENABLE_WEB_CRYPTO=${libtasn:-OFF} \
- -DENABLE_WAYLAND_TARGET=OFF \
+ -DENABLE_WEB_CRYPTO="$(cpt l -C libtasn1 ON OFF)" \
+ -DENABLE_WAYLAND_TARGET="$(cpt l -C wayland ON OFF)" \
-DENABLE_GAMEPAD=OFF \
-Wno-dev