# 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@
FAIL_ON_WARNINGS = 1

include $(DEPTH)/config/autoconf.mk

MODULE		= necko
LIBRARY_NAME	= nkwyciwyg_s
LIBXUL_LIBRARY	= 1
XPIDL_MODULE	= necko_wyciwyg
GRE_MODULE	= 1
FORCE_STATIC_LIB = 1

EXPORTS_NAMESPACES = mozilla/net

XPIDLSRCS	= \
		nsIWyciwygChannel.idl \
		$(NULL)

EXPORTS_mozilla/net += \
  WyciwygChannelParent.h \
  WyciwygChannelChild.h  \
  $(NULL)

CPPSRCS		= \
		nsWyciwyg.cpp \
		nsWyciwygChannel.cpp \
		nsWyciwygProtocolHandler.cpp \
		WyciwygChannelParent.cpp \
		WyciwygChannelChild.cpp \
		$(NULL)

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

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

DEFINES += -DIMPL_NS_NET

XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public
