add on to my previous checkin
This commit is contained in:
idk%eng.sun.com 2001-04-03 20:59:04 +00:00
Родитель 900965b19d
Коммит dd440bff20
4 изменённых файлов: 173 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,30 @@
#!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):
# Igor Kushnirskiy <idk@eng.sun.com>
#
XPIDL_PROG=$(DIST)\bin\xpidl
.SUFFIXES: .java .idl
XPIDL_JAVA=$(JAVAXPIDLSRCS:.idl=.java)
idl2java: $(XPIDL_JAVA)
.idl.java:
$(XPIDL_PROG) -m java -w $(XPIDL_INCLUDES) -I$(DEPTH)\dist\idl\ $<

29
java/xpcom/java/config/rules.mk Executable file
Просмотреть файл

@ -0,0 +1,29 @@
#!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):
# Igor Kushnirskiy <idk@eng.sun.com>
#
.SUFFIXES: .java .idl
XPIDL_JAVA=$(JAVAXPIDLSRCS:.idl=.java)
XPIDL_PROG=$(DIST)/bin/xpidl
idl2java: $(XPIDL_JAVA)
.idl.java:
$(XPIDL_PROG) -m java -w $(XPIDL_INCLUDES) -I$(DEPTH)/dist/idl/ $<

Просмотреть файл

@ -0,0 +1,57 @@
#!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):
# Igor Kushnirskiy <idk@eng.sun.com>
#
DEPTH = ../../../..
JAVAXPIDLSRCS = nsISupports.idl \
nsIFile.idl \
nsIEnumerator.idl \
nsIComponentManager.idl \
nsIFactory.idl \
nsISupportsPrimitives.idl \
$(NULL)
include $(DEPTH)/config/rules.mk
include ../config/rules.mk
.SUFFIXES: .idl .java
import: $(JAVAXPIDLSRCS)
$(JAVAXPIDLSRCS) :
cp $(DEPTH)/dist/idl/$(@F) .
#we have to exclude some files from here
#xpidl compiler does not suport typedefs, yet.
#we do not have typedefs in java
#what is the best solution?
#idk@eng.sun.com (04/02/2001)
exclude:
rm -f nsISupportsPRTime.java
java2class:
mkdir -p $(DEPTH)/dist/classes
$(JDKHOME)/bin/javac -classpath ".:../classes/:$(CLASSPATH)" -d $(DEPTH)/dist/classes *.java
export:: import idl2java exclude java2class

Просмотреть файл

@ -0,0 +1,57 @@
#!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):
# Igor Kushnirskiy <idk@eng.sun.com>
#
DEPTH = ..\..\..\..
JAVAXPIDLSRCS = nsISupports.idl \
nsIFile.idl \
nsIEnumerator.idl \
nsIComponentManager.idl \
nsIFactory.idl \
nsISupportsPrimitives.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>
include ..\config\rules.mak
.SUFFIXES: .idl .java
import: $(XPIDLSRCS)
$(JAVAXPIDLSRCS) :
copy $(DEPTH)\dist\idl\$(@F) .
#we have to exclude some files from here
#xpidl compiler does not suport typedefs, yet.
#we do not have typedefs in java
#what is the best solution?
#idk@eng.sun.com (04/02/2001)
exclude:
del nsISupportsPRTime.java
java2class:
if not exist $(DEPTH)\dist\classes mkdir $(DEPTH)\dist\classes
$(JDKHOME)\bin\javac -classpath ".;..\classes\;$(CLASSPATH)" -d $(DEPTH)\dist\classes *.java
export:: import idl2java exclude java2class