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
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-07-24 18:05:54 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
LIBXUL_LIBRARY = 1
|
2007-07-24 18:05:56 -07:00
|
|
|
LIBRARY_NAME = exception_handler_s
|
2007-07-24 18:05:54 -07:00
|
|
|
|
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: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
|
|
|
endif
|
|
|
|
|
2008-03-19 18:13:36 -07:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
# there's no define for this normally
|
|
|
|
DEFINES += -DXP_SOLARIS
|
|
|
|
endif
|
|
|
|
|
2010-10-14 17:38:19 -07:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
2011-05-27 10:01:03 -07:00
|
|
|
# NDK5 workarounds
|
|
|
|
DEFINES += -D_STLP_CONST_CONSTRUCTOR_BUG -D_STLP_NO_MEMBER_TEMPLATES
|
2012-09-25 04:52:54 -07:00
|
|
|
TARGET_LOCAL_INCLUDES = \
|
|
|
|
-I$(topsrcdir)/toolkit/crashreporter/google-breakpad/src/common/android/include/ \
|
|
|
|
$(NULL)
|
2010-10-14 17:38:19 -07:00
|
|
|
endif
|
|
|
|
|
2012-09-25 04:52:54 -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)
|
|
|
|
|
2012-07-02 11:55:23 -07:00
|
|
|
ifdef MOZ_CRASHREPORTER_INJECTOR
|
|
|
|
CPPSRCS += \
|
|
|
|
LoadLibraryRemote.cpp \
|
2012-07-02 11:55:23 -07:00
|
|
|
InjectCrashReporter.cpp \
|
2012-07-02 11:55:23 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
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 \
|
2012-09-08 10:20:59 -07:00
|
|
|
KeyValueParser.jsm \
|
2010-02-09 17:05:31 -08:00
|
|
|
$(NULL)
|
|
|
|
|
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
|