-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
breakpad.sh
executable file
·38 lines (29 loc) · 883 Bytes
/
breakpad.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
set -ex
if [ ! -d "breakpad" ]; then
mkdir breakpad
fi
cd breakpad
if [ ! -d "depot_tools" ]; then
git clone --depth=1 --branch=master https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools
fi
if [ ! -d "src" ]; then
PYTHONDONTWRITEBYTECODE=1 python2.7 ./depot_tools/fetch.py --nohooks breakpad
else
git -C src fetch
git -C src reset --hard origin/master
PYTHONDONTWRITEBYTECODE=1 python2.7 ./depot_tools/gclient.py sync --nohooks
fi
cd src
git config user.name patches
git config user.email patches@localhost
git am -3 --keep-cr ../../patches/*.patch
cd ..
if [ ! -d "build" ]; then
mkdir build
fi
cd build
../src/configure --enable-m32 CXXFLAGS="-g -O2 -D_GLIBCXX_USE_CXX11_ABI=0"
make src/tools/linux/dump_syms/dump_syms
make src/client/linux/libbreakpad_client.a
make src/libbreakpad.a src/third_party/libdisasm/libdisasm.a