2003-03-14 01:41:12 +00:00
|
|
|
The contents of this directory are (basically) the first step
|
|
|
|
in creating .NET bindings, to libraries based on GObject.
|
|
|
|
|
|
|
|
WHO USES THE SOURCES DIRECTORY
|
|
|
|
------------------------------
|
|
|
|
|
2012-10-14 13:22:47 +00:00
|
|
|
This directory is essentially the starting point in the creation
|
|
|
|
of a .NET binding. Most people can safely ignore it. (If all
|
2003-03-14 01:41:12 +00:00
|
|
|
you want to do is build Gtk#, then you can ignore what's in this
|
|
|
|
directory.)
|
|
|
|
|
2012-10-14 13:22:47 +00:00
|
|
|
This directory is not part of the normal build process for Gtk#.
|
2003-03-14 01:41:12 +00:00
|
|
|
But is instead used by people wishing to update an existing .NET
|
|
|
|
binding; or to create a new .NET binding (for a GObject based library).
|
|
|
|
|
2004-11-03 15:08:00 +00:00
|
|
|
The result of running "make api" on this directory (once everything
|
2012-10-14 13:22:47 +00:00
|
|
|
is set up) are the various '*-api.raw' XML files that you find in the
|
|
|
|
corresponding directories. Those XML files will then be used to generate
|
|
|
|
the C# code. And then that C# code is used to create the various .DLL
|
|
|
|
files.
|
|
|
|
|
|
|
|
Please refer to http://www.mono-project.com/GAPI for a more complete and
|
|
|
|
up-to-date guide to this process.
|
2003-03-14 01:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
WHAT'S REQUIRED
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Before you can do anything here, you need to get the source
|
|
|
|
code to the various libraries (which you are generating .NET
|
2012-10-14 13:22:47 +00:00
|
|
|
bindings for). And then do a little configuring. The current
|
|
|
|
list of libraries that Gtk# supports is in the sources.xml and Makefile.am
|
|
|
|
files.
|
|
|
|
|
|
|
|
If you create a new binding that is part of Gtk#, be sure to add it to this
|
|
|
|
list.
|
|
|
|
|
|
|
|
There are two ways to get this source code, as you will see in the
|
|
|
|
next section.
|
2003-03-14 01:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
SETTING THINGS UP
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
To set things up, you need to get the source code to the libraries listed
|
2012-10-14 13:22:47 +00:00
|
|
|
above. There are two (alternate) methods of doing this.
|
2003-03-14 01:41:12 +00:00
|
|
|
|
|
|
|
Method 1)
|
2012-10-14 13:22:47 +00:00
|
|
|
Download and unpack the source code manually.
|
2003-03-14 01:41:12 +00:00
|
|
|
|
|
|
|
Method 2)
|
|
|
|
Run:
|
|
|
|
make get-source-code
|
|
|
|
|
2012-10-14 13:22:47 +00:00
|
|
|
(Method 2 is probably the easiest way to do it for most people. It
|
|
|
|
automatically goes and downloads everything you need, and sets everything
|
|
|
|
up for you.)
|
2003-03-14 01:41:12 +00:00
|
|
|
|
2012-10-14 13:22:47 +00:00
|
|
|
For more information, please refer to http://www.mono-project.com/GAPI
|