# vim: noexpandtab ts=8 sw=8
#
# 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/.

$(warning httpserver XPI_NAME=$(XPI_NAME))

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

include $(DEPTH)/config/autoconf.mk

MODULE          = test_necko
NO_INTERFACES_MANIFEST = 1

EXTRA_COMPONENTS = \
                   httpd.js \
                   $(NULL)

ifdef XPI_NAME
NO_JS_MANIFEST = 1
USE_EXTENSION_MANIFEST = 1
else
EXTRA_COMPONENTS += \
                   httpd.manifest \
                   $(NULL)
endif

XPIDLSRCS       = \
                  nsIHttpServer.idl \
                  $(NULL)

XPCSHELL_TESTS = test

TESTING_JS_MODULES = httpd.js

include $(topsrcdir)/config/rules.mk
