comparison dbus-d-javatests/README.txt @ 2:5fb77a7e7d64

building CreateInterface and add bustest.xml
author Frank Benoit <benoit@tionex.de>
date Sat, 20 Oct 2007 19:29:33 +0200
parents a5576806d36d
children 7c2c75740370
comparison
equal deleted inserted replaced
1:65fb7ef02c50 2:5fb77a7e7d64
1
2 With dbus-d, an interface is defined with a XML file that follows the DBus introspection data.
3 The tool CreateInterfaces is used to read this file and generate a D module with all
4 the interfaces from the XML file and with the needed supporting code.
5
6 1. Build the "createinterface" tool.
7 in the dbus-d directory:
8
9 $ cd dbus-d
10 $ dsss build org/freedesktop/dbus/tools/CreateInterface.d
11
12 2. Goto the directory of your applications source code ,call the CreateInterface tool
13 and pipe the output to a file matching your module name.
14
15 $ cd ../dbus-d-javatests/dsrc
16 $ ../../dbus-d/CreateInterface ../dbustest.xml DBusTestingGen > DBusTestingGen.d
17
18 3. Implement interfaces in D. If the introspection.xml has an interface called "a.b.C"
19 you need to implement the interface "DBusInterface.a.b.C" which is part of the generated
20 module.
21
22 To make an object accessible, you need to either export it or return it from another
23 another method call.
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
1 To compile and run this example, it is required to have the following jars 41 To compile and run this example, it is required to have the following jars
2 in the classpath: 42 in the classpath:
3 43
4 org.eclipse.core.commands_3.3.0.I20070605-0010.jar 44 org.eclipse.core.commands_3.3.0.I20070605-0010.jar
5 org.eclipse.equinox.common_3.3.0.v20070426.jar 45 org.eclipse.equinox.common_3.3.0.v20070426.jar
6 org.eclipse.jface_3.3.0.I20070606-0010.jar 46 org.eclipse.jface_3.3.0.I20070606-0010.jar
7 org.eclipse.osgi_3.3.0.v20070530.jar 47 org.eclipse.osgi_3.3.0.v20070530.jar
8 org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar 48 org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar
9 org.eclipse.swt_3.3.0.v3346.jar 49 org.eclipse.swt_3.3.0.v3346.jar
10 50
51 These can be found in the eclipse/plugin directory
11 Probably other versions will work also :) 52 Probably other versions will work also :)
12 I placed them into a 'lib' called subdirectory.
13 53
14 54
55
56
57