+2003-06-23 Anders Carlsson <andersca@codefactory.se>
+
+ * configure.in:
+ * gcj/.cvsignore:
+ * gcj/Hello.java:
+ * gcj/Makefile.am:
+ * gcj/TestMessage.java: (TestMessage), (TestMessage.main):
+ * gcj/org/.cvsignore:
+ * gcj/org/Makefile.am:
+ * gcj/org/freedesktop/.cvsignore:
+ * gcj/org/freedesktop/Makefile.am:
+ * gcj/org/freedesktop/dbus/.cvsignore:
+ * gcj/org/freedesktop/dbus/Makefile.am:
+ * gcj/org/freedesktop/dbus/Message.java: (Message),
+ (Message.Message):
+ * gcj/org/freedesktop/dbus/natMessage.cc:
+ Fix the build system.
+
2003-06-22 Havoc Pennington <hp@pobox.com>
* mono/Connection.cs: add more bindings
glib/Makefile
qt/Makefile
gcj/Makefile
+gcj/org/Makefile
+gcj/org/freedesktop/Makefile
+gcj/org/freedesktop/dbus/Makefile
mono/Makefile
bus/Makefile
tools/Makefile
.libs
Makefile
Makefile.in
-*.lo
-*.la
-dbus-test
-*.bb
-*.bbg
-*.gcov
-*.da
-dbus-arch-deps.h
-.dbus-keyrings
+dbus-1.jar
+test-message
+++ /dev/null
-
-class Hello {
- public static void main(String[] args) {
- System.out.println("Hello World!"); //Display the string.
- }
-}
\ No newline at end of file
-noinst_PROGRAMS=hello
+SUBDIRS=org
+JAR=jar
-hello_SOURCES=Hello.java
+CLEANFILES=dbus-1.jar
-hello_LDFLAGS=--main=Hello
+dbus-1.jar:
+ -@rm -f dbus-1.jar
+ find org -type d -o -type f -name '*.class' | \
+ sed -e '/\/\./d' | \
+ $(JAR) cfM0E@ $@
+
+jardir = $(datadir)/java
+jar_DATA = dbus-1.jar
+
+noinst_PROGRAMS = test-message
+
+test_message_SOURCES = TestMessage.java
+test_message_LDFLAGS = --main=TestMessage
+test_message_LDADD = $(top_builddir)/gcj/org/freedesktop/dbus/libdbus-gcj-1.la
--- /dev/null
+import org.freedesktop.dbus.Message;
+
+public class TestMessage {
+ public static void main (String[] args) {
+ Message msg = new Message ("test", "bla");
+
+ }
+}
--- /dev/null
+Makefile
+Makefile.in
+
--- /dev/null
+SUBDIRS=freedesktop
--- /dev/null
+Makefile
+Makefile.in
--- /dev/null
+SUBDIRS=dbus
--- /dev/null
+Makefile
+Makefile.in
+.deps
+.libs
+*.la
+*.class
+*.lo
+*.h
+
--- /dev/null
+INCLUDES= \
+ -I$(top_srcdir) \
+ -I$(top_builddir)/gcj/org/freedesktop/dbus \
+ $(DBUS_CLIENT_CFLAGS)
+
+
+GCJH = gcjh
+
+lib_LTLIBRARIES = libdbus-gcj-1.la
+
+MOSTLYCLEANFILES = $(generated_headers) $(java_class_files)
+
+
+java_sources = \
+ Message.java
+
+native_sources = \
+ natMessage.cc
+
+generated_headers = $(java_sources:.java=.h)
+java_class_files = $(java_sources:.java=.class)
+native_object_files = $(native_sources:.cc=.lo)
+java_object_files = $(java_sources:.java=.lo)
+
+.class.h:
+ $(GCJH) $(basename $<)
+
+.java.class:
+ $(GCJ) -C $< -d ../../..
+
+.cc.lo:
+ $(LIBTOOL) --mode=compile $(CXX) $(INCLUDES) $(CXXFLAGS) $(CPPFLAGS) -c -o '$@' '$<'
+
+.java.lo:
+ $(LIBTOOL) --mode=compile $(GCJ) $(GCJ_FLAGS) -c -o '$@' '$<'
+
+libdbus_gcj_1_la_SOURCES =
+
+libdbus_gcj_1_la_DEPENDENCIES = \
+ $(generated_headers) \
+ $(native_object_files) \
+ $(java_object_files) \
+ $(java_class_files)
+
+
+libdbus_gcj_1_la_LIBADD = \
+ $(native_object_files) \
+ $(java_object_files)
+
+EXTRA_libdbus_gcj_1_la_SOURCES = \
+ $(native_sources) \
+ $(java_sources)
+
+libdbus_gcj_1_la_LINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
+
--- /dev/null
+package org.freedesktop.dbus;
+
+import gnu.gcj.RawData;
+
+public class Message {
+ private RawData message;
+
+ public Message (String name, String destService) {
+ this.message = dbus_message_new (name, destService);
+ }
+
+ private static native RawData dbus_message_new (String name, String destService);
+}
--- /dev/null
+// This file was created by `gcjh -stubs'. -*- c++ -*-
+//
+// This file is intended to give you a head start on implementing native
+// methods using CNI.
+// Be aware: running `gcjh -stubs ' once more for this class may
+// overwrite any edits you have made to this file.
+
+#include <Message.h>
+#include <gcj/cni.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+#include <dbus/dbus.h>
+
+::gnu::gcj::RawData *
+org::freedesktop::dbus::Message::dbus_message_new (::java::lang::String *, ::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("org::freedesktop::dbus::Message::dbus_message_new (::java::lang::String *, ::java::lang::String *) not implemented"));
+}
+
+