aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
diff options
context:
space:
mode:
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