2007-07-24 18:05:54 -07:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
2007-08-08 08:19:57 -07:00
|
|
|
# The Original Code is Mozilla Breakpad integration
|
2007-07-24 18:05:54 -07:00
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Ted Mielczarek <ted.mielczarek@gmail.com>
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2006
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
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)
|
|
|
|
# there's no define for this normally
|
|
|
|
DEFINES += -DXP_LINUX
|
|
|
|
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
|
|
|
|
|
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
|
2010-08-13 05:28:15 -07:00
|
|
|
# Temporarily disable the tests on Linux, see bug 573290 and bug 583591
|
|
|
|
ifneq ($(OS_ARCH),Linux)
|
2009-09-10 04:49:42 -07:00
|
|
|
TOOL_DIRS = test
|
2007-07-24 18:05:57 -07:00
|
|
|
endif
|
2010-08-13 05:28:15 -07:00
|
|
|
endif
|
2007-07-24 18:05:57 -07:00
|
|
|
|
2007-07-24 18:05:54 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|