add a --disable-processor configure arg to skip building processor libs and just build client libs

R=nealsid at http://breakpad.appspot.com/209001/show

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@708 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2010-10-05 19:38:22 +00:00
parent f801709a68
commit e574a2adc6
5 changed files with 1450 additions and 1057 deletions

View file

@ -49,8 +49,15 @@ dist_doc_DATA = \
## Libraries
noinst_LTLIBRARIES = src/third_party/libdisasm/libdisasm.la
lib_LTLIBRARIES = src/libbreakpad.la
noinst_LTLIBRARIES =
lib_LTLIBRARIES =
bin_PROGRAMS =
check_PROGRAMS =
if !DISABLE_PROCESSOR
lib_LTLIBRARIES += src/libbreakpad.la
noinst_LTLIBRARIES += src/third_party/libdisasm/libdisasm.la
endif
if LINUX_HOST
lib_LTLIBRARIES += src/client/linux/libbreakpad_client.la
@ -68,6 +75,7 @@ src_client_linux_libbreakpad_client_la_SOURCES = \
src/common/linux/guid_creator.cc
endif
if !DISABLE_PROCESSOR
src_libbreakpad_la_SOURCES = \
src/google_breakpad/common/breakpad_types.h \
src/google_breakpad/common/minidump_format.h \
@ -176,13 +184,14 @@ src_third_party_libdisasm_libdisasm_la_SOURCES = \
src/third_party/libdisasm/x86_insn.c \
src/third_party/libdisasm/x86_misc.c \
src/third_party/libdisasm/x86_operand_list.c \
src/third_party/libdisasm/x86_operand_list.h
src/third_party/libdisasm/x86_operand_list.h
## Programs
bin_PROGRAMS = \
bin_PROGRAMS += \
src/processor/minidump_dump \
src/processor/minidump_stackwalk \
src/processor/source_daemon
src/processor/source_daemon
endif !DISABLE_PROCESSOR
if LINUX_HOST
bin_PROGRAMS += \
@ -190,7 +199,8 @@ bin_PROGRAMS += \
endif
## Tests
check_PROGRAMS = \
if !DISABLE_PROCESSOR
check_PROGRAMS += \
src/common/test_assembler_unittest \
src/processor/address_map_unittest \
src/processor/binarystream_unittest \
@ -212,21 +222,26 @@ check_PROGRAMS = \
src/processor/stackwalker_arm_unittest \
src/processor/stackwalker_x86_unittest \
src/processor/synth_minidump_unittest
endif
if LINUX_HOST
check_PROGRAMS += \
src/client/linux/linux_client_unittest
endif
if !DISABLE_PROCESSOR
if SELFTEST
check_PROGRAMS += \
src/processor/stackwalker_selftest
endif SELFTEST
endif !DISABLE_PROCESSOR
if !DISABLE_PROCESSOR
check_SCRIPTS = \
src/processor/minidump_dump_test \
src/processor/minidump_stackwalk_test \
src/processor/minidump_stackwalk_machine_readable_test
endif
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
TESTS_ENVIRONMENT =
@ -247,7 +262,11 @@ src_client_linux_linux_client_unittest_SOURCES = \
src/common/memory_unittest.cc \
src/testing/gtest/src/gtest-all.cc \
src/testing/gtest/src/gtest_main.cc \
src/testing/src/gmock-all.cc
src/testing/src/gmock-all.cc \
src/processor/basic_code_modules.cc \
src/processor/logging.cc \
src/processor/minidump.cc \
src/processor/pathname_stripper.cc
src_client_linux_linux_client_unittest_CPPFLAGS = \
-I$(top_srcdir)/src \
@ -265,15 +284,12 @@ src_client_linux_linux_client_unittest_LDADD = \
src/common/md5.lo \
src/common/linux/file_id.lo \
src/common/linux/guid_creator.lo \
src/common/string_conversion.lo \
src/processor/basic_code_modules.lo \
src/processor/logging.lo \
src/processor/minidump.lo \
src/processor/pathname_stripper.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 src/libbreakpad.la
endif
if !DISABLE_PROCESSOR
src_processor_address_map_unittest_SOURCES = \
src/processor/address_map_unittest.cc
src_processor_address_map_unittest_LDADD = \
@ -378,7 +394,7 @@ src_processor_disassembler_x86_unittest_CPPFLAGS = \
-I$(top_srcdir)/src/testing
src_processor_disassembler_x86_unittest_LDADD = \
src/processor/disassembler_x86.lo \
src/third_party/libdisasm/libdisasm.la
src/third_party/libdisasm/libdisasm.la
src_processor_minidump_processor_unittest_SOURCES = \
src/processor/minidump_processor_unittest.cc \
@ -685,6 +701,7 @@ src_processor_source_daemon_LDADD = \
src/processor/simple_symbol_supplier.lo \
src/processor/tokenize.lo \
src/processor/udp_network.lo
endif !DISABLE_PROCESSOR
## Additional files to be included in a source distribution
##

File diff suppressed because it is too large Load diff

4
aclocal.m4 vendored
View file

@ -13,8 +13,8 @@
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
[m4_warning([this file was generated for autoconf 2.67.
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
[m4_warning([this file was generated for autoconf 2.65.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.])])

429
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -78,6 +78,28 @@ AC_ARG_ENABLE(m32,
esac],
[usem32=false])
AC_ARG_ENABLE(processor,
AS_HELP_STRING([--disable-processor],
[Don't build processor library]
[(default is no)]),
[case "${enableval}" in
yes)
disable_processor=false
;;
no)
disable_processor=true
;;
*)
AC_MSG_ERROR(bad value ${enableval} for --disable-processor)
;;
esac],
[disable_processor=false])
AM_CONDITIONAL(DISABLE_PROCESSOR, test x$disable_processor = xtrue)
if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then
AC_MSG_ERROR([--disable-processor was specified, and not building for Linux. Nothing to build!])
fi
AC_CHECK_MEMBER(struct sockaddr.sa_len,
[AC_DEFINE([GET_SA_LEN(X)],[(((struct sockaddr*)&(X))->sa_len)],
[actual length of specific struct sockaddr])],