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-03-22 10:30:00 -07:00
|
|
|
|
2008-12-04 01:13:14 -08:00
|
|
|
LIBS += $(XPCOM_LIBS)
|
|
|
|
|
2008-08-11 17:01:47 -07:00
|
|
|
# Make sure we have symbols in case we need to debug these.
|
|
|
|
MOZ_DEBUG_SYMBOLS = 1
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2011-04-14 02:23:13 -07:00
|
|
|
ifneq (,$(SIMPLE_PROGRAMS))
|
2013-11-05 10:37:54 -08:00
|
|
|
libs::
|
2010-08-26 14:47:28 -07:00
|
|
|
$(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
|
2011-04-14 02:23:13 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
ifeq (,$(filter-out WINNT, $(HOST_OS_ARCH)))
|
2012-07-25 10:06:12 -07:00
|
|
|
getnativepath = $(call normalizepath,$(1))
|
2008-04-01 06:06:18 -07:00
|
|
|
else
|
|
|
|
getnativepath = $(1)
|
|
|
|
endif
|
|
|
|
|
2013-10-16 15:55:16 -07:00
|
|
|
abs_srcdir = $(abspath $(srcdir))
|
2008-04-10 09:14:01 -07:00
|
|
|
|
2013-12-02 13:34:21 -08:00
|
|
|
regOrderDir = $(call getnativepath,$(abs_srcdir)/regorder)
|
2011-05-01 11:59:24 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
check::
|
2008-04-01 06:06:18 -07:00
|
|
|
XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \
|
2013-12-02 13:34:21 -08:00
|
|
|
$(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) '$(regOrderDir)'
|