2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-07-24 18:05:54 -07:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2007-07-24 18:06:15 -07:00
|
|
|
MODULE = crashreporter
|
2007-07-24 18:05:54 -07:00
|
|
|
LIBXUL_LIBRARY = 1
|
2007-07-24 18:05:56 -07:00
|
|
|
LIBRARY_NAME = exception_handler_s
|
2007-07-24 18:05:54 -07:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2008-11-25 09:03:26 -08:00
|
|
|
DIRS += \
|
|
|
|
google-breakpad/src/common/windows \
|
|
|
|
google-breakpad/src/client/windows/handler \
|
|
|
|
google-breakpad/src/client/windows/sender \
|
|
|
|
google-breakpad/src/client/windows/crash_generation \
|
|
|
|
$(NULL)
|
2007-07-24 18:05:54 -07:00
|
|
|
endif
|
|
|
|
|
2007-07-24 18:06:00 -07:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
2007-07-24 18:06:09 -07:00
|
|
|
CMMSRCS = mac_utils.mm
|
|
|
|
|
2007-07-24 18:06:10 -07:00
|
|
|
DIRS += \
|
2007-08-08 08:19:57 -07:00
|
|
|
google-breakpad/src/common \
|
|
|
|
google-breakpad/src/common/mac \
|
|
|
|
google-breakpad/src/client \
|
2010-08-16 12:05:09 -07:00
|
|
|
google-breakpad/src/client/mac/crash_generation \
|
2007-08-08 08:19:57 -07:00
|
|
|
google-breakpad/src/client/mac/handler \
|
2010-02-09 11:33:19 -08:00
|
|
|
google-breakpad/src/tools/mac/dump_syms \
|
2007-07-24 18:06:10 -07:00
|
|
|
$(NULL)
|
2007-07-24 18:06:00 -07:00
|
|
|
endif
|
|
|
|
|
2007-07-24 18:06:04 -07:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
2010-10-13 11:27:44 -07:00
|
|
|
# There's no define for XP_LINUX normally.
|
|
|
|
# MOZ_APP_NAME is needed on Android, where we
|
|
|
|
# need to launch by package name.
|
|
|
|
DEFINES += \
|
|
|
|
-DXP_LINUX \
|
2010-12-21 17:56:07 -08:00
|
|
|
-DANDROID_PACKAGE_NAME=\"$(ANDROID_PACKAGE_NAME)\"
|
2010-10-13 11:27:44 -07:00
|
|
|
$(NULL)
|
2007-07-24 18:06:04 -07:00
|
|
|
DIRS += \
|
2007-08-08 08:19:57 -07:00
|
|
|
google-breakpad/src/common \
|
|
|
|
google-breakpad/src/common/linux \
|
|
|
|
google-breakpad/src/client \
|
2010-01-12 13:14:37 -08:00
|
|
|
google-breakpad/src/client/linux/crash_generation \
|
2007-08-08 08:19:57 -07:00
|
|
|
google-breakpad/src/client/linux/handler \
|
2009-12-14 03:55:31 -08:00
|
|
|
google-breakpad/src/client/linux/minidump_writer \
|
2007-08-08 08:19:57 -07:00
|
|
|
google-breakpad/src/tools/linux/dump_syms \
|
2007-07-24 18:06:04 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-03-19 18:13:36 -07:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
# there's no define for this normally
|
|
|
|
DEFINES += -DXP_SOLARIS
|
|
|
|
DIRS += \
|
|
|
|
google-breakpad/src/common \
|
|
|
|
google-breakpad/src/common/solaris \
|
|
|
|
google-breakpad/src/client \
|
|
|
|
google-breakpad/src/client/solaris/handler \
|
|
|
|
google-breakpad/src/tools/solaris/dump_syms \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-10-14 17:38:19 -07:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
|
|
|
DIRS += fileid
|
2011-05-27 10:01:03 -07:00
|
|
|
# NDK5 workarounds
|
|
|
|
DEFINES += -D_STLP_CONST_CONSTRUCTOR_BUG -D_STLP_NO_MEMBER_TEMPLATES
|
2010-10-14 17:38:19 -07:00
|
|
|
endif
|
|
|
|
|
2007-07-24 18:05:54 -07:00
|
|
|
DIRS += client
|
|
|
|
|
2007-08-08 08:19:57 -07:00
|
|
|
LOCAL_INCLUDES = -I$(srcdir)/google-breakpad/src
|
2007-07-24 18:05:54 -07:00
|
|
|
DEFINES += -DUNICODE -D_UNICODE
|
|
|
|
|
|
|
|
EXPORTS = \
|
2007-08-08 08:19:57 -07:00
|
|
|
nsExceptionHandler.h \
|
2007-07-24 18:05:54 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
2007-08-08 08:19:57 -07:00
|
|
|
nsExceptionHandler.cpp \
|
2007-07-24 18:05:54 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2007-07-24 18:06:03 -07:00
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
2010-02-09 17:05:31 -08:00
|
|
|
EXTRA_JS_MODULES = \
|
|
|
|
CrashSubmit.jsm \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-07-24 18:05:57 -07:00
|
|
|
ifdef ENABLE_TESTS
|
2009-09-10 04:49:42 -07:00
|
|
|
TOOL_DIRS = test
|
2007-07-24 18:05:57 -07:00
|
|
|
endif
|
|
|
|
|
2011-06-08 13:21:03 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2007-07-24 18:05:54 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2012-05-24 08:58:35 -07:00
|
|
|
|
|
|
|
check::
|
|
|
|
$(PYTHON) $(srcdir)/tools/unit-symbolstore.py
|