sm-ext-accelerator-2023/breakpad.sh

31 lines
654 B
Bash
Raw Normal View History

2015-10-22 15:00:28 +02:00
#!/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
2019-01-12 00:42:34 +01:00
PYTHONDONTWRITEBYTECODE=1 python2.7 ./depot_tools/fetch.py --nohooks breakpad
2015-10-22 15:00:28 +02:00
else
2019-01-12 00:42:34 +01:00
PYTHONDONTWRITEBYTECODE=1 python2.7 ./depot_tools/gclient.py sync --nohooks
2015-10-22 15:00:28 +02:00
fi
if [ ! -d "build" ]; then
mkdir build
fi
cd build
2015-10-22 15:00:28 +02:00
../src/configure --enable-m32
2015-10-22 15:00:28 +02:00
make src/tools/linux/dump_syms/dump_syms
2018-07-19 14:55:28 +02:00
make src/client/linux/libbreakpad_client.a
make src/libbreakpad.a src/third_party/libdisasm/libdisasm.a