aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authordigit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-23 15:45:01 +0000
committerdigit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-23 15:45:01 +0000
commit13d9e27ef04797cfd00ac56cb1ee37f71d70214e (patch)
treedbf455ba65a37ab20cffe283bfb863a1665164eb /Makefile.in
parentPulls in gmock r263, gtest r368, and gyp r1472. (diff)
downloadbreakpad-13d9e27ef04797cfd00ac56cb1ee37f71d70214e.tar.xz
Fix Breakpad unit tests build for Android.
This patch contains the source-related fixes to ensure that the Breakpad unit tests build properly when targetting Android. Calling 'make check' still fails because there is still no way to run the unit test programs on a device. This will be addressed by a future patch. Important notes: - You must target Android API level 9 (Gingerbread) or higher to build the unit tests. This requirement is due to the current GTest revision used in the breakpad source tree. - This patch adds headers providing inlined C library functions missing from the NDK (see src/common/android/testing). They are inlined to avoid modifying Makefile.am and other build files. - Similarly, the <wchar.h> header-fix under src/common/android/testing/include is only required by GTest's current revision. E.g. it's not needed when building Breakpad as part of Chromium which uses a more up-to-date revision. Review URL: https://breakpad.appspot.com/439002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1020 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in60
1 files changed, 36 insertions, 24 deletions
diff --git a/Makefile.in b/Makefile.in
index a85b2683..e7984bdd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -66,29 +66,43 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
+
# This allows using fixed NDK headers when building for Android.
-@ANDROID_HOST_TRUE@am__append_1 = -I$(top_srcdir)/src/common/android/include
+# This is only necessary for building the unit tests until GTest is upgraded
+# to a future version.
+@ANDROID_HOST_TRUE@am__append_1 = \
+@ANDROID_HOST_TRUE@ -I$(top_srcdir)/src/common/android/include \
+@ANDROID_HOST_TRUE@ -I$(top_srcdir)/src/common/android/testing/include
+
+# These are good warnings to be treated as errors
+@GCC_TRUE@am__append_2 = \
+@GCC_TRUE@ -Werror=non-virtual-dtor \
+@GCC_TRUE@ -Werror=vla \
+@GCC_TRUE@ -Werror=unused-variable \
+@GCC_TRUE@ -Werror=missing-braces \
+@GCC_TRUE@ -Werror=overloaded-virtual
+
bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3)
check_PROGRAMS = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
$(am__EXEEXT_7)
-@DISABLE_PROCESSOR_FALSE@am__append_2 = src/libbreakpad.a
-@DISABLE_PROCESSOR_FALSE@am__append_3 = src/third_party/libdisasm/libdisasm.a
-@LINUX_HOST_TRUE@am__append_4 = src/client/linux/libbreakpad_client.a
-@DISABLE_PROCESSOR_FALSE@am__append_5 = \
+@DISABLE_PROCESSOR_FALSE@am__append_3 = src/libbreakpad.a
+@DISABLE_PROCESSOR_FALSE@am__append_4 = src/third_party/libdisasm/libdisasm.a
+@LINUX_HOST_TRUE@am__append_5 = src/client/linux/libbreakpad_client.a
+@DISABLE_PROCESSOR_FALSE@am__append_6 = \
@DISABLE_PROCESSOR_FALSE@ src/processor/minidump_dump \
@DISABLE_PROCESSOR_FALSE@ src/processor/minidump_stackwalk
-@LINUX_HOST_TRUE@am__append_6 = \
+@LINUX_HOST_TRUE@am__append_7 = \
@LINUX_HOST_TRUE@ src/client/linux/linux_dumper_unittest_helper
-@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@am__append_7 = \
+@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@am__append_8 = \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/core2md/core2md \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/dump_syms/dump_syms \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/md2core/minidump-2-core \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/symupload/minidump_upload \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/symupload/sym_upload
-@DISABLE_PROCESSOR_FALSE@am__append_8 = \
+@DISABLE_PROCESSOR_FALSE@am__append_9 = \
@DISABLE_PROCESSOR_FALSE@ src/common/test_assembler_unittest \
@DISABLE_PROCESSOR_FALSE@ src/processor/address_map_unittest \
@DISABLE_PROCESSOR_FALSE@ src/processor/binarystream_unittest \
@@ -113,14 +127,14 @@ check_PROGRAMS = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
@DISABLE_PROCESSOR_FALSE@ src/processor/stackwalker_x86_unittest \
@DISABLE_PROCESSOR_FALSE@ src/processor/synth_minidump_unittest
-@LINUX_HOST_TRUE@am__append_9 = \
+@LINUX_HOST_TRUE@am__append_10 = \
@LINUX_HOST_TRUE@ src/client/linux/linux_client_unittest
-@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@am__append_10 = \
+@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@am__append_11 = \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/common/dumper_unittest \
@DISABLE_TOOLS_FALSE@@LINUX_HOST_TRUE@ src/tools/linux/md2core/minidump_2_core_unittest
-@DISABLE_PROCESSOR_FALSE@@SELFTEST_TRUE@am__append_11 = \
+@DISABLE_PROCESSOR_FALSE@@SELFTEST_TRUE@am__append_12 = \
@DISABLE_PROCESSOR_FALSE@@SELFTEST_TRUE@ src/processor/stackwalker_selftest
noinst_PROGRAMS =
@@ -433,6 +447,9 @@ am__src_client_linux_linux_client_unittest_SOURCES_DIST = \
src_client_linux_linux_client_unittest_OBJECTS = \
$(am_src_client_linux_linux_client_unittest_OBJECTS)
am__DEPENDENCIES_1 =
+src_client_linux_linux_client_unittest_LINK = $(CXXLD) $(AM_CXXFLAGS) \
+ $(CXXFLAGS) $(src_client_linux_linux_client_unittest_LDFLAGS) \
+ $(LDFLAGS) -o $@
am__src_client_linux_linux_dumper_unittest_helper_SOURCES_DIST = src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
@LINUX_HOST_TRUE@am_src_client_linux_linux_dumper_unittest_helper_OBJECTS = src/client/linux/minidump_writer/src_client_linux_linux_dumper_unittest_helper-linux_dumper_unittest_helper.$(OBJEXT)
src_client_linux_linux_dumper_unittest_helper_OBJECTS = \
@@ -1217,16 +1234,8 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
# This allows #includes to be relative to src/
-AM_CPPFLAGS = -I$(top_srcdir)/src $(am__append_1)
-
-# These are good warnings to be treated as errors
-@GCC_TRUE@AM_CXXFLAGS = \
-@GCC_TRUE@ -Werror=non-virtual-dtor \
-@GCC_TRUE@ -Werror=vla \
-@GCC_TRUE@ -Werror=unused-variable \
-@GCC_TRUE@ -Werror=missing-braces \
-@GCC_TRUE@ -Werror=overloaded-virtual
-
+AM_CPPFLAGS = -I$(top_srcdir)/src
+AM_CXXFLAGS = $(am__append_1) $(am__append_2)
# Specify include paths for ac macros
ACLOCAL_AMFLAGS = -I m4
@@ -1238,8 +1247,8 @@ dist_doc_DATA = \
NEWS \
README
-noinst_LIBRARIES = $(am__append_3)
-lib_LIBRARIES = $(am__append_2) $(am__append_4)
+noinst_LIBRARIES = $(am__append_4)
+lib_LIBRARIES = $(am__append_3) $(am__append_5)
@LINUX_HOST_TRUE@src_client_linux_libbreakpad_client_a_SOURCES = \
@LINUX_HOST_TRUE@ src/client/linux/crash_generation/crash_generation_client.cc \
@LINUX_HOST_TRUE@ src/client/linux/handler/exception_handler.cc \
@@ -1443,6 +1452,9 @@ TESTS_ENVIRONMENT =
@LINUX_HOST_TRUE@ src/common/string_conversion.o \
@LINUX_HOST_TRUE@ $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
+@ANDROID_HOST_TRUE@@LINUX_HOST_TRUE@src_client_linux_linux_client_unittest_LDFLAGS = \
+@ANDROID_HOST_TRUE@@LINUX_HOST_TRUE@ -llog
+
@LINUX_HOST_TRUE@src_client_linux_linux_client_unittest_DEPENDENCIES = \
@LINUX_HOST_TRUE@ src/client/linux/linux_dumper_unittest_helper \
@LINUX_HOST_TRUE@ src/client/linux/libbreakpad_client.a \
@@ -2576,7 +2588,7 @@ src/processor/src_client_linux_linux_client_unittest-pathname_stripper.$(OBJEXT)
src/processor/$(DEPDIR)/$(am__dirstamp)
src/client/linux/linux_client_unittest$(EXEEXT): $(src_client_linux_linux_client_unittest_OBJECTS) $(src_client_linux_linux_client_unittest_DEPENDENCIES) src/client/linux/$(am__dirstamp)
@rm -f src/client/linux/linux_client_unittest$(EXEEXT)
- $(CXXLINK) $(src_client_linux_linux_client_unittest_OBJECTS) $(src_client_linux_linux_client_unittest_LDADD) $(LIBS)
+ $(src_client_linux_linux_client_unittest_LINK) $(src_client_linux_linux_client_unittest_OBJECTS) $(src_client_linux_linux_client_unittest_LDADD) $(LIBS)
src/client/linux/minidump_writer/src_client_linux_linux_dumper_unittest_helper-linux_dumper_unittest_helper.$(OBJEXT): \
src/client/linux/minidump_writer/$(am__dirstamp) \
src/client/linux/minidump_writer/$(DEPDIR)/$(am__dirstamp)