From 72d64b501f225955742484035b934c16b9a41780 Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Wed, 18 Sep 2002 18:25:29 +0000 Subject: [PATCH] Checkpoint checkin for converting webclient to building with ant. Currently builds java classes, javah headers, and compiles src_share, src_moz, and src_moz/gtk. git-svn-id: svn://10.0.0.236/trunk@129922 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/java/build.properties.sample | 1 + mozilla/java/webclient/build.xml | 208 ++++++++++++++++++ .../GtkBrowserControlCanvas.java} | 18 +- .../webclient/wrapper_native/motif/README | 1 + mozilla/java/webclient/src_moz/Makefile.in | 29 --- mozilla/java/webclient/src_share/Makefile.in | 43 ---- 6 files changed, 219 insertions(+), 81 deletions(-) create mode 100644 mozilla/java/build.properties.sample create mode 100644 mozilla/java/webclient/build.xml rename mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/{motif/MotifBrowserControlCanvas.java => gtk/GtkBrowserControlCanvas.java} (88%) create mode 100644 mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/README diff --git a/mozilla/java/build.properties.sample b/mozilla/java/build.properties.sample new file mode 100644 index 00000000000..fa2441ffb1f --- /dev/null +++ b/mozilla/java/build.properties.sample @@ -0,0 +1 @@ +build.unix.classes=true diff --git a/mozilla/java/webclient/build.xml b/mozilla/java/webclient/build.xml new file mode 100644 index 00000000000..12a75edb731 --- /dev/null +++ b/mozilla/java/webclient/build.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/MotifBrowserControlCanvas.java b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java similarity index 88% rename from mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/MotifBrowserControlCanvas.java rename to mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java index b791e2a8828..2f372a3afe1 100644 --- a/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/MotifBrowserControlCanvas.java +++ b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java @@ -19,9 +19,9 @@ * * Contributor(s): */ -package org.mozilla.webclient.wrapper_native.motif; +package org.mozilla.webclient.wrapper_native.gtk; -// MotifBrowserControlCanvas.java +// GtkBrowserControlCanvas.java import org.mozilla.util.Assert; import org.mozilla.util.Log; @@ -29,14 +29,14 @@ import org.mozilla.util.ParameterCheck; /** - * MotifBrowserControlCanvas provides a concrete realization - * of the RaptorCanvas for Motif. + * GtkBrowserControlCanvas provides a concrete realization + * of the RaptorCanvas for Gtk. * Lifetime And Scope

* There is one instance of the WebShellCanvas per top level awt Frame. - * @version $Id: MotifBrowserControlCanvas.java,v 1.4 2001-06-01 17:11:30 ashuk%eng.sun.com Exp $ + * @version $Id: GtkBrowserControlCanvas.java,v 1.1 2002-09-18 18:25:23 edburns%acm.org Exp $ * * @see org.mozilla.webclient.BrowserControlCanvasFactory * @@ -51,14 +51,14 @@ import org.mozilla.webclient.*; import org.mozilla.webclient.wrapper_native.*; /** - * MotifBrowserControlCanvas provides a concrete realization + * GtkBrowserControlCanvas provides a concrete realization * of the RaptorCanvas. */ -public class MotifBrowserControlCanvas extends BrowserControlCanvas /* implements ActionListener*/ { +public class GtkBrowserControlCanvas extends BrowserControlCanvas /* implements ActionListener*/ { static { System.loadLibrary("webclientstub"); - MotifBrowserControlCanvas.loadMainDll(); + GtkBrowserControlCanvas.loadMainDll(); } static private boolean firstTime = true; @@ -79,7 +79,7 @@ public class MotifBrowserControlCanvas extends BrowserControlCanvas /* implement //New method for obtaining access to the Native Peer handle private native int getHandleToPeer(); - public MotifBrowserControlCanvas() { + public GtkBrowserControlCanvas() { super(); this.gtkWinID = 0; diff --git a/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/README b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/README new file mode 100644 index 00000000000..62dcfe9e4a4 --- /dev/null +++ b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/motif/README @@ -0,0 +1 @@ +All classes in this directory have been cvs removed. See ../gtk. diff --git a/mozilla/java/webclient/src_moz/Makefile.in b/mozilla/java/webclient/src_moz/Makefile.in index c2969703208..c5961893d00 100644 --- a/mozilla/java/webclient/src_moz/Makefile.in +++ b/mozilla/java/webclient/src_moz/Makefile.in @@ -90,35 +90,6 @@ REQUIRES = xpcom \ $(NULL) CPPSRCS = \ - ns_util.cpp \ - ns_util_export.cpp \ - dom_util.cpp \ - nsActions.cpp \ - rdf_util.cpp \ - BookmarksImpl.cpp \ - CBrowserContainer.cpp \ - PromptActionEvents.cpp \ - CurrentPageImpl.cpp \ - CurrentPageActionEvents.cpp \ - HistoryImpl.cpp \ - HistoryActionEvents.cpp \ - ISupportsPeer.cpp \ - NativeEventThread.cpp \ - NativeEventThreadActionEvents.cpp \ - NavigationImpl.cpp \ - NavigationActionEvents.cpp \ - InputStreamShim.cpp \ - RDFEnumeration.cpp \ - RDFTreeNode.cpp \ - RDFActionEvents.cpp \ - wsRDFObserver.cpp \ - WindowControlImpl.cpp \ - WindowControlActionEvents.cpp \ - PreferencesImpl.cpp \ - PreferencesActionEvents.cpp \ - WrapperFactoryImpl.cpp \ - motif/MotifBrowserControlCanvas.cpp \ - motif/gtkmozilla.cpp \ $(NULL) include $(topsrcdir)/config/rules.mk diff --git a/mozilla/java/webclient/src_share/Makefile.in b/mozilla/java/webclient/src_share/Makefile.in index 33b61dcca23..64166a32b92 100644 --- a/mozilla/java/webclient/src_share/Makefile.in +++ b/mozilla/java/webclient/src_share/Makefile.in @@ -22,8 +22,6 @@ topsrcdir = $(DEPTH) srcdir = $(topsrcdir)/java/webclient/src_share VPATH = $(topsrcdir)/java/webclient/src_share -JAVAHOME = $(JDKHOME) - include $(DEPTH)/config/autoconf.mk MODULE = webclient @@ -61,44 +59,3 @@ endif endif -JAVAH_CLS= \ - "-o BookmarksImpl.h org.mozilla.webclient.wrapper_native.BookmarksImpl" \ - "-o PreferencesImpl.h org.mozilla.webclient.wrapper_native.PreferencesImpl" \ - "-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 \ - PreferencesImpl.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)