# 
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
# 
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
# 
# The Original Code is the Mozilla browser.
# 
# The Initial Developer of the Original Code is Netscape
# Communications, Inc.  Portions created by Netscape are
# Copyright (C) 1999, Mozilla.  All Rights Reserved.
# 
# Contributor(s):
#   Travis Bogard <travis@netscape.com>

DEPTH		= ../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

MODULE		= webbrwsr

IS_COMPONENT	= 1
MODULE_NAME	= Browser_Embedding_Module

include $(DEPTH)/config/autoconf.mk

LIBRARY_NAME	= webbrwsr
EXPORT_LIBRARY = 1
REQUIRES	= xpcom \
		  string \
		  docshell \
		  dom \
		  widget \
		  gfx \
		  layout \
		  content \
		  necko \
		  uriloader \
		  shistory \
		  windowwatcher \
		  webbrowserpersist \
		  $(NULL)

ifeq ($(OS_ARCH),WINNT)
EXTRA_DSO_LIBS	= gkgfx
endif

CPPSRCS		= \
		nsWebBrowserModule.cpp		\
		$(NULL)

SHARED_LIBRARY_LIBS= \
		$(DIST)/lib/$(LIB_PREFIX)nsWebBrowser_s.$(LIB_SUFFIX) \
		$(NULL)

EXTRA_DSO_LDOPTS= \
		$(LIBS_DIR) \
		$(EXTRA_DSO_LIBS) \
		$(MOZ_UNICHARUTIL_LIBS) \
		$(MOZ_COMPONENT_LIBS) \
		$(NULL)

include $(topsrcdir)/config/rules.mk

INCLUDES	+= \
		-I$(srcdir)			\
		-I$(srcdir)/../webBrowser		\
		-I$(srcdir)/../setup		\
		$(NULL)
