scriptable wrappers for plugin API a=sep@sparc.spb.su git-svn-id: svn://10.0.0.236/trunk@98793 18797224-902f-48f8-a5cc-f745e15eee43
97 lines
2.5 KiB
Makefile
97 lines
2.5 KiB
Makefile
#!gmake
|
|
#
|
|
# 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):
|
|
# Serge Pikalev <sep@sparc.spb.su>
|
|
#
|
|
|
|
DEPTH = ../../../..
|
|
topsrcdir = ../../../..
|
|
srcdir = .
|
|
VPATH = .
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
IDLDIR = ../public
|
|
IDLSRCS = \
|
|
$(IDLDIR)/nsIXPIDLPlugin.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginInstance.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginStreamListener.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginManager.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginManager2.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginInstancePeer.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginTagInfo.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginTagInfo2.idl \
|
|
$(IDLDIR)/nsIXPIDLPluginStreamInfo.idl \
|
|
$(IDLDIR)/nsIXPIDLInputStream.idl \
|
|
$(IDLDIR)/nsIXPIDLOutputStream.idl \
|
|
$(NULL)
|
|
IDLCLASSES = \
|
|
nsIXPIDLPlugin.class \
|
|
nsIXPIDLPluginInstance.class \
|
|
nsIXPIDLPluginStreamListener.class \
|
|
nsIXPIDLPluginManager.class \
|
|
nsIXPIDLPluginManager2.class \
|
|
nsIXPIDLPluginInstancePeer.class \
|
|
nsIXPIDLPluginTagInfo.class \
|
|
nsIXPIDLPluginTagInfo2.class \
|
|
nsIXPIDLPluginStreamInfo.class \
|
|
nsIXPIDLInputStream.class \
|
|
nsIXPIDLOutputStream.class \
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
.SUFFIXES: .java .idl
|
|
XPIDL_JAVA=$(IDLSRCS:.idl=.java)
|
|
.idl.java:
|
|
$(XPIDL_COMPILE) -m java -w -I$(DEPTH)/dist/idl/ $<
|
|
|
|
CLASSES = \
|
|
nsXPIDLPlugin.class \
|
|
nsXPIDLPluginInstance.class \
|
|
nsXPIDLPluginStreamListener.class \
|
|
nsXPIDLPluginInstancePeer.class \
|
|
nsXPIDLPluginTagInfo.class \
|
|
nsXPIDLPluginTagInfo2.class \
|
|
nsXPIDLPluginManager.class \
|
|
nsXPIDLPluginManager2.class \
|
|
nsXPIDLPluginStreamInfo.class \
|
|
nsXPIDLInputStream.class \
|
|
nsXPIDLOutputStream.class \
|
|
$(NULL)
|
|
.java.class:
|
|
$(JDKHOME)/bin/javac -classpath .:../../classes:$(DIST)/classes $<
|
|
|
|
build-java: $(IDLSRCS:.idl=.java)
|
|
build-classes: $(CLASSES)
|
|
|
|
export:: build-java build-classes
|
|
|
|
clean-java:
|
|
rm -f *class nsIXPIDL*.java
|
|
rm -rf _xpidlgen
|
|
|
|
clean:: clean-java
|