Re: [gnome-db] Lightweight libgnomedb (libgdaui)



В ?? 18.04.2003, в 14:47, Rodrigo Moya пишет:
> On Fri, 2003-04-18 at 10:46, Dmitry G. Mastrukov wrote:
> > В Чтв, 10.04.2003, в 20:40, Rodrigo Moya написал:
> > > On Tue, 2003-04-08 at 10:16, Dmitry G. Mastrukov wrote:
> > > > Hi!
> > > > 
> > > > Now I'm taking close look on libgda and libgnomedb as database layer for
> > > > my application. Unfortunately app should work on Win32 first and on Unix
> > > > lately. There exist ports for Win32 of libxml2, gtk+-2, libgda. But
> > > > libgnomedb has too deep dependence on Gnome (libgnomeui, bonobo).
> > > >
> > > the bonobo dependencies are just internal, so they could be disabled in
> > > windows. About libgnomeui, I guess it should be quite minimal the
> > > dependency.
> > > 
> > > > I see two ways:
> > > > 1. "Cleaner" way is to create libgdaui and to make wrappers for it in
> > > > libgnomedb.
> > > > 2. Modify libgnomedb to make configure time check for libbbonoboui and
> > > > to compile dependant code only if that library present. But in some
> > > > cases it can cause binary incompatibility (?).
> > > > 
> > > I prefer 2. 1 means redoing a lot of work, while 2 is simple.
> > > 
> > Well, with patch attached to
> > http://bugzilla.gnome.org/show_bug.cgi?id=111074 I've been able to build
> > libgnomedb only with gtk+/libgda. Some widgets are gone, others have
> > reduced functionality, but it works.
> > 
> it looks ok so far, although I would try to remove the GNOME
> dependencies in some basic widgets, such as the login widget/dialog and
> the browser. Also, make sure everything is correctly enabled when
> compiling on a UNIX system.
> 
I tried to compile both versions: default (with GNOME) and with
--disable-gnome. In gnome version all three tests works ok.

> Also, there are some parts of code surrounded by #ifdef WITH_GNOME that,
> as far as i can see, have no gnome dependencies at all, so I guess the
> #ifdef should be removed.
> 
Hm, if such parts are my #ifdef BUILD_WITH_GNOME than I don't think so.
I saw very carefully and tracked includes and sources recursively on
occurence of gconf, bonobo and libgnomeui things. Some very innocent
looked widgets were exposed in GNOME complicity on close look :)

> Also:
> 
> -CLEANFILES+=GNOME_Database_Monikers.server
> GNOME_Database_Monikers.server.in
> +CLEANFILES=GNOME_Database_Monikers.server GNOME_Database_Monikers.server.in
> 
> I think you should not remove the '+='.
> 
Ah, I remember autotools give message about 'Variable CLEANFILES must be
initialized before +=' or something similar.

Also note about new libgnomedb/gnome-db-i18n.h file which is slightly
modified bonobo/bonobo-i18n.h. May be we should modify libgda/gda-intl.h
in a manner like gnome-db-i18n.h and move it to libgda_INCLUDES so
gnome-db-i18n will not be needed.

Regards,
Dmitry





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]