Improve Android support

This patch remove many Android-specific #ifdefs from the Breakpad
source code. This is achieved by providing "fixed-up" platform
headers (e.g. <signal.h> or <sys/user,h>), in the new directory
src/common/android/include/, which masks differences between
the NDK and GLibc headers.

The old "android_link.h" and "android_ucontext.h" are moved
and renamed.

This also requires putting this directory as the first
include path during Android-hosted builds, hence the
modification of Makefile.am and configure.ac
Review URL: https://breakpad.appspot.com/434002

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1017 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
digit@chromium.org 2012-08-21 14:34:48 +00:00
parent d270dcfa18
commit 62d486be7c
21 changed files with 735 additions and 101 deletions

View file

@ -32,6 +32,10 @@
# This allows #includes to be relative to src/
AM_CPPFLAGS = -I$(top_srcdir)/src
if ANDROID_HOST
# This allows using fixed NDK headers when building for Android.
AM_CPPFLAGS += -I$(top_srcdir)/src/common/android/include
endif
if GCC
# These are good warnings to be treated as errors