From e7377134427af6683cee67fce2c2b5330107422d Mon Sep 17 00:00:00 2001
From: Aqua-sama <aqua@iserlohn-fortress.net>
Date: Thu, 25 Oct 2018 15:56:10 +0200
Subject: Remove breakpad gitmodule

---
 doc/Building/Breakpad.asciidoc | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

(limited to 'doc/Building/Breakpad.asciidoc')

diff --git a/doc/Building/Breakpad.asciidoc b/doc/Building/Breakpad.asciidoc
index 9cc561e..aa2642e 100644
--- a/doc/Building/Breakpad.asciidoc
+++ b/doc/Building/Breakpad.asciidoc
@@ -1,8 +1,32 @@
 == Breakpad
 
 === Enabling breakpad
-Use `-DBreakpad=On` cmake option. This requires either Breakpad be installed as
-a package, or that it is already built. Check 3rd-party/breakpad/CMakeLists.txt.
+Use the `-DBreakpad=enabled` option. This requires Breakpad be installed as a package.
+
+=== Building breakpad on linux
+[source, sh]
+----
+# Get the missing linux syscall support header
+if [ ! -f breakpad.git/src/third_party/lss/linux_syscall_support.h ]; then
+    mkdir -p breakpad.git/src/third_party/lss
+    curl -L https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h?format=TEXT | base64 --decode > breakpad.git/src/third_party/lss/linux_syscall_support.h
+fi
+
+buildpath=$(pwd)/build
+if [ ! -d $buildpath ]; then
+    mkdir $buildpath
+fi
+
+installpath=$(pwd)/install
+if [ ! -d $installpath ]; then
+    mkdir $installpath
+fi
+
+cd $buildpath
+../breakpad.git/configure --prefix=$installpath
+make
+make install
+----
 
 === Producing symbols
 [source, sh]
-- 
cgit v1.2.1

