aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/breakpad/build.sh
blob: 5e9b1e3e2b2457fac25f8beeeb1b970f47fa4377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

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 -j 2
make install