Re: [Gtk2forpascal-devel] central configuration file
Brought to you by:
mgaertner
From: Mattias G. <nc-...@ne...> - 2004-03-16 21:27:42
|
On Mon, 15 Mar 2004 20:45:34 +0100 Olaf Leidinger <le...@ne...> wrote: > Hello! > > In order to create the configuration include file we could use some kind > of configure script to which you pass e.g. a gdk-target. At the moment, > there are only win32, x11, linux-fb and perhaps directfb. Or this script > could try to find out which version to compile. ( call pkg-config on > linux) I think, we should try to detect some good defaults. Maybe add them to the compile_with_XXX_under_YYY scripts? > ///// GTK2_FOR_PASCAL config file > > // included by all units > > {$define GDK_TARGET_LINUX_FB} > > {$define USE_GTK_2_4} > > > // end of config file > > And in gtk2.pas > > {$ifdef linux} > gtklib = ''; > {$else} > {$ifdef GDK_TARGET_LINUX_FB} > gtklib = 'libgtk-linux-fb-2.0.so'; > {$else} > {$ifdef GDK_TARGET_X11} > gtklib = 'libgtk-x11-2.0.so'; > {$endif} > {$endif} > {$endif} > > In gtkincludes.inc > > ... > {$include gtkradiomenuitem.inc} > {$include gtkscrolledwindow.inc} > > {$ifdef GDK_TARGET_X11} > {$include gtkplug.inc} > {$include gtksocket.inc} > {$endif} > > {$include gtkselection.inc} > {$include gtkseparatormenuitem.inc} > {$include gtksignal.inc} > {$include gtksizegroup.inc} > ... > > That's it. ok. And some minors like not using gtk2.4 widgets on gtk2.2 and less. Mattias |