forked from jon-turney/google-breakpad-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.sh
executable file
·26 lines (26 loc) · 1 KB
/
appveyor.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
#!/bin/sh
set -e
echo fetching svn externals
./fetch-svn-externals
echo autoreconf running...
autoreconf -fvi
HOST=${HOST:-$(autotools/config.guess)}
echo configure running...
./configure --prefix=/usr --enable-silent-rules --host=${HOST}
echo make running...
make
echo make install running...
make install DESTDIR=./staging
# Makefile made by gyp doesn't have an install target, so make up for that deficiency
${HOST}-ar -M <<EOF
CREATE ./staging/usr/lib/libbreakpad_client.a
ADDLIB ./src/out/Debug/obj.target/client/windows/crash_generation/libcrash_generation_client.a
ADDLIB ./src/out/Debug/obj.target/client/windows/crash_generation/libcrash_generation_server.a
ADDLIB ./src/out/Debug/obj.target/client/windows/handler/libexception_handler.a
ADDLIB ./src/out/Debug/obj.target/client/windows/libcommon.a
ADDLIB ./src/out/Debug/obj.target/client/windows/sender/libcrash_report_sender.a
SAVE
END
EOF
cp -a ./breakpad-client.pc ./staging/usr/lib/pkgconfig/
cp -a ./src/out/Debug/crash_generation_app.exe ./staging/usr/bin/