# 
# 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	= ../../..
srcdir		= .
VPATH		= .

include $(DEPTH)/config/autoconf.mk

MODULE		= webbrwsr
XPIDL_MODULE	= webBrowser_core
LIBRARY_NAME	= nsWebBrowser_s
GRE_MODULE	= 1

REQUIRES	= xpcom \
		  string \
		  docshell \
		  widget \
		  gfx \
		  layout \
		  content \
		  dom \
		  js \
		  necko \
		  uriloader \
		  shistory \
		  webshell \
		  windowwatcher \
		  history \
		  webbrowserpersist \
		  unicharutil \
		  imglib2 \
		  locale \
		  $(NULL)

ifdef MOZ_PHOENIX
REQUIRES	+= toolkitcomps
endif

EXPORTS         = \
                nsCTooltipTextProvider.h \
                $(NULL)

SDK_XPIDLSRCS   = \
		nsIContextMenuListener.idl  \
		nsIEmbeddingSiteWindow.idl  \
		nsITooltipListener.idl	    \
		nsITooltipTextProvider.idl  \
		nsIWebBrowser.idl	    \
		nsIWebBrowserChrome.idl	    \
		nsIWebBrowserChromeFocus.idl \
		nsIWebBrowserFocus.idl	    \
		nsIWebBrowserPrint.idl      \
		nsIWebBrowserSetup.idl	    \
                $(NULL)

XPIDLSRCS	= \
		nsCWebBrowser.idl			\
		nsICommandHandler.idl			\
		nsIEmbeddingSiteWindow2.idl \
		nsIContextMenuListener2.idl \
		nsIPrintingPrompt.idl       \
		nsIPrintingPromptService.idl       \
		$(NULL)

CPPSRCS		= \
		nsDocShellTreeOwner.cpp		\
		nsWebBrowser.cpp		\
		nsCommandHandler.cpp		\
                nsWebBrowserContentPolicy.cpp   \
		nsContextMenuInfo.cpp		\
		$(NULL)

# we don't want the shared lib, but we want to force the creation of a
# static lib.
FORCE_STATIC_LIB = 1

include $(topsrcdir)/config/rules.mk
