summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-breakpad-injector.sh
blob: 245dae32644ddd352082cc04674a38185212c8f6 (plain)
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
#!/bin/bash
set -x -e -v

# This script is for building libbreakpadinjector.so, currently for linux only

COMPRESS_EXT=zst

cd $GECKO_PATH

export MOZ_OBJDIR=obj-injector

echo ac_add_options --enable-project=tools/crashreporter/injector > .mozconfig

INJECTOR=libbreakpadinjector.so

TOOLCHAINS="rustc clang"

for t in $TOOLCHAINS; do
    PATH="$MOZ_FETCHES_DIR/$t/bin:$PATH"
done

./mach build -v

mkdir injector
cp $MOZ_OBJDIR/dist/bin/$INJECTOR injector/

tar -acf injector.tar.$COMPRESS_EXT injector/
mkdir -p $UPLOAD_DIR
cp injector.tar.$COMPRESS_EXT $UPLOAD_DIR