diff options
author | Chris "Koying" Browet <cbro@semperpax.com> | 2015-03-21 19:22:27 +0100 |
---|---|---|
committer | Chris "Koying" Browet <cbro@semperpax.com> | 2015-03-30 19:20:45 +0200 |
commit | d37aedde17673f86ce14805bf3ccc6c511aabfbd (patch) | |
tree | 141d6612f02ba04ad88f4374e3b2f1fe730815f2 /tools/depends/native | |
parent | b9cb0938039005cc3dabbf8b90ee706b78420219 (diff) |
ADD: [droid] implement Google Breakpad for minidumps
Diffstat (limited to 'tools/depends/native')
-rw-r--r-- | tools/depends/native/Makefile | 3 | ||||
-rw-r--r-- | tools/depends/native/google-breakpad-native/Makefile | 45 |
2 files changed, 47 insertions, 1 deletions
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile index 9b42c196d2..1538ed9600 100644 --- a/tools/depends/native/Makefile +++ b/tools/depends/native/Makefile @@ -9,7 +9,8 @@ NATIVE= m4-native gettext-native autoconf-native automake-native \ gas-preprocessor-native python26-native zlib-native \ pcre-native swig-native rpl-native libsdl_image-native libsquish-native \ tiff-native libpng-native libjpeg-turbo-native liblzo2-native giflib-native \ - libsdl-native distribute-native distutilscross-native JsonSchemaBuilder TexturePacker + libsdl-native distribute-native distutilscross-native JsonSchemaBuilder TexturePacker \ + google-breakpad-native ifeq ($(OS),ios) diff --git a/tools/depends/native/google-breakpad-native/Makefile b/tools/depends/native/google-breakpad-native/Makefile new file mode 100644 index 0000000000..282f1f5edd --- /dev/null +++ b/tools/depends/native/google-breakpad-native/Makefile @@ -0,0 +1,45 @@ +include ../../Makefile.include +DEPS= ../../Makefile.include Makefile + +PREFIX=$(NATIVEPREFIX) +PLATFORM=$(NATIVEPLATFORM) + +# lib name, version +LIBNAME=google-breakpad +VERSION=1434 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.bz2 + +LIBDYLIB=$(PLATFORM)/src/client/linux/libbreakpad_client.a + +# configuration settings +CONFIGURE= ./configure --prefix=$(PREFIX) + +CLEAN_FILES=$(ARCHIVE) $(PLATFORM) + +all: .installed-$(PLATFORM) + +$(TARBALLS_LOCATION)/$(ARCHIVE): + cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) + +$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) + rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + cd $(PLATFORM); $(CONFIGURE) + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -C $(PLATFORM) + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(PLATFORM) install + cp -Rf $(PLATFORM)/src/common/android/include/* $(PREFIX)/include/breakpad/ + mkdir -p $(PREFIX)/include/breakpad/client/linux/dump_writer_common + cp -f $(PLATFORM)/src/client/linux/dump_writer_common/*.h $(PREFIX)/include/breakpad/client/linux/dump_writer_common/ + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + rm -f .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) + |