aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-31 15:09:01 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-31 15:09:01 +0000
commit53a8b1a204145bdf4e8dcd50c20d9df50a002327 (patch)
tree1a3a2156240d62d776c9252cc3f48a6f6ac1264a /Makefile.am
parentIssue 370 - fix PDBSourceLineWriter::GetModuleInfo's CPU detection (diff)
downloadbreakpad-53a8b1a204145bdf4e8dcd50c20d9df50a002327.tar.xz
Issue 378 - Don't compile Linux client libraries on non-Linux systems
R=nealsid at http://breakpad.appspot.com/173001/show git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@679 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 8084473f..30e6b2f6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,7 +49,10 @@ dist_doc_DATA = \
## Libraries
-lib_LTLIBRARIES = src/libbreakpad.la src/client/linux/libbreakpad_client.la
+lib_LTLIBRARIES = src/libbreakpad.la
+
+if LINUX_HOST
+lib_LTLIBRARIES += src/client/linux/libbreakpad_client.la
src_client_linux_libbreakpad_client_la_SOURCES = \
src/client/linux/crash_generation/crash_generation_client.cc \
@@ -62,6 +65,7 @@ src_client_linux_libbreakpad_client_la_SOURCES = \
src/common/string_conversion.cc \
src/common/linux/file_id.cc \
src/common/linux/guid_creator.cc
+endif
src_libbreakpad_la_SOURCES = \
src/google_breakpad/common/breakpad_types.h \
@@ -136,14 +140,17 @@ src_libbreakpad_la_SOURCES = \
## Programs
bin_PROGRAMS = \
- src/client/linux/linux_dumper_unittest_helper \
src/processor/minidump_dump \
src/processor/minidump_stackwalk \
src/processor/source_daemon
+if LINUX_HOST
+bin_PROGRAMS += \
+ src/client/linux/linux_dumper_unittest_helper
+endif
+
## Tests
check_PROGRAMS = \
- src/client/linux/linux_client_unittest \
src/common/test_assembler_unittest \
src/processor/address_map_unittest \
src/processor/binarystream_unittest \
@@ -163,6 +170,11 @@ check_PROGRAMS = \
src/processor/stackwalker_x86_unittest \
src/processor/synth_minidump_unittest
+if LINUX_HOST
+check_PROGRAMS += \
+ src/client/linux/linux_client_unittest
+endif
+
if SELFTEST
check_PROGRAMS += \
src/processor/stackwalker_selftest
@@ -176,6 +188,7 @@ check_SCRIPTS = \
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
TESTS_ENVIRONMENT =
+if LINUX_HOST
src_client_linux_linux_dumper_unittest_helper_SOURCES = \
src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
src_client_linux_linux_dumper_unittest_helper_CXXFLAGS=$(PTHREAD_CFLAGS)
@@ -209,6 +222,7 @@ src_client_linux_linux_client_unittest_LDADD = \
src/common/linux/guid_creator.lo \
src/common/string_conversion.lo
src_client_linux_linux_client_unittest_DEPENDENCIES = src/client/linux/linux_dumper_unittest_helper src/client/linux/libbreakpad_client.la
+endif
src_processor_address_map_unittest_SOURCES = \
src/processor/address_map_unittest.cc