aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-06-02 20:08:34 +0200
committerCem Keylan <cem@ckyln.com>2023-06-02 20:08:34 +0200
commitc04967ce5b2f13fc1dbc67ac9e6a3a15103d8930 (patch)
treeb45e4a2251c37c85a9c1a8a24b067788a7d1f9cb /extra/webkit2gtk/build
parent1f1ba00b91708dabdcd3c54fe44581fc99d77e58 (diff)
downloadrepository-c04967ce5b2f13fc1dbc67ac9e6a3a15103d8930.tar.gz
webkit2gtk: bump to 2.40.1
Diffstat (limited to 'extra/webkit2gtk/build')
-rwxr-xr-xextra/webkit2gtk/build13
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build
index 17aa7455..5a890fda 100755
--- a/extra/webkit2gtk/build
+++ b/extra/webkit2gtk/build
@@ -1,11 +1,16 @@
#!/bin/sh -e
+# Fix build of SourceBrush.cpp
+patch -p1 < fix-sourcebrush.patch
+
make -C unifdef
# Remove gettext requirement.
-clsed 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c
-clsed '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
-clsed '/^GETTEXT_C/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
+clsed 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c
+clsed '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
+clsed '/if.*GETTEXT_FOUND/,/^endif/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
+clsed '/^GETTEXT_C/d' Source/WebCore/platform/gtk/po/CMakeLists.txt
+
# Fix clang build.
clsed '/LC_ALL/d' Source/JavaScriptCore/jsc.cpp
@@ -48,5 +53,5 @@ cmake -B build \
-DUSE_WPE_RENDERER=OFF \
-Wno-dev
-cmake --build build
+SAMUFLAGS='-j4' cmake --build build
cmake --install build