xpcom/tests/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 17 Oct 2013 07:55:16 +0900
changeset 151081 7f1302ea2a9b8420140e9167f878a553cdcb0bc4
parent 145609 45097bc3a57898f22a4f3b74f8f8cf7511f5d0a4
child 151420 a27418c31cd3d8cc65ef88d8362eaa3745914f30
permissions -rw-r--r--
Bug 926906 - Kill core_abspath, core_realpath and core_winabspath. r=gps

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

FAIL_ON_WARNINGS = 1

VPATH += $(topsrcdir)/build

include $(topsrcdir)/config/config.mk

LIBS += $(XPCOM_LIBS)

# Needed to resolve __yylex (?)
ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
LIBS		+= -lpcap
endif

# Make sure we have symbols in case we need to debug these.
MOZ_DEBUG_SYMBOLS = 1

include $(topsrcdir)/config/rules.mk

LOCAL_INCLUDES	= \
                -I$(srcdir)/../ds \
		$(NULL)

libs::
	$(INSTALL) $(srcdir)/test.properties $(DIST)/bin/res
ifneq (,$(SIMPLE_PROGRAMS))
	$(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
endif

install::
	$(SYSINSTALL) $(IFLAGS1) $(srcdir)/test.properties $(DESTDIR)$(mozappdir)/res

ifeq (,$(filter-out WINNT os2-emx, $(HOST_OS_ARCH)))
getnativepath = $(call normalizepath,$(1))
else
getnativepath = $(1)
endif

abs_srcdir = $(abspath $(srcdir))

regOrderDir="$(call getnativepath,$(abs_srcdir)/regorder)";

check::
	XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \
	  $(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) $(regOrderDir)