toolkit/crashreporter/test/Makefile.in
author Joey Armstrong <joey@mozilla.com>
Mon, 29 Apr 2013 14:49:00 -0400
changeset 130265 04d7289c00a0ddee9d67ae2c1cfb0deec95d9630
parent 125513 97e443115162450609702fc72c99b6d88d8703d6
child 131737 496846474ed30201430d5c9b360c8a6956684d16
permissions -rw-r--r--
bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS

#
# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
relativesrcdir  = @relativesrcdir@

include $(DEPTH)/config/autoconf.mk

DISABLED_XPCSHELL_TESTS = unit unit_ipc

LIBRARY_NAME = testcrasher
NO_DIST_INSTALL = 1

FORCE_SHARED_LIB = 1

VPATH += \
  $(srcdir)/../google-breakpad/src/processor/ \
  $(srcdir)/../google-breakpad/src/common/ \
  $(topsrcdir)/build/ \
  $(NULL)

CPPSRCS = \
  nsTestCrasher.cpp \
  dumputils.cpp \
  basic_code_modules.cc \
  logging.cc \
  minidump.cc \
  pathname_stripper.cc \
  $(NULL)

LOCAL_INCLUDES += \
  -I$(XPIDL_GEN_DIR) \
  -I$(srcdir)/../google-breakpad/src/ \
  $(NULL)
EXTRA_DSO_LIBS += xpcom
EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(MOZ_COMPONENT_LIBS) $(XPCOM_GLUE_LDOPTS)

EXTRA_JS_MODULES = CrashTestUtils.jsm

MOCHITEST_BROWSER_FILES = \
  browser/head.js \
  browser/crashreport.sjs \
  browser/browser_aboutCrashes.js \
  browser/browser_bug471404.js \
  browser/browser_aboutCrashesResubmit.js \
  $(NULL)

include $(topsrcdir)/config/rules.mk

DEFINES += -DSHARED_LIBRARY=$(SHARED_LIBRARY) -DNOMINMAX

libs::  $(MOCHITEST_BROWSER_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)/browser

libs:: $(SHARED_LIBRARY) $(EXTRA_JS_MODULES)
	$(INSTALL) $^ $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/
	$(INSTALL) $^ $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit_ipc/