#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 
# 

DEPTH		= ../../../..
topsrcdir	= ../../../..
srcdir		= .
VPATH		= .

include $(DEPTH)/config/autoconf.mk

MODULE		= plugin
GRE_MODULE	= 1

EXPORTS		= \
		nsplugin.h \
		nsplugindefs.h \
		nsPluginLogging.h \
		nsPluginError.h \
		nsDefaultPlugin.h \
		nsPluginNativeWindow.h \
		nsPluginsCID.h \
		npapi.h \
		npupp.h \
		npruntime.h \
		nptypes.h \
		nsINPRuntimePlugin.h \
		$(NULL)

SDK_HEADERS	 = \
		npapi.h \
		npupp.h \
		nptypes.h \
		npruntime.h \
		$(NULL)

XPIDLSRCS 	= \
		nspluginroot.idl \
		nsIPluginStreamInfo.idl \
		nsIPluginManager.idl \
		nsIPluginManager2.idl \
		nsIPluginInstancePeer.idl \
		nsIPluginInstancePeer2.idl \
		nsIPluginInstanceOwner.idl \
		nsIPlugin.idl \
		nsIHTTPHeaderListener.idl \
		nsIFileUtilities.idl \
		nsIEventHandler.idl \
		nsICookieStorage.idl \
		nsIClassicPluginFactory.idl \
		nsIWindowlessPlugInstPeer.idl \
		nsIScriptablePlugin.idl \
		nsIPluginTagInfo.idl \
		nsIPluginTagInfo2.idl \
		nsIJRILiveConnectPIPeer.idl \
		nsIJRILiveConnectPlugin.idl \
		nsIPluginInputStream.idl \
		nsIPluginStreamListener.idl \
		nsIPluginInstance.idl \
		nsPIPluginHost.idl \
		nsPIPluginInstancePeer.idl \
		nsIPluginHost.idl \
		nsIPluginDocument.idl \
		$(NULL)

ifeq ($(OS_ARCH),OS2)
XPIDLSRCS += nsILegacyPluginWrapperOS2.idl
endif

# Just build headers if we don't want plugins support
ifndef MOZ_PLUGINS
NO_GEN_XPT=1
endif

include $(topsrcdir)/config/rules.mk

