зеркало из https://github.com/mozilla/pjs.git
*not part of the build*
add on to my previous checkin
This commit is contained in:
Родитель
c31f922554
Коммит
f809bec95d
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче