[vlc-commits] contribs: Add breakpad crash reporter to contribs

Marvin Scholz git at videolan.org
Fri Feb 17 21:18:22 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Feb 14 20:07:45 2017 +0100| [c03d83fcd31878faef7f9a0f40a78cb4b42aa29b] | committer: Marvin Scholz

contribs: Add breakpad crash reporter to contribs

macOS only for the moment.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c03d83fcd31878faef7f9a0f40a78cb4b42aa29b
---

 contrib/src/breakpad/rules.mak | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/contrib/src/breakpad/rules.mak b/contrib/src/breakpad/rules.mak
new file mode 100644
index 0000000..84f3c11
--- /dev/null
+++ b/contrib/src/breakpad/rules.mak
@@ -0,0 +1,27 @@
+# breakpad
+
+BREAKPAD_HASH := bbebd8d5e7d61666c3a2dae82867bb7b5aeda639
+BREAKPAD_URL := https://chromium.googlesource.com/breakpad/breakpad/+archive/$(BREAKPAD_HASH).tar.gz
+
+ifdef HAVE_MACOSX
+PKGS += breakpad
+endif
+
+$(TARBALLS)/breakpad-$(BREAKPAD_HASH).tar.gz:
+	$(call download_pkg,$(BREAKPAD_URL),breakpad)
+
+.sum-breakpad: breakpad-$(BREAKPAD_HASH).tar.gz
+	$(warning $@ not implemented)
+	touch $@
+
+breakpad: breakpad-$(BREAKPAD_HASH).tar.gz
+	mkdir $@
+	tar xvzf $(TARBALLS)/breakpad-$(BREAKPAD_HASH).tar.gz -C breakpad
+
+.breakpad: breakpad
+	cd $</src/client/mac/ && xcodebuild $(XCODE_FLAGS) CLANG_CXX_LIBRARY=libc++ WARNING_CFLAGS=-Wno-error
+	cd $</src/tools/mac/dump_syms && xcodebuild $(XCODE_FLAGS) CLANG_CXX_LIBRARY=libc++ WARNING_CFLAGS=-Wno-error
+	install -d $(PREFIX)
+	cd $</src/client/mac/ && cp -R build/Release/Breakpad.framework "$(PREFIX)"
+	cd $</src/tools/mac/dump_syms && cp -R build/Release/dump_syms "$(PREFIX)/bin"
+	touch $@



More information about the vlc-commits mailing list