Make it so the jni headers are built in src_share.

git-svn-id: svn://10.0.0.236/trunk@75937 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2000-08-10 01:02:57 +00:00
parent 902ff13a56
commit 287ea4cd13
5 changed files with 106 additions and 96 deletions

View File

@@ -44,3 +44,43 @@ override NO_STATIC_LIB=
include $(topsrcdir)/config/rules.mk
INCLUDES := -I$(JDKHOME)/include -I$(JDKHOME)/include/solaris $(INCLUDES)
JAVAH_CLS= \
"-o BookmarksImpl.h org.mozilla.webclient.wrapper_native.BookmarksImpl" \
"-o CurrentPageImpl.h org.mozilla.webclient.wrapper_native.CurrentPageImpl" \
"-o HistoryImpl.h org.mozilla.webclient.wrapper_native.HistoryImpl" \
"-o WrapperFactoryImpl.h org.mozilla.webclient.wrapper_native.WrapperFactoryImpl" \
"-o NavigationImpl.h org.mozilla.webclient.wrapper_native.NavigationImpl" \
"-o RDFEnumeration.h org.mozilla.webclient.wrapper_native.RDFEnumeration" \
"-o RDFTreeNode.h org.mozilla.webclient.wrapper_native.RDFTreeNode" \
"-o ISupportsPeer.h org.mozilla.webclient.wrapper_native.ISupportsPeer" \
"-o WindowControlImpl.h org.mozilla.webclient.wrapper_native.WindowControlImpl" \
"-o NativeEventThread.h org.mozilla.webclient.wrapper_native.NativeEventThread" \
$(NULL)
JAVAH_FILES=\
BookmarksImpl.h \
CurrentPageImpl.h \
HistoryImpl.h \
WrapperFactoryImpl.h \
NavigationImpl.h \
RDFEnumeration.h \
RDFTreeNode.h \
ISupportsPeer.h \
WindowControlImpl.h \
NativeEventThread.h \
$(NULL)
JAVAH_PROG=$(JDKHOME)/bin/javah
JAVAH_FLAGS=-jni -classpath $(CLASSPATH):$(JAVA_DESTPATH)
export:: $(JAVAH_FILES)
$(JAVAH_FILES):
@for c in $(JAVAH_CLS); do \
echo $(JAVAH_PROG) $(JAVAH_FLAGS) $$c; \
$(JAVAH_PROG) $(JAVAH_FLAGS) $$c; \
done
clobber_all::
rm -f $(JAVAH_FILES)